Skip to main content
GET
/
org
/
approvals
/
pending
List pending approvals across the organization
curl --request GET \
  --url https://api.onecli.sh/v1/org/approvals/pending \
  --header 'Authorization: Bearer <token>'
{
  "requests": [
    {
      "id": "<string>",
      "projectId": "<string>",
      "method": "<string>",
      "url": "<string>",
      "host": "<string>",
      "path": "<string>",
      "headers": {},
      "bodyPreview": "<string>",
      "summary": {},
      "agent": {
        "id": "<string>",
        "name": "<string>",
        "externalId": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "expiresAt": "2023-11-07T05:31:56Z"
    }
  ],
  "timeoutSeconds": 123
}

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

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

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