Create Free Domain
Create a free subdomain under the CampaignLark shared domain.
Endpoint
POST https://api.campaignlark.com/v1/domains/create/free
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
subdomain | string | required | The subdomain prefix to use. |
Sample Request
POST https://api.campaignlark.com/v1/domains/create/free
Content-Type: application/json
{
"subdomain": "mystore"
}
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 | Subdomain is invalid, already taken, etc. |