Approval

Approve a pending internal approval request

POST
/api/approval/internal/{id}/approve

Approves a pending INTERNAL approval request as the authenticated agent. Executes the deferred tool with the originally captured arguments; on success the approval transitions to approved and the result is attached; on tool failure it transitions to failed and a failureReason is recorded.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/approval/internal/string/approve" \  -H "Content-Type: application/json" \  -d '{    "notes": "Cannot approve - pricing is outside the agreed range."  }'
{  "success": true,  "status": "approved",  "result": {    "bookingId": "bk_64a1b2c3d4e5f60012345678"  }}