Console API
Workstream
13 endpoints.
/api/v1/admin/businesses/{business_id}/changesets/{changeset_id}/traceWhat one change wrote, row by row, and whether it can still be undone
For a change a tool's answer names (``changeset_id``), as the chat's card draws it.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
changeset_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_TraceData_| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | TraceData | TraceData fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/records/{entity}/{record_id}/historyOne record's history: its changes, newest first
Any record's, by the entity its changesets name it under (``business_profile``, ``contacts_get``), each with who made it (the actor fields and ``actor_label``); filter by who as Activity does.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
entityrequired | path | string | |
record_idrequired | path | string | |
field | query | string[] | null | Only changes to these fields |
limit | query | integer | default 20 |
person_id | query | string (uuid) | null | Only what this person did, or an agent did for them |
agent_kind | query | enum | null | Only people's own (person), or one kind of agent's |
client_id | query | string | null | Only through this client: console, an MCP client's name or id |
person | query | string (uuid) | null | The same as person_id, by its first name |
client | query | string | null | The same as client_id, by its first name |
Responses
200Successful Responseapplication/jsonSuccessResponse_list_RecordChangeData__| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | RecordChangeData[] | RecordChangeData[] fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/activityActivity feed: recent days inline, older weeks folded
Filter by who: `person_id`, `agent_kind` (`person` for people's own), `client_id`.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
cursor | query | string | null | |
person_id | query | string (uuid) | null | Only what this person did, or an agent did for them |
agent_kind | query | enum | null | Only people's own (person), or one kind of agent's |
client_id | query | string | null | Only through this client: console, an MCP client's name or id |
person | query | string (uuid) | null | The same as person_id, by its first name |
client | query | string | null | The same as client_id, by its first name |
Responses
200Successful Responseapplication/jsonSuccessResponse_ActivityData_| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||
success | true | default true | ||||||||||||
datarequired | ActivityData | ActivityData fields
| ||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | ||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/activity/events/{event_id}/traceWhat one fact changed or asks, row by row, and what the person may do about it now
404 for a fact with no trace (``EventObject.traced`` false).
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
event_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_TraceData_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | TraceData | TraceData fieldsTraceData, expanded above. |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/activity/latestActivity's facts stored after a time, oldest first: the edge the console's toasts follow
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
afterrequired | query | string (date-time) | Pass /sync's composed_at first, then each answer's through. |
Responses
200Successful Responseapplication/jsonSuccessResponse_LatestData_| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||
success | true | default true | |||||||||
datarequired | LatestData | LatestData fields
| |||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/activity/weeks/{week_id}Expand one folded week into the same days[] shape
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
week_idrequired | path | string | |
person_id | query | string (uuid) | null | Only what this person did, or an agent did for them |
agent_kind | query | enum | null | Only people's own (person), or one kind of agent's |
client_id | query | string | null | Only through this client: console, an MCP client's name or id |
person | query | string (uuid) | null | The same as person_id, by its first name |
client | query | string | null | The same as client_id, by its first name |
Responses
200Successful Responseapplication/jsonSuccessResponse_ActivityData_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | ActivityData | ActivityData fieldsActivityData, expanded above. |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/countsNeeds you's open items: in all, and by section
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_CountsData_| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||
success | true | default true | |||||||||
datarequired | CountsData | CountsData fields
| |||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/healthHealth rail: ordered typed tile array (V0 = the designed five minus unavailable)
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
windowDays | query | integer | default 30 |
Responses
200Successful Responseapplication/jsonSuccessResponse_HealthData_| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||
success | true | default true | |||||||||
datarequired | app__modules__workstream__schemas__health__HealthData | app__modules__workstream__schemas__health__HealthData fields
| |||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/itemsNeeds you's items, open or cleared, newest first
In one section (`section`), or those about one record (`subject_type` and `subject_id`, as the record's own page shows them). `cursor` is the last page's `next_cursor`.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
status | query | enum | default "open" |
section | query | enum | null | One of Needs you's sections, by key |
subject_type | query | enum | null | The kind of record they are about (contact) |
subject_id | query | string | null | That record's id |
limit | query | integer | default 50 |
cursor | query | string | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_list_NeedsYouItem__| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | NeedsYouItem[] | NeedsYouItem[] fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/items/{item_id}One Needs you item by id
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
item_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_NeedsYouItem_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | NeedsYouItem | NeedsYouItem fieldsNeedsYouItem, expanded above. |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/items/{item_id}/buttons/{button}One of a Needs you item's buttons as pressing it now would go, changing nothing
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
item_idrequired | path | string (uuid) | |
buttonrequired | path | integer |
Responses
200Successful Responseapplication/jsonSuccessResponse_ButtonPreview_| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | ButtonPreview | ButtonPreview fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/businesses/{business_id}/workstream/syncChange cursor: last write to anything the page renders + server compose time
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) |
Responses
200Successful Responseapplication/jsonSuccessResponse_SyncData_| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||
success | true | default true | |||||||||
datarequired | SyncData | SyncData fields
| |||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/workstream/dropped-factsFacts producers couldn't record, per UTC day and kind
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | default 7 |
Responses
200Successful Responseapplication/jsonSuccessResponse_DroppedFactsData_| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||
success | true | default true | ||||||||||||
datarequired | DroppedFactsData | DroppedFactsData fields
| ||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | ||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.