Skip to main content
GET
List pending approvals across the organization
Returns pending approval requests from all workspaces. If none are waiting, the call holds open until one arrives or the poll times out. Use it to build a central approver. See Rules for how approvals are triggered. Long-polls for manual-approval requests awaiting a decision across every workspace in the organization. Returns immediately when any are pending, otherwise holds the connection open (up to timeoutSeconds) until one arrives or the poll times out. Each request carries its own workspaceId; submit the decision to POST /approvals/{id}/decision with that workspace’s X-Workspace-Id. Authenticate with an organization API key (oc_org_…) — a workspace key answers 403.
Availability: Cloud · Enterprise (self-hosted). On an unlicensed self-hosted deployment the gateway answers 403 with { "error": "enterprise_license_required" }.
Served by the gateway, not the API server. The base URL is your gateway’s HTTP origin (https://gw.onecli.sh on Cloud; http://localhost:10255 self-hosted, or <app-url>/gw behind a reverse proxy). Read it from GET /gateway-url.

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Query Parameters

exclude
string

Comma-separated approval IDs to skip (already being handled) so the poll can hold open for genuinely new requests.

Response

Pending approval requests across the organization

requests
object[]
timeoutSeconds
integer