Skip to main content
POST
Attach a custom domain

Authorizations

Authorization
string
header
required

Send your API token (Dashboard → Settings → API Token) as Authorization: Bearer <token>.

Path Parameters

app_id
string<uuid>
required

Body

application/json
custom_domain
string
required

Response

Custom domain added successfully

message
string
custom_hostname
object

Cloudflare's custom hostname object for one app custom domain.

cname
string

The platform hostname to CNAME your domain to.