Execute a specific agent by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
x-workspace-id | integer | No | ID of the workspace. If not provided, the user’s selected workspace will be used. Will be required in a future release. |
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The agent ID. |
| Parameter | Type | Required | Description |
|---|---|---|---|
temperature | string | No | Chat Agent field. Sampling temperature between 0 and 2. Higher values produce more creative outputs (default: "1"). |
model | string | No | Chat Agent field. Model identifier to use for execution (e.g., "tess-6"). |
tools | string | No | Chat Agent field. Tool configuration for the agent (e.g., "agent", "no-tools"). |
root_id | integer | No | Chat Agent field. ID of an existing execution to continue a conversation thread. |
messages | array | No | Chat Agent field. The agent messages. Required for Chat Agent templates. Supports user, assistant, developer roles. |
waitExecution | boolean | No | If true, waits for execution to finish before returning (timeout: 100 s). Default: false. |
file_ids | array | No | Array of file IDs to attach to the execution. |
| Other root-level fields | any | Depends on agent | This is not a fixed field name. You can send additional fields required by your specific agent directly at the request root. Check which fields are required in Get Agent by ID. |
messages array supports the following roles:
| Role | Required | Description |
|---|---|---|
user | Yes | User messages. Must be paired with assistant messages. |
assistant | Yes | Assistant messages. Must be paired with user messages. |
developer | No | Optional developer message. Only allowed as the first message in the array. |
system | No | Not supported. Using this role will cause an error. |
user and assistant roles (after the optional developer message).developer role can only appear as the first message in the array and will be extracted before processing the rest.user messages), the API will return a validation error: “Chat messages must be a pair of user/assistant”.system role is not supported and will cause an error.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the workspace. If not provided, the user's selected workspace will be used. This field will be required in a future release.
The agent ID.
Send a JSON object. Known fields are supported, and you can add custom fields directly at the root (for example: department, reporting_period, include_risks).
Free-form JSON object. Send known fields and any custom agent fields directly at the root level.
Execution started (or completed if waitExecution: true).