Skip to main content
GET
List pending approvals
Holds the connection open for up to timeoutSeconds so your approver can react quickly without busy polling. See Rules for which requests need approval. Long-polls for manual-approval requests awaiting a decision in the current workspace. Returns immediately when any are pending, otherwise holds the connection open (up to timeoutSeconds) until one arrives or the poll times out. Authenticate with a workspace API key, or an organization key plus an X-Workspace-Id header. Submit each decision to POST /approvals/{id}/decision.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)
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 in the workspace

requests
object[]
timeoutSeconds
integer

How long the server holds the long-poll open, in seconds.