Skip to main content
POST
/
api
/
approvals
/
{id}
/
decide
Approve or reject a pending approval
curl --request POST \
  --url https://app.mandate.md/api/approvals/{id}/decide \
  --header 'Content-Type: application/json' \
  --cookie laravel_session= \
  --data '
{
  "decision": "approved",
  "note": "Verified with vendor, payment is correct."
}
'
{
  "approvalId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "intentId": "9e5f1a2b-3c4d-5e6f-7a8b-9c0d1e2f3a4b",
  "decision": "approved",
  "intentStatus": "approved"
}

Authorizations

laravel_session
string
cookie
required

Laravel Sanctum cookie-based session authentication. Obtained via GitHub OAuth login on the dashboard.

Path Parameters

id
string<uuid>
required

The approval ID.

Body

application/json
decision
enum<string>
required

The approval decision.

Available options:
approved,
rejected
note
string

Optional note explaining the decision.

Maximum string length: 500

Response

Decision recorded.

approvalId
string<uuid>
required
intentId
string<uuid>
required
decision
enum<string>
required
Available options:
approved,
rejected
intentStatus
enum<string>
required
Available options:
approved,
rejected