← Back to API Reference overview

Agent

Context-aware agent that delegates to specialized sub-agents based on the resource being edited.

Shortcut: ⌘K

#The AgentDisplayMessageAttachment is a file attached to a message object

AgentDisplayMessageAttachment is a file attached to a message

mimeType

string

name

string
GET/v1/agent/conversationRequires auth

#Get agent conversation

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

#Parameters

query parameters

contextType

stringquery

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 AGENT_CONTEXT_TYPE_ANALYTICS_DASHBOARD instead.

Allowed values
AGENT_CONTEXT_TYPE_LINK_ANALYTICS

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

contextId

stringquery

#Response

200

Everything worked as expected.

messages

array<object>

#Error response

400-599

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

error

objectRequired

Wrapped error response.

POST/v1/agent/messageRequires auth

#Send agent message

Send a message to the agent. The context type determines which specialized sub-agent handles the request.

#Parameters

This endpoint does not accept any parameters.

#Request body

contextId

string

ID of the resource being edited (dashboard ID, workflow ID, link ID)

contextMetadata

string

Optional pre-existing data from the UI (e.g. wizard form state) injected as context

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 AGENT_CONTEXT_TYPE_ANALYTICS_DASHBOARD instead.

Allowed values
AGENT_CONTEXT_TYPE_UNSPECIFIED
AGENT_CONTEXT_TYPE_ANALYTICS_DASHBOARD
AGENT_CONTEXT_TYPE_WORKFLOW
AGENT_CONTEXT_TYPE_LINK
AGENT_CONTEXT_TYPE_QRCODE_DESIGN
AGENT_CONTEXT_TYPE_PAGE_THEME
AGENT_CONTEXT_TYPE_LINK_ANALYTICS

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

message

string

The user's message

#Response

200

Everything worked as expected.

appliedActions

array<string>

contextUpdated

boolean

True if the agent modified the resource (frontend should refresh)

responseText

string

uiActions

array<object>

#Error response

400-599

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

error

objectRequired

Wrapped error response.

POST/v1/agent/uploadRequires auth

#Upload file for agent chat

Upload a file to attach to the next agent 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 agent 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

objectRequired

Wrapped error response.

DELETE/v1/agent/conversationRequires auth

#Clear agent conversation

Clear the conversation history for a specific context.

#Parameters

query parameters

contextType

stringquery

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 AGENT_CONTEXT_TYPE_ANALYTICS_DASHBOARD instead.

Allowed values
AGENT_CONTEXT_TYPE_LINK_ANALYTICS

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

contextId

stringquery

#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

objectRequired

Wrapped error response.