For the complete documentation index, see llms.txt. This page is also available as Markdown.

Accounts

Get a list of accounts

get

Returns a paginated list of accounts for the organization.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Query parameters
cursorstringOptional

The cursor to use for pagination.

limitinteger · int64Required

The number of accounts to fetch. Defaults to 100. Must be greater than 0 and less than 1000.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

get/accounts

Create a new account

post

Creates a new account with the specified name and optional metadata.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Body
account_typestringOptional

The type of the account. Must be one of "customer", "internal", "community", or "partner". Defaults to "customer" if not specified.

domainstringOptional

Deprecated. Please use Domains and PrimaryDomain instead.

domainsstring[]Optional

The domains of the account, without any leading scheme, for example stripe.com. Must specify one domain as primary.

logo_urlstringOptional

The logo URL of the account. Must be a square .png, .jpg or .jpeg.

namestringRequired

The name of the account.

owner_idstringOptional

The ID of the owner of the account.

primary_domainstringOptional

Must be in the list of domains. If there are any domains, there must be exactly one primary domain.

subaccount_idsstring[]Optional

An array of account IDs to be added as subaccounts to this account. For normal accounts, these represent subaccounts. For partner accounts, these represent associated accounts.

tagsstring[]Optional

An array of strings to use as tags on this account. If provided, the accounts tags will be updated to the given tags.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

post/accounts

Update multiple accounts

patch

Updates multiple accounts in a single request. Only provided fields are modified.

Rate limit: 20 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Body
account_idsstring[]Required

The account IDs to update. The number of accounts to update must be between 1 and 100.

account_typestringOptional

The type of the account. Can only be changed to "customer" or "partner".

owner_idstringOptional

The ID of the new owner. If empty string is passed in, the owner will be removed.

tagsstring[]Optional

An array of tags to be updated on the accounts.

tags_apply_modestringOptional

The mode for applying tags. Valid values: "append_only", "remove_only", "replace". Defaults to "replace".

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

successbooleanOptional

Whether the update was successfully initiated.

patch/accounts

Get an account by its ID or external ID

get

Returns a single account by ID or external ID.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID or external ID of the account to fetch.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

get/accounts/{id}

Update an existing account

patch

Updates an existing account by ID or external ID. Only provided fields are modified.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID or external ID of the account to update.

Body
account_typestringOptional

The type of the account. Can only be changed to "customer" or "partner".

domainsstring[]Optional

Domains of the account. Must specify one domain as primary.

is_disabledbooleanOptional

Whether the account is disabled.

logo_urlstringOptional

Logo URL of the account.

namestringOptional

The name of the account.

owner_idstringOptional

The ID of the owner of the account. If empty string is passed in, the owner will be removed.

primary_domainstringOptional

Must be in the list of domains. If there are any domains, there must be exactly one primary domain.

subaccount_idsstring[]Optional

An array of account IDs to be added as subaccounts to this account.

tagsstring[]Optional

An array of strings to use as tags on this account. If provided, the accounts tags will be updated to the given tags.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

patch/accounts/{id}

Delete an existing account

delete

Permanently deletes an account by ID or external ID.

Rate limit: 10 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID or external ID of the account to delete.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

delete/accounts/{id}
200Success

Search for accounts by a given filter

post

Optionally pass search_text for fuzzy matching. Results are intersected with any provided filter.

Currently, the following fields are filterable for accounts:

  • id. Allowed operators: equals, in, not_in

  • domains. Allowed operators: contains, does_not_contain, in, not_in

  • tags. Allowed operators: contains, does_not_contain, in, not_in

  • name. Allowed operators: equals, in, not_in, string_contains

  • external_ids. Allowed operators: equals, in, not_in, is_set, is_unset

  • owner_id. Allowed operators: equals, in, not_in, is_set, is_unset

  • custom fields (pass in the slug of the custom field)

Rate limit: 20 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Body
cursorstringOptional

The cursor to use for pagination.

limitinteger · int64Optional

The number of accounts to fetch. Defaults to 100. Must be greater than 0 and less than 1000.

search_textstringOptional

Fuzzy text search. Results are intersected with any provided filter.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

post/accounts/search

Merge accounts

post

Merges one or more accounts into a surviving account. Issues, contacts, opportunities, domains, channels, external IDs, and other associated data are transferred to the surviving account. Tags and custom field values of the merged accounts are not transferred. The merged accounts are permanently deleted. This cannot be undone. Accounts are merged sequentially, each in its own transaction; if a merge fails partway through, accounts already merged are not restored.

Rate limit: 10 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Body
merge_account_idsstring[]Required

The IDs of the accounts to merge into the surviving account. These accounts are permanently deleted after their data is transferred. The number of accounts to merge must be between 1 and 100.

merge_into_account_idstringRequired

The ID of the account that will survive the merge and receive the merged data.

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

post/accounts/merge

Last updated

Was this helpful?