Account domains
An account's domains are the company's website and email domains. Kenso matches people, emails and imports to the account by them, and one domain belongs to one account. Add a domain to an account, or remove one by its id; both answer with the account.
Headers
The endpoints on this page take these headers. Each endpoint's curl shows the ones it sends.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Ken-Version | header | string, one of: 2026-11-02, 1.1 | optional | The API version, a date in YYYY-MM-DD form. 1.1 is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and 404 where the path exists only in this version. A date that is not a version answers 400 unsupported_version; any other value that is not a version is treated as legacy. |
X-Ken-Workspace-Id | header | integer (int64) | optional | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers 400 workspace_required. A workspace you are not a member of answers 404 not_found. |
Add a domain to an account
/v1/accounts/{accountId}/domainsaccount-domains.create- Permission
- Accounts edit
- Rate limit
- 4,800 requests a minute per API key
accounts feature on your workspace. Until it is on, calls answer 404.Returns the account.
domain: a domain, website URL or work email (normalized to the registrable domain). isPrimary makes it the primary. A domain the account already has is a 200 no-op. One another account owns is 409 conflict with domain_taken (and that accountId, unless account scope own hides that account). Requires Accounts edit.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
accountId | path | integer (int64) | required |
Request body
application/json, optional.
| Field | Type | Required | Description |
|---|---|---|---|
domain | string | required | A domain, website URL or work email. Required. |
isPrimary | boolean | optional |
curl -X POST "https://api.ken.so/v1/accounts/812/domains" \
-H "Authorization: Bearer $KENSO_API_KEY" \
-H "Ken-Version: 2026-11-02" \
-H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"domain": "northwind-labs.example.com",
"isPrimary": false
}'Response 200
data is a Account.
Show the 67 response fields and an example
The fields and an example are also on this endpoint's Markdown page.
Remove a domain from its account
/v1/account-domains/{accountDomainId}account-domains.delete- Permission
- Accounts edit
- Rate limit
- 4,800 requests a minute per API key
accounts feature on your workspace. Until it is on, calls answer 404.Returns the account.
The account's last domain cannot go (409 invalid_state, last_domain). Removing the primary promotes the oldest remaining domain. Requires Accounts edit.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
accountDomainId | path | integer (int64) | required |
curl -X DELETE "https://api.ken.so/v1/account-domains/812" \
-H "Authorization: Bearer $KENSO_API_KEY" \
-H "Ken-Version: 2026-11-02" \
-H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"Response 200
data is a Account.
Show the 67 response fields and an example
The fields and an example are also on this endpoint's Markdown page.
More in CRM:AccountsPeoplePerson behaviorStakeholdersMeeting notesAll resources