POST
/
files
curl --request POST \
  --url https://uploads.pinata.cloud/v3/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form network=private \
  --form 'name=<string>' \
  --form 'group_id=<string>' \
  --form 'keyvalues={}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "cid": "<string>",
    "created_at": "<string>",
    "size": 123,
    "number_of_files": 123,
    "mime_type": "<string>",
    "user_id": "<string>",
    "group_id": "<string>",
    "is_duplicate": true
  }
}

The V3 Upload endpoint currently does not support folder uploads. Please use the legacy pinFileToIPFS endpoint

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200 - application/json

Successful response

The response is of type object.