Agents

Send a message to an agent run

Continue an existing agent run with a follow-up message, as if it were typed in the run's chat. The agent keeps the run's full context. A run that is busy answers once its current turn ends. Poll /api/agents/:agentId/run-async/:runId/status until done, then read the reply from /api/agents/:agentId/run-async/:runId/result.

post/api/agents/{agentId}/run-async/{runId}/messages

Request

  • Base URL
    https://app.cotool.ai
  • Auth
    HTTP bearer

Path parameters

agentIdstring uuid required

Unique identifier of the agent

runIdstring uuid required

Unique identifier of the asynchronous run to check status for

Request body

messagestring required

Markdown message for the agent

clientMessageIdstring uuid

Your id for this message; a retried request with the same id is not sent twice

Response

Successful response

runIdstring uuid required
messageIdstring uuid required

The clientMessageId the message was queued under

status'queued' required

Changes

No recorded changes to this operation across all 2 revisions of this API.