Skip to main content
POST
Pin JSON
Pinata makes it easy to upload JSON objects using the pinJSONToIPFS endpoint.
Pin JSON

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
pinataContent
object
required

The JSON content to pin

pinataOptions
object

Optional Pinata Options Object

pinataMetadata
object

Optional Pinata Metadata object

Response

200 - application/json

{ "IpfsHash": "This is the IPFS multi-hash (CID) provided back for your content," "PinSize": "This is how large (in bytes) the content you just pinned is," "Timestamp": "This is the timestamp for your content pinning (represented in ISO 8601 format)" }

IpfsHash
string
PinSize
integer
Timestamp
string
isDuplicate
boolean