Add domain
POST /api/v2/domains
Parameters
All resource access is checked against the selected workspace and user permissions.
| Name | Type | Contract |
|---|---|---|
| name | string · required | Public domain or subdomain, no URL/path/email, maximum 253 characters |
Request
Run inboxit login first. The CLI supplies authenticated user credentials.
inboxit domains add --data @request.jsonJSON body
Save this JSON as request.json for the request above. Replace example values with your own.
{
"name": "mail.yourbrand.com"
}Response
HTTP 201. Example values are illustrative; excerpts are marked.
{
"id": "DOMAIN_UUID",
"name": "mail.yourbrand.com",
"status": "pending",
"records": [
{
"purpose": "ownership",
"type": "TXT",
"host": "_inboxit.mail.yourbrand.com",
"value": "inboxit-verification=GENERATED_TOKEN",
"required": true
}
]
}Behavior & errors
Response excerpt: actual records also include generated DKIM, recommended DMARC, and the receiving MX (type MX, host the domain name, value mail.inboxit.wtf, priority 10, required false). Copy returned values, never example tokens. Existing workspace domain returns its record; exhausted plan or conflicting domain returns 409. Common errors: 400 invalid input, 401 unauthenticated, 403 insufficient permission, 404 missing/inaccessible resource, 409 conflict, 429 rate/usage limit, 503 service unavailable. See Errors & retries for recovery guidance.