cURL
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={}' \ --form file=@example-file
{ "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 } }
org:files:write
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful response
The response is of type object.
object