Skip to main content

agent/message/send

Send a message to a conversation under a task.

Parameters

taskId
string (UUID)
required
Branded TaskId
conversationId
string (UUID)
required
Branded ConversationId
parts
array
required
The parts field.
replyToId
string (UUID)
Branded MessageId
dispatchLeaseId
string (UUID)
Branded LeaseId

Response

message
object
The message field.

Errors

TypeWhen
MessageNotFoundErrorthe replyToId reply target is absent
DispatchNotFoundErrorthe dispatch lease is missing
ForbiddenErrorthe sender cannot post or the dispatch lease is consumed/invalid
TaskClosedErrorthe task is closed or failed
ConversationArchivedErrorthe conversation is archived
HookBlockedErroran app-side send hook blocks the message