Customer
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
DELETE | |
GET | |
POST | |
DELETE | |
POST | |
GET | |
POST |
Retrieve customer analytics external account
Fetch one account by external ID with its properties, controlled relationship ownership, tags, active relationship assignments and custom property values. Accepts the team secret API token or a project secret API key with the account:read scope.
Query parameters
- external_idstring
Response
Example request
GET /api /customer_analytics /external /accountExample response
Status 200 The account.
Status 400 Missing external_id.
Status 401 Missing or invalid Bearer token.
Status 403 Project secret API key does not carry the account:read scope.
Status 404 No account with that external_id.
Retrieve customer analytics external account
Fetch one account by external ID with its properties, controlled relationship ownership, tags, active relationship assignments and custom property values. Accepts the team secret API token or a project secret API key with the account:read scope.
Query parameters
- external_idstring
Response
Example request
GET /api /customer_analytics /external /accountExample response
Status 200 The account.
Status 400 Missing external_id.
Status 401 Missing or invalid Bearer token.
Status 403 Project secret API key does not carry the account:read scope.
Status 404 No account with that external_id.
Create customer analytics external account
Create an account by external ID. If the account already exists, return it unchanged with HTTP 200. Accepts the team secret API token or a project secret API key with the account:write scope.
Request parameters
- external_idstring
- namestring | null
- propertiesobject | null
Response
Example request
POST /api /customer_analytics /external /accountExample response
Status 200 The account already existed.
Status 201 The account was created.
Status 400 Invalid request body.
Status 401 Missing or invalid Bearer token.
Status 403 Project secret API key does not carry the account:write scope.
Create customer analytics external account
Create an account by external ID. If the account already exists, return it unchanged with HTTP 200. Accepts the team secret API token or a project secret API key with the account:write scope.
Request parameters
- external_idstring
- namestring | null
- propertiesobject | null
Response
Example request
POST /api /customer_analytics /external /accountExample response
Status 200 The account already existed.
Status 201 The account was created.
Status 400 Invalid request body.
Status 401 Missing or invalid Bearer token.
Status 403 Project secret API key does not carry the account:write scope.
Retrieve customer analytics external accounts
List tracked accounts with external IDs, lifecycle timestamps, controlled relationship ownership, and active relationship assignments. Set include_ignored=true to include ignored accounts and managed_only=true to read only the accounts customer analytics holds ownership authority for. Requires a project secret API key or personal API key with the account:read scope. Personal API keys also require project_id and return only accounts the key owner can access.
Query parameters
- assigned_onlybooleanDefault:
false - cursorstring
- include_ignoredbooleanDefault:
false - limitintegerDefault:
100 - managed_onlybooleanDefault:
false - project_idinteger
Response
Example request
GET /api /customer_analytics /external /accountsExample response
Status 200 Page of external accounts.
Status 400 Invalid query parameters.
Status 401 Authentication failed.
Status 403 API key lacks the required scope or access to the selected project or accounts.
Status 404 The project selected with a personal API key does not exist.
Retrieve customer analytics external accounts
List tracked accounts with external IDs, lifecycle timestamps, controlled relationship ownership, and active relationship assignments. Set include_ignored=true to include ignored accounts and managed_only=true to read only the accounts customer analytics holds ownership authority for. Requires a project secret API key or personal API key with the account:read scope. Personal API keys also require project_id and return only accounts the key owner can access.
Query parameters
- assigned_onlybooleanDefault:
false - cursorstring
- include_ignoredbooleanDefault:
false - limitintegerDefault:
100 - managed_onlybooleanDefault:
false - project_idinteger
Response
Example request
GET /api /customer_analytics /external /accountsExample response
Status 200 Page of external accounts.
Status 400 Invalid query parameters.
Status 401 Authentication failed.
Status 403 API key lacks the required scope or access to the selected project or accounts.
Status 404 The project selected with a personal API key does not exist.
List all account notes
Required API key scopes
account:readQuery parameters
- account_idstring
- assigned_toarray
- created_byarray
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /account_notesExample response
Status 200
List all accounts custom property values
Required API key scopes
account:readPath parameters
- account_idstring
Example request
GET /api /projects /:project_id /accounts /:account_id /custom_property_valuesExample response
Status 200
Create accounts custom property values
Required API key scopes
account:writePath parameters
- account_idstring
Request parameters
- definitionstring
- value
Response
Example request
POST /api /projects /:project_id /accounts /:account_id /custom_property_valuesExample response
Status 201
Status 204 No response body
List all accounts notebooks
Required API key scopes
account:readPath parameters
- account_idstring
Query parameters
- limitinteger
- offsetinteger
- orderingstringOne of:
"-created_at""-created_by""created_at""created_by" - searchstring
Response
Example request
GET /api /projects /:project_id /accounts /:account_id /notebooksExample response
Status 200
Create accounts notebooks
Required API key scopes
account:writePath parameters
- account_idstring
Request parameters
- titlestring | null
- content
- text_contentstring | null
Response
Example request
POST /api /projects /:project_id /accounts /:account_id /notebooksExample response
Status 201
Retrieve accounts notebooks
Required API key scopes
account:readPath parameters
- account_idstring
- short_idstring
Response
Example request
GET /api /projects /:project_id /accounts /:account_id /notebooks /:short_idExample response
Status 200
Delete accounts notebooks
Required API key scopes
account:writePath parameters
- account_idstring
- short_idstring
Example request
DELETE /api /projects /:project_id /accounts /:account_id /notebooks /:short_idExample response
Status 204 No response body
List all accounts relationships
Required API key scopes
account:readPath parameters
- account_idstring
Query parameters
- include_historyboolean
Example request
GET /api /projects /:project_id /accounts /:account_id /relationshipsExample response
Status 200
Create accounts relationships
Required API key scopes
account:writePath parameters
- account_idstring
Request parameters
- definitionstring
- userinteger
Response
Example request
POST /api /projects /:project_id /accounts /:account_id /relationshipsExample response
Status 201
Delete accounts relationships
Required API key scopes
account:writePath parameters
- account_idstring
- idstring
Example request
DELETE /api /projects /:project_id /accounts /:account_id /relationships /:idExample response
Status 204 No response body
Create accounts relationships end
Path parameters
- account_idstring
- idstring
Response
Example request
POST /api /projects /:project_id /accounts /:account_id /relationships /:id /endExample response
Status 200
List all event streams
The caller's event stream: a live feed of selected accounts' events posted to a Slack channel of their choice. Per-user — each team member owns at most one stream, and every endpoint is scoped to the caller's own. Delivery runs through a managed CDP destination that is re-provisioned inside the same transaction as every write, so config and delivery can't drift apart.
Required API key scopes
account:readExample request
GET /api /projects /:project_id /event_streamsExample response
Status 200
Create event streams
The caller's event stream: a live feed of selected accounts' events posted to a Slack channel of their choice. Per-user — each team member owns at most one stream, and every endpoint is scoped to the caller's own. Delivery runs through a managed CDP destination that is re-provisioned inside the same transaction as every write, so config and delivery can't drift apart.
Required API key scopes
account:writeRequest parameters
- enabledbooleanDefault:
false - event_namesarray
- slack_integrationinteger | null
- slack_channel_idstringDefault:
- slack_channel_namestringDefault:
Response
Example request
POST /api /projects /:project_id /event_streams