List Domains
Retrieve a paginated list of domains in the workspace.
Endpoint
GET https://api.campaignlark.com/v1/domains
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | integer | optional | 1 | Page number. |
limit | integer | optional | 50 | Items per page (1–100). |
Sample Request
GET https://api.campaignlark.com/v1/domains?page=1&limit=50
Response
Success — 200 OK
{
"error": null,
"data": {
"domains": [
{
"id": 1,
"domain_name": "example.com",
"spf_verified": true,
"dkim_verified": true,
"mx_verified": false,
"dmarc_verified": false,
"tracking_verified": false,
"verified": true
}
],
"pagination": {
"current_page": 1,
"per_page": 50,
"total_pages": 1,
"total_count": 1
}
}
}
Domain Object
| Field | Type | Description |
|---|---|---|
id | integer | Unique domain ID. |
domain_name | string | The domain name. |
spf_verified | boolean | Whether the SPF DNS record has been verified. |
dkim_verified | boolean | Whether the DKIM DNS record has been verified. |
mx_verified | boolean | Whether the MX DNS record has been verified. |
dmarc_verified | boolean | Whether the DMARC DNS record has been verified. |
tracking_verified | boolean | Whether the tracking CNAME record has been verified. |
verified | boolean | Whether the domain is fully verified and ready to send. |
Pagination
| Field | Type | Description |
|---|---|---|
current_page | integer | The current page number. |
per_page | integer | Number of items per page. |
total_pages | integer | Total number of pages. |
total_count | integer | Total number of items. |