Skip to main content
POST
/
domains
Add a domain
curl --request POST \
  --url https://{subdomain}.nudj.cx/api/v2/admin/domains \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "domain": "<string>"
}'
{
  "success": true,
  "code": 123,
  "message": "<string>",
  "data": {
    "verified": true,
    "verification": [
      {
        "type": "<string>",
        "domain": "<string>",
        "value": "<string>",
        "reason": "<string>"
      }
    ]
  }
}

Authorizations

x-api-token
string
header
required

Body

application/json

The input required to add a custom domain to the platform

domain
string
required

The custom domain to add to the platform

Minimum length: 1

Response

Successful response

The response returned when adding a custom domain to the platform

success
boolean
required

Whether the operation was successful

code
number
required

HTTP status code

message
string

Error message if operation failed

data
object

Response data containing domain verification status

I