Custom Domain
API referenceConnections

Write a connection's records through the customer's provider (BYO token, used once)

POST
/connections/{id}/apply

Rail B (API-token apply). The scoped provider credential is used once to write the records and is never stored. The connection advances to propagating; the poller promotes it to live once the records appear in public DNS.

Authorization

widgetJWT
AuthorizationBearer <token>

Short-lived widget JWT minted server-side via POST /v1/tokens. Scoped to one application (and optionally one domain).

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/connections/string/apply" \  -H "Content-Type: application/json" \  -d '{    "credential": {      "token": "string"    },    "records": [      {        "type": "CNAME",        "value": "string"      }    ]  }'
{  "connection": {    "id": "string",    "application_id": "string",    "domain": "string",    "host": "string",    "provider_id": "string",    "setup_type": "automatic",    "status": "pending",    "created_at": "2019-08-24T14:15:22Z"  },  "records": [    {      "type": "CNAME",      "host": "string",      "value": "string",      "ttl": 3600,      "priority": 0,      "applied": true    }  ]}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}