v1

latestOpenAPI 3.1.02026-07-22106199311.5 KB
AI Agent Tasks

Submit Task Decisions

Submits approval or question-answer decisions for a task that is awaiting human input.

post/v1/ai/agents/tasks/{taskId}/decisions

Path parameters

taskIdstring uuid required

Request body

Example request

{
  "decisions": [
    {
      "answers": [
        {
          "selectedOptions": [
            "option_a"
          ]
        }
      ],
      "id": "550e8400-e29b-41d4-a716-446655440000"
    }
  ]
}

Response

Decisions submitted successfully

Example response

{
  "pendingDecisions": [
    {
      "permissionMessage": {
        "body": "The agent wants to run: SELECT * FROM sales",
        "title": "Execute SQL query"
      },
      "toolId": "call_abc123",
      "toolName": "execute_sql",
      "type": "tool"
    }
  ]
}