Journey Docs
Partner API ExplorerCustom Domains

Disconnect a custom domain

Required scopepartner:custom-domains:manage
DELETE
/v1/partner/custom-domains/{externalId}

Releases the domain. Pages served on it fall back to their default Journey URL.

Authorization

headerAuthorizationBearer <token>

WorkOS access token (JWT) for a user who is a member of the partner organization. The organization the request is scoped to is taken from the token, not from a header or query parameter.

Only a JWT is accepted in this header. A Journey jny_ API key sent as a bearer token is rejected with 401 Invalid or expired token; send it in X-API-Key instead.

WorkOS organization API keys are not accepted yet.

Path Parameters

externalId*string

External custom domain id.

Response Body

The domain after disconnection.

curl -X DELETE 'https://api-prd.cf.journey.com/v1/partner/custom-domains/string'
Empty