Skip to main content
PUT
Assign agent to conversation

Authorizations

Authorization
string
header
required

Token JWT de autenticação

Headers

x-company-id
string

Target company identifier. Required only for global API keys (type=global). Ignored for company API keys and human users.

Path Parameters

id
string
required

Conversation ID

Body

application/json
agentId
string
required

ID of the AI agent to assign

Response

Agent assigned successfully

last_activity_at
any
required

Date of the last activity

status
enum<string>
required

Conversation status

Available options:
OPEN,
RESOLVED
who_answering
enum<string>
required

Who is responding (AGENT/HUMAN)

Available options:
AGENT,
HUMAN,
UNASSIGNED
contact
any
required

Conversation's contact

inbox
any
required

Conversation's inbox

company
any
required

Conversation's company

_id
string

Conversation ID

additional_attributes
any

Additional conversation attributes

agent_last_activity_at
any

Date of the agent's last activity

contact_last_activity_at
any

Date of the contact's last activity

allow_send_messages_at
any

Date allowed to send messages

priority
enum<number>

Conversation priority

Available options:
4,
3,
2,
1
agent
any

Agent assigned to the conversation

current_step
any

Current step of the agent's flow

user
any

User assigned to the conversation

requires_attention
object

Attention required

referral
any

Conversation referral data

createdAt
any

Conversation creation date

updatedAt
any

Conversation update date

resolved_count
number

Number of resolved conversations for the contact (only when grouped)