Connect Custom Domain
Connect your own domain to the workspace. You will need to add DNS records to verify ownership.
Endpoint
POST https://api.campaignlark.com/v1/domains/create/custom
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
domain_name | string | required | The domain name to connect (e.g. example.com). |
Sample Request
POST https://api.campaignlark.com/v1/domains/create/custom
Content-Type: application/json
{
"domain_name": "example.com"
}
Response
Success — 201 Created
Returns the created domain object (see Domain Object).
Errors
| Status | Message | Cause |
|---|---|---|
400 | Invalid request body. | Request body could not be parsed. |
400 | Various validation errors | Domain name is invalid, already exists, etc. |