POST
/
customDomain
curl --request POST \
  --url https://api.cme.sh/customDomain \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "<string>",
  "domain": "<string>"
}'
{
  "status": true,
  "data": {
    "linkId": "<string>",
    "mandatory": {
      "pointsTo": "<string>",
      "recordType": "<string>",
      "hostname": "<string>"
    },
    "optional": {
      "pointsTo": "<string>",
      "recordType": "<string>",
      "hostname": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Connect a new domain for the authenticated workspace.
workspaceId
string
required

Id of the Workspace

domain
string
required

The domain name for connecting

Response

200
application/json
Successful response
status
boolean
data
object