Add domain
Changed onRegister a new domain. Only name is required; the assigned ip is returned for you to configure DNS.
A new domain starts as NOT_CONFIGURED (or VALIDATION_PENDING while it is reviewed) until its DNS points at ip. A name that already exists on your account is rejected with 500.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
Request
- Base URLhttps://api.commpeak.com/textpeak
- URLhttps://api.commpeak.com/textpeak/domains
- AuthAPI key in header Authorization
Request body
Example request
{
"name": "demo.example.com"
}Response
Successful Response
Example response
{
"id": 12,
"ip": "192.0.2.10",
"name": "demo.example.com",
"status": "NOT_CONFIGURED"
}Changes
- warning
the
request property's maxLength was set to255 - info
api operation id
addDomainremoved and replaced withcreate_domain - info
the endpoint scheme security
APIKeyHeaderwas added to the API - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- warning