Skip to main content
POST
Assign an agent

Authorizations

Authorization
string
header
required

Workspace API token created in Settings → API. Tokens start with adraa_.

Path Parameters

conversationId
string
required

ID of the conversation. Visible in the console URL when a conversation is open: app.inbox.adraa.ai/<workspace>/conversations/<conversationId>, or list conversations with GET /api/v1/conversations.

Example:

"cmbxgz9pq0003ph01m4n5o6p7"

Body

application/json
agentId
string
required

ID of the agent to assign (list agents with GET /api/v1/agents), or ai to assign the workspace's AI agent.

Example:

"cmbxgwq1e0000ph01i0j1k2l3"

Response

Agent assigned

success
boolean
Example:

true

conversationId
string
Example:

"cmbxgz9pq0003ph01m4n5o6p7"

assignment
object

The resulting assignment.