POST
/
ipfs
/
gateways
/
{id}
/
custom_domain
curl --request POST \
  --url https://api.pinata.cloud/v3/ipfs/gateways/{id}/custom_domain \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "ipfs2.pinata.cloud"
}'
{
  "data": {
    "domain": "ipfs2.pinata.cloud",
    "domain_validation_status": "pending",
    "custom_domain_id": "81bc0135-346d-4d81-ad81-1e313297702f",
    "ssl_validation_status": "initializing"
  }
}

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
domain
string

Custom domain for the target Gateway

Response

200 - application/json
OK

The response is of type object.