Skip to main content
POST
Send a message
Sends your message whatever the agent is doing. Use it as the default way to talk to an agent: an idle agent gets a new turn, and a busy one gets a follow-up that steers its current work. Related guide: Agent access: grant credentials to agents. Says something whatever the agent is doing. A free conversation gets an ordinary turn; a turn in flight gets a follow-up that steers into it. The response says which. At most 10 follow-ups may wait on one conversation.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

conversationId
string
required

Body

application/json
message
string
required
Maximum string length: 100000
attachmentIds
string[]

Ids of attachments staged with POST /conversations/{conversationId}/attachments.

Maximum array length: 5

Response

What the message became

kind
enum<string>
Available options:
turn,
followUp
turn
object