Skip to content
Navigation

Send a message to a thread

Adds a turn to a thread. If the latest run in the thread is still live (not terminal, not paused) the message steers it in place; otherwise a successor run is started in the same thread, carrying the previous conversation forward as context (spec §A.4). A thread holds at most one non-terminal run. Authorization: whoever may contribute to the thread’s container — its owner for a desk thread, any holder of space:contribute for a thread in a space (everyone else gets 404). Gated by AGENTS_ENABLED; disabled → 404. Returns { threadId, runId, steered, status, spaceId } — 200 when steered, 201 for a successor run. 409 agent_busy when the run’s steering queue is full: with several participants that is routine, so retry after retryAfterMs (default ~3 s) rather than surfacing an error.

POST
https://api.cloudraker.com/me/threads/{threadId}/messages
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • threadId
    string
    required

Request body JSON required

  • message
    string
    required
    maxLength: 4000 · minLength: 1

Returns

200

The steered run.

JSON
  • threadId
    string
    required
  • runId
    string
    required
  • steered
    boolean
    required
  • status
    string
    required
  • spaceId
    string
    required

201

A new successor run.

JSON
  • threadId
    string
    required
  • runId
    string
    required
  • steered
    boolean
    required
  • status
    string
    required
  • spaceId
    string
    required

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Agents disabled, unknown thread, or no access to its container.

409

The agent is busy (agent_busy, with queueDepth/retryAfterMs).

Type to search…

↑↓ navigate↵ selectEsc close