cURL
curl --request POST \ --url https://api.pinata.cloud/v3/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": [] } } } }
org:gateways:write
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Desired name for Gateway subdomain
OK
The response is of type object.
object