Assistant

Context-aware assistant that delegates to specialized sub-assistants based on the resource being edited.

#The AssistantDisplayMessageAttachment is a file attached to a message object

AssistantDisplayMessageAttachment is a file attached to a message

mimeType

string

name

string
GET
/v1/assistant/conversation
Requires auth

#Get assistant conversation

Get the display-ready chat history for a specific context.

#Parameters

query parameters

contextType

string
query

dashboard id — the dashboard does not exist yet while the user and the assistant are still agreeing on what it should show. Once it exists, editing it happens under ASSISTANT_CONTEXT_TYPE_ANALYTICS_DASHBOARD instead. id is the EVENT id, not the link id: two visits to the same link are two different subjects, and sharing a thread between them lets one visitor's details bleed into answers about another. the WORKSPACE id: this thread is not about any one link, dashboard or design, and every capability the resource-scoped assistants have is available from it. One conversation per workspace, so it survives navigation.

Allowed values
ASSISTANT_CONTEXT_TYPE_LINK_ANALYTICS

Building a link's analytics dashboard. context_id is the LINK id, not a

ASSISTANT_CONTEXT_TYPE_LEAD_SCORE

A conversation about one visit and the lead score it produced. The context

ASSISTANT_CONTEXT_TYPE_WORKSPACE

The workspace-wide assistant, with no resource selected. The context id is

contextId

string
query

#Response

200

Everything worked as expected.

messages

array<object>

unreadCount

integer (int32)

Assistant messages in this conversation the member has not seen yet.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

object
Required

Wrapped error response.

POST
/v1/assistant/conversation/read
Requires auth

#Mark assistant conversation read

Record that the member has seen every assistant reply in this conversation. Call it when the thread is actually on screen, not when history is fetched.

#Parameters

This endpoint does not accept any parameters.

#Request body

contextId

string

contextType

string (enum)

dashboard id — the dashboard does not exist yet while the user and the assistant are still agreeing on what it should show. Once it exists, editing it happens under ASSISTANT_CONTEXT_TYPE_ANALYTICS_DASHBOARD instead. id is the EVENT id, not the link id: two visits to the same link are two different subjects, and sharing a thread between them lets one visitor's details bleed into answers about another. the WORKSPACE id: this thread is not about any one link, dashboard or design, and every capability the resource-scoped assistants have is available from it. One conversation per workspace, so it survives navigation.

Allowed values
ASSISTANT_CONTEXT_TYPE_UNSPECIFIED
ASSISTANT_CONTEXT_TYPE_ANALYTICS_DASHBOARD
ASSISTANT_CONTEXT_TYPE_WORKFLOW
ASSISTANT_CONTEXT_TYPE_LINK
ASSISTANT_CONTEXT_TYPE_QRCODE_DESIGN
ASSISTANT_CONTEXT_TYPE_PAGE_THEME
ASSISTANT_CONTEXT_TYPE_LINK_ANALYTICS

Building a link's analytics dashboard. context_id is the LINK id, not a

ASSISTANT_CONTEXT_TYPE_LEAD_SCORE

A conversation about one visit and the lead score it produced. The context

ASSISTANT_CONTEXT_TYPE_WORKSPACE

The workspace-wide assistant, with no resource selected. The context id is

#Response

200

Everything worked as expected.

markedCount

integer (int32)

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

object
Required

Wrapped error response.

POST
/v1/assistant/upload
Requires auth

#Upload file for assistant chat

Upload a file to attach to the next assistant message. Returns a temporary file ID. Files expire after 5 minutes. Max 20MB.

#Parameters

This endpoint does not accept any parameters.

#Request body

content

string

File content (base64-encoded in JSON)

mimeType

string

MIME type (e.g. "image/png", "application/pdf")

name

string

Original filename

#Response

200

Everything worked as expected.

fileId

string

Temporary file ID to include in assistant message attachments

mimeType

string

MIME type (echoed back)

name

string

Original filename (echoed back)

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

object
Required

Wrapped error response.

DELETE
/v1/assistant/conversation
Requires auth

#Clear assistant conversation

Clear the conversation history for a specific context.

#Parameters

query parameters

contextType

string
query

dashboard id — the dashboard does not exist yet while the user and the assistant are still agreeing on what it should show. Once it exists, editing it happens under ASSISTANT_CONTEXT_TYPE_ANALYTICS_DASHBOARD instead. id is the EVENT id, not the link id: two visits to the same link are two different subjects, and sharing a thread between them lets one visitor's details bleed into answers about another. the WORKSPACE id: this thread is not about any one link, dashboard or design, and every capability the resource-scoped assistants have is available from it. One conversation per workspace, so it survives navigation.

Allowed values
ASSISTANT_CONTEXT_TYPE_LINK_ANALYTICS

Building a link's analytics dashboard. context_id is the LINK id, not a

ASSISTANT_CONTEXT_TYPE_LEAD_SCORE

A conversation about one visit and the lead score it produced. The context

ASSISTANT_CONTEXT_TYPE_WORKSPACE

The workspace-wide assistant, with no resource selected. The context id is

contextId

string
query

#Response

200

Everything worked as expected.

No structured schema available for this section.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

object
Required

Wrapped error response.