v1

latestOpenAPI 3.0.02026-07-2661281.2 KB
Private Files

Create Download Link

org:files:write

post/files/private/download_link

Request body

urlstring

The full URL of your file in the format of https://{yourgatewaydomain}.mypinata.cloud/files/{cid}

datenumber

The unix timestamp that the URL is signed, ie time of request

expiresnumber

How long the URL is valid for in sconds after signing based on the date parameter

methodstring

The URL method, ie GET

Example request

{
  "url": "https://example.mypinata.cloud/files/bafybeifq444z4b7yqzcyz4a5gspb2rpyfcdxp3mrfpigmllh52ld5tyzwm",
  "expires": 500000,
  "date": 1724875300,
  "method": "GET"
}

Response

OK

datastring

The signed URL