POST
/
ipfs
/
gateways
/
{id}
/
hosts
curl --request POST \
  --url https://api.pinata.cloud/v3/ipfs/gateways/{id}/hosts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "host": "https://ipfs.pinata.cloud"
}'
{
  "data": {
    "id": "b0165cb6-59e2-476e-aa60-b63b9326bcc6",
    "value": "https://ipfs.pinata.cloud",
    "createdAt": "2024-07-12T15:40:40.258353687Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID of the target Gateway

Body

application/json
host
string

Host for target Gateway

Response

200 - application/json
OK

The response is of type object.