Skip to main content
GET
/
files
/
{network}
/
{id}
Get File by ID
curl --request GET \
  --url https://api.pinata.cloud/v3/files/{network}/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "cid": "<string>",
    "size": 123,
    "number_of_files": 123,
    "mime_type": "<string>",
    "group_id": "<string>",
    "keyvalues": {},
    "created_at": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

network
enum<string>
required

Target either the public or private IPFS network

Available options:
public,
private
id
string
required

Response

200 - application/json

OK

data
object