List human tasks
List the human tasks that praxis/approval workflow steps opened, newest first. By default it returns only open tasks assigned to the caller: their approval inbox. scope=all lists every task of the organization, and status and run_id narrow the list. Use a returned id with retrieve for details and respond to decide. Read-only: listing never changes a task.
GET /automation/v1/human-tasks
Authentication
Authorization: Bearer $PRAXIS_API_KEY
Request fields
| Parameter | Type | Description |
|---|---|---|
| query: limit | integer |
optional; Page size, 1–100, default 50. minimum: 1; maximum: 100 |
| query: cursor | string |
optional; The next_cursor of the previous page; omit for the first page. |
| query: status | "open" / "completed" / "expired" / "cancelled"[] |
optional; Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open. minItems: 1 |
| query: run_id | string |
optional; Only tasks opened by this run (run_). |
| query: scope | "assigned" / "all" |
optional; assigned (default) lists only tasks assigned to the caller; all lists every task of the organization. |
Examples
curl --fail-with-body -X GET "https://api.deepraxis.com/automation/v1/human-tasks" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
--get \
--data-urlencode "run_id=run_00mvoxnjik9a1389c530fcdf94b41977428e7f06a62a11a82ca4e851ffa9db5daa2cb7901c"
import { createAutomationClient } from '@deepraxis/sdk/automation';
function env(name: string): string {
const value = process.env[name];
if (!value) throw new Error(`Set ${name}`);
return value;
}
const automation = createAutomationClient({
apiKey: env('PRAXIS_API_KEY'),
baseUrl: 'https://api.deepraxis.com',
maxRetries: 0,
timeoutMs: 90_000,
});
const result = await automation.humanTasks.list({
"query": {
"run_id": "run_00mvoxnjik9a1389c530fcdf94b41977428e7f06a62a11a82ca4e851ffa9db5daa2cb7901c"
}
});
console.log(result);
Response
HTTP 200
Success
application/json
| Field | Type | Description |
|---|---|---|
| data | object[] |
required; Human tasks on this page, newest first. |
| data[].id | string |
required; Human task ID (htask_), derived deterministically from the run and step; use it with retrieve, respond, cancel and delegate. The Console page is /automation/tasks/{id}. |
| data[].owner | string |
required; ID of the organization that owns the task. |
| data[].run_id | string |
required; ID of the workflow run (run_) that opened the task; the run continues once the task closes. |
| data[].workflow | object / null |
required; The published workflow of the run; null for an ad hoc run. |
| data[].workflow (variant 1).namespace | string |
required; Workflow namespace. |
| data[].workflow (variant 1).name | string |
required; Workflow name. |
| data[].task_reference | string |
required; JSON Pointer of the approval step in the workflow source, for example /do/1/approveRefund. |
| data[].wait_id | string |
required; ID of the run's wait (wait_htask_); it closes only through respond, never through the run wait completion endpoint. |
| data[].kind | "approval" |
required; Task kind; currently only approval. |
| data[].title | string |
required; Approval title, at most 200 characters. |
| data[].body | string |
required; Markdown details for the assignees, up to 16 KiB; empty string when not given. |
| data[].context | null / string / number / boolean / object / JSON[] |
required; JSON context the workflow attached (for example the order), up to 32 KiB; null when not given. |
| data[].context (variant 5).* | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].context (variant 6)[] | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].actions | object[] |
required; The 1–6 buttons an assignee chooses from; defaults to approve and reject. |
| data[].actions[].id | string |
required; Action ID to pass as action_id to respond; starts with a lowercase letter, at most 32 characters. |
| data[].actions[].label | string |
required; Button label. |
| data[].actions[].style | "primary" / "danger" / "default" |
required; primary: the main button. danger: a destructive button, which is the rejection in all, quorum and sequential modes. default: a plain button. |
| data[].actions[].require_comment | boolean |
required; When true, choosing this action requires a comment. |
| data[].form_schema | object / null |
required; The form an assignee fills in (a JSON Schema subset - an object with at most 30 string, number, integer, boolean or enum fields); null when there is no form. |
| data[].form_schema (variant 1).* (variant 5) | object |
Recursive JSON value. |
| data[].form_schema (variant 1).* (variant 6)[] | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].assignees | object |
required; The assignees. no additional fields. |
| data[].assignees.users | string[] |
required; Assignee user IDs, 1–20; sequential mode follows this order. Delegation replaces an entry in place. |
| data[].assignees.groups | string[] |
required; Group assignment; not supported yet, always an empty array. |
| data[].mode | "any" / "all" / "quorum" / "sequential" |
required; Decision rule. any: the first response decides. all: everyone must respond and any rejection rejects at once. quorum: quorum approvals approve, and it rejects once that many approvals are no longer possible. sequential: assignees respond in users order; any rejection rejects at once and the last approval approves. |
| data[].quorum | integer / null |
required; Number of approvals required in quorum mode; null in other modes. |
| data[].allow_self_approval | boolean |
required; When true, the person who started the run may respond to their own request; false by default. |
| data[].allow_agent_decision | boolean |
required; When true, an agent (agent session or run token) may respond; false by default. |
| data[].initiator | object |
required; The subject that started the run. no additional fields. |
| data[].initiator.type | "user" / "api_key" / "agent" / "run" / "trigger" |
required; Initiator type: user, api_key, agent, run (a parent run), trigger or application. |
| data[].initiator.id | string |
required; Initiator ID. |
| data[].initiator.user_id | string / null |
required; The user behind the initiator (the owner of an API key or trigger), null when unknown; the self-approval rule uses it. |
| data[].due_at | string |
required; Due time (RFC 3339); defaults to 3 days after creation, at most 30 days and never later than the run's deadline. on_timeout applies when it passes. format: "date-time" |
| data[].on_timeout | object |
required; What happens at due_at. no additional fields. |
| data[].on_timeout.action | "reject" / "approve" / "fault" |
required; reject: the workflow receives decision timeout:reject. approve: it receives timeout:approve. fault (default): the step raises a timeout error that try/catch can catch. |
| data[].remind | string[] |
required; Reminder intervals (ISO 8601 durations, up to 3); stored, not yet sent in this version. |
| data[].channels | "console" / "email"[] |
required; Notification channels: console or email; stored, delivery is not wired yet. |
| data[].proposal | null / string / number / boolean / object / JSON[] |
required; An agent's proposal (any JSON up to 32 KiB) for the assignees to consider; null when not given. |
| data[].proposal (variant 5).* | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].proposal (variant 6)[] | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].status | "open" / "completed" / "expired" / "cancelled" |
required; open: awaiting responses. completed: decided. expired: due_at passed. cancelled: withdrawn, including automatically when the run ended. |
| data[].responses | object[] |
required; Responses submitted so far, in order. |
| data[].responses[].actor | object |
required; Who responded. no additional fields. |
| data[].responses[].actor.id | string |
required; The responder's user ID (for an agent, the user it acts for). |
| data[].responses[].actor.kind | "human" / "agent" |
required; human: the person responded. agent: an agent responded on their behalf. |
| data[].responses[].actor.display_name | string / null |
required; Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID. |
| data[].responses[].action_id | string |
required; The chosen action ID. |
| data[].responses[].values | object |
required; Submitted form values; an empty object when there is no form. |
| data[].responses[].values.* (variant 5) | object |
Recursive JSON value. |
| data[].responses[].values.* (variant 6)[] | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].responses[].comment | string / null |
required; Comment; null when none. |
| data[].responses[].via | "console" / "api" / "agent" |
required; Where it came from: console, api (the public API) or agent. |
| data[].responses[].at | string |
required; Submission time (RFC 3339). format: "date-time" |
| data[].outcome | object / null |
required; The decision, which is also the workflow step's output; null while open, and after a fault timeout or cancellation. |
| data[].outcome (variant 1).decision | string |
required; The deciding action ID, or timeout:reject / timeout:approve when on_timeout decided. |
| data[].outcome (variant 1).values | object |
required; Form values of the deciding response; an empty object on timeout. |
| data[].outcome (variant 1).values.* (variant 5) | object |
Recursive JSON value. |
| data[].outcome (variant 1).values.* (variant 6)[] | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].outcome (variant 1).comment | string / null |
required; Comment of the deciding response; null on timeout. |
| data[].outcome (variant 1).decided_by | object / null |
required; Who decided; null on timeout. |
| data[].outcome (variant 1).decided_by (variant 1).id | string |
required; The responder's user ID (for an agent, the user it acts for). |
| data[].outcome (variant 1).decided_by (variant 1).kind | "human" / "agent" |
required; human: the person responded. agent: an agent responded on their behalf. |
| data[].outcome (variant 1).decided_by (variant 1).display_name | string / null |
required; Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID. |
| data[].outcome (variant 1).responses | object[] |
required; All responses at the time the task closed. |
| data[].outcome (variant 1).responses[].actor | object |
required; Who responded. no additional fields. |
| data[].outcome (variant 1).responses[].actor.id | string |
required; The responder's user ID (for an agent, the user it acts for). |
| data[].outcome (variant 1).responses[].actor.kind | "human" / "agent" |
required; human: the person responded. agent: an agent responded on their behalf. |
| data[].outcome (variant 1).responses[].actor.display_name | string / null |
required; Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID. |
| data[].outcome (variant 1).responses[].action_id | string |
required; The chosen action ID. |
| data[].outcome (variant 1).responses[].values | object |
required; Submitted form values; an empty object when there is no form. |
| data[].outcome (variant 1).responses[].values.* (variant 5) | object |
Recursive JSON value. |
| data[].outcome (variant 1).responses[].values.* (variant 6)[] | null / string / number / boolean / object / JSON[] |
Recursive JSON value. |
| data[].outcome (variant 1).responses[].comment | string / null |
required; Comment; null when none. |
| data[].outcome (variant 1).responses[].via | "console" / "api" / "agent" |
required; Where it came from: console, api (the public API) or agent. |
| data[].outcome (variant 1).responses[].at | string |
required; Submission time (RFC 3339). format: "date-time" |
| data[].created_at | string |
required; Creation time (RFC 3339). format: "date-time" |
| data[].updated_at | string |
required; Last change time (RFC 3339). format: "date-time" |
| next_cursor | string / null |
required; Cursor for the next page, passed back as cursor; null when there are no more. |
Measured response
HTTP 200
{
"data": [
{
"id": "htask_c85611f5546106a9e140fae63de3be0b0bbe2feeb9f003ec8fd1db1b6da5b900",
"owner": "org_prxp50ywsssv6s86nhcn8yytb",
"run_id": "run_00mvoxnjik9a1389c530fcdf94b41977428e7f06a62a11a82ca4e851ffa9db5daa2cb7901c",
"workflow": null,
"task_reference": "/do/0/approve",
"wait_id": "wait_htask_c85611f5546106a9e140fae63de3be0b0bbe2feeb9f003ec8fd1db1b6da5b900",
"kind": "approval",
"title": "报销 120 元",
"body": "差旅报销,附发票。",
"context": null,
"actions": [
{
"id": "approve",
"label": "同意",
"style": "primary",
"require_comment": false
},
{
"id": "reject",
"label": "驳回",
"style": "danger",
"require_comment": false
}
],
"form_schema": null,
"assignees": {
"users": [
"usr_rxp50ywsssv6s86nhcn8yytb"
],
"groups": []
},
"mode": "any",
"quorum": null,
"allow_self_approval": true,
"allow_agent_decision": false,
"initiator": {
"type": "api_key",
"id": "key_rbq66f5v9vxqbk6cd702x5er",
"user_id": "usr_rxp50ywsssv6s86nhcn8yytb"
},
"due_at": "2026-10-26T08:26:19.537Z",
"on_timeout": {
"action": "fault"
},
"remind": [],
"channels": [
"console"
],
"proposal": null,
"status": "open",
"responses": [],
"outcome": null,
"created_at": "2026-10-26T07:26:19.537Z",
"updated_at": "2026-10-26T07:26:19.537Z"
}
],
"next_cursor": null
}
Errors
| HTTP | Codes and description |
|---|---|
| 400 | INVALID_PARAMS: Invalid request parameters, path, cursor, or body format. |
| default | RFC 9457 automation problem. 429 includes Retry-After. |
Authentication and common errors · Retain the X-Request-Id response header for troubleshooting.