Skip to Content
CRM

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.

CRM2 endpointsKen-Version: 2026-11-02AuthenticationWorkspacesErrors
MarkdownOpenAPI

Headers

The endpoints on this page take these headers. Each endpoint's curl shows the ones it sends.

NameInTypeRequiredDescription
Ken-Versionheaderstring, one of: 2026-11-02, 1.1optionalThe 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-Idheaderinteger (int64)optionalThe 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

POST/v1/accounts/{accountId}/domainsaccount-domains.create
Permission
Accounts edit
Rate limit
4,800 requests a minute per API key
Needs the accounts feature on your workspace. Until it is on, calls answer 404.

Try it on developer.ken.so

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

NameInTypeRequiredDescription
accountIdpathinteger (int64)required

Request body

application/json, optional.

FieldTypeRequiredDescription
domainstringrequiredA domain, website URL or work email. Required.
isPrimarybooleanoptional
Request
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

DELETE/v1/account-domains/{accountDomainId}account-domains.delete
Permission
Accounts edit
Rate limit
4,800 requests a minute per API key
Needs the accounts feature on your workspace. Until it is on, calls answer 404.

Try it on developer.ken.so

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

NameInTypeRequiredDescription
accountDomainIdpathinteger (int64)required
Request
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.


On this page