Approvals

Where one approval request has got to

The endpoint a blocked client polls. Expiry is reported as a status rather than as a 404, because a caller waiting on a request that timed out deserves to be told which of the two happened.

GET
/approvals/{approvalId}

The endpoint a blocked client polls. Expiry is reported as a status rather than as a 404, because a caller waiting on a request that timed out deserves to be told which of the two happened.

Authorization

ApiKeyAuth
AGENTBOX-API-KEY<token>

In: header

Path Parameters

approvalId*string

Response Body

application/json

application/json

curl -X GET "https://approvals/string"
{  "id": "string",  "principal": {    "team": "string",    "user": "string",    "keyId": "string"  },  "sessionId": "string",  "operation": "string",  "onceOnly": true,  "method": "string",  "path": "string",  "summary": "string",  "createdAt": "2019-08-24T14:15:22Z",  "expiresAt": "2019-08-24T14:15:22Z",  "status": "pending",  "scope": "once",  "decidedBy": "string",  "decidedAt": "2019-08-24T14:15:22Z"}
{  "error": "string",  "errorCode": "APPROVAL_REQUIRED",  "detail": null}