Trigger Agent Job with Message
Trigger an agent job and append a user message to the saved chat template before running the agent loop. Use this to wire webhooks into agent tasks.
Authorizations
Bearer token authentication using Runchat API key. API keys can be created from the account menu
Path Parameters
The unique identifier for the Runchat job. Jobs are created from the Tasks dashboard and back either a flow run or a saved agent chat.
Body
Optional payload for triggering an agent job. If message is set it is appended as a user message after the saved chat template. If message is absent, the entire body is JSON-stringified and appended as the user message.
User message to append to the saved chat template before running the agent loop.
Response
Successful agent execution.
Response shape for agent-backed job runs.
Stringified JSON containing the agent run metadata (token counts, credits, etc.).
Final transcript including the saved template, any appended user message, and the agent's responses.
The job identifier.
The underlying Runchat identifier.
Outcome of the agent run.
success, error Error message, present only when status is error.