Skip to main content
POST
/
approvals
/
{id}
/
decision
Submit an approval decision
curl --request POST \
  --url https://api.onecli.sh/v1/approvals/{id}/decision \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The approval ID from GET /approvals/pending.

Body

application/json
decision
enum<string>
required

Whether to forward the held request (approve) or block it (deny).

Available options:
approve,
deny

Response

Decision recorded and the held request released

success
boolean