Skip to content
Select themeSelect language

get_api_management_v1_workspaces_slug_approvals

GET
/api/management/v1/workspaces/{slug}/approvals
type
string

Approval source: tool (interactive) or workflow (human-gate)

Media typeapplication/json
Array<object>

One pending approval, normalized across the two sources (the management GET .../approvals item). source discriminates: tool carries task_id/kind/redacted payload; workflow carries workflow_run_id/workflow_name/title/instructions. The shared fields (created_at, optional deadline_at) are always present.

object
created_at
required

When the gate was raised.

string format: date-time
deadline_at

The auto-timeout deadline, when one is set.

string | null format: date-time
id
required

The decision target id: the tool-approval id (tool) or the workflow run id (workflow) the decide path resolves a decision from.

string format: uuid
instructions

The human-gate instructions (only set for source = workflow).

string | null
kind

The kind of the interactive gate (tool | question | visual); only set for source = tool.

string | null
payload

The redacted request payload (only set for source = tool).

source
required

tool | workflow — which source the row came from.

string
task_id

The owning task (only set for source = tool).

string | null format: uuid
title

The human-gate title (only set for source = workflow).

string | null
workflow_name

The workflow name (only set for source = workflow).

string | null
Examplegenerated
[
{
"created_at": "2026-04-15T12:00:00Z",
"deadline_at": "2026-04-15T12:00:00Z",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"instructions": "example",
"kind": "example",
"payload": "example",
"source": "example",
"task_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"title": "example",
"workflow_name": "example"
}
]