POST
/
ipfs
/
gateways
curl --request POST \
  --url https://api.pinata.cloud/v3/ipfs/gateways \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "dweb5"
}'
{
  "data": {
    "id": "5eb8b151-77b3-4e46-8243-5b6282131a9e",
    "created_at": "2024-07-12T15:21:47.966866Z",
    "domain": "dweb3",
    "restrict": false,
    "custom_domains": [],
    "settings": {
      "restriction_policies": {
        "accessTokens": [],
        "allowedHosts": [],
        "allowedIPAddresses": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
domain
string

Desired name for Gateway subdomain

Response

200 - application/json
OK

The response is of type object.