Need some help -> Pinata.cloud - API to upload (pin) a file

I am trying to get a file upload to work for an API with pinata.cloud. The API enables you to upload an image to an IPFS node (messing around with some web3 APIs ๐Ÿ˜ƒ). I am getting a 400 error with a message of 'Invalid request format').

Any help would be greatly appreciated. I feel like I have just dumped a bunch of random info in this post ๐Ÿ˜Ž, but hopefully it gives someone enough info to recommend some new things for me to try.

As a note, I am able to get the Pinata authentication and usage APIs to work so I have the basics functioning.

Additionally, I am able to get the Pinata pinning API to work when I use Postman (just not with Xano, yet)

I have also referenced the Multipart Support info in this article as the basis for what I have been trying.
https://docs.xano.com/working-with-data/functions/external-api-request

This is the Pinata documentation for the pinning (file upload) API
https://docs.pinata.cloud/pinata-api/pinning/pin-file-or-directory

Here is the curl command from the PInata documentation:
curl --location --request POST 'https://api.pinata.cloud/pinning/pinFileToIPFS'
--header 'Authorization: Bearer PINATA JWT'
--form 'file=@/Users/Desktop/images/cat.JPG'
--form 'pinataOptions='{'cidVersion '': 1}'''
--form 'pinataMetadata=''{ ''name '': ''MyFile ''
Connect Xano to...
8 replies