Approve or deny a request
⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/organizations/spend_limits/requests/{request_id}/decisionApprove or deny a pending request. Approving sets the workspace limit to the requested amount (or approved_limit_usd if you grant less) immediately. The requester is emailed either way.
For how this fits into a full workflow, see Spend limits.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys. |
syntic-beta | Yes, while in preview | admin-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Content-Type | Yes | application/json |
Idempotency-Key | No | Up to 255 characters. Retrying with the same key within 24 hours returns the first result instead of acting twice. See Idempotency. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
request_id | string | The request id, starting with slr_. |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
decision | string | Yes | approve or deny. |
approved_limit_usd | string | No | Grant a different amount; must be above the current limit. |
note | string | No | Up to 500 characters, sent to the requester. |
Response
200 OK, Content-Type: application/json
{
"id": "slr_01JCQ3R5T7V9X1Z3B5D7",
"type": "spend_limit_request",
"workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q",
"requested_by": "user_01J9Y0A2C4E6G8J0L2N4",
"current_limit_usd": "500.00",
"requested_limit_usd": "1500.00",
"period": "month",
"reason": "Quarter-end batch backfill of 2M support tickets.",
"status": "approved",
"decided_by": "user_01J9X1B3D5F7H9K1M3P5",
"decision_note": "Approved through 31 December.",
"created_at": "2026-11-05T10:00:00Z",
"decided_at": "2026-11-05T12:00:00Z",
"approved_limit_usd": "1200.00"
}| Field | Type | Description |
|---|---|---|
status | string | pending, approved, denied or expired (no decision in 14 days). |
current_limit_usd | string | The workspace limit when the request was made. |
requested_limit_usd | string | What the requester asked for. |
decided_by | string or null | The admin who approved or denied it. |
Examples
curl -sS "https://app.syntic.ai/v1/organizations/spend_limits/requests/slr_01JCQ3R5T7V9X1Z3B5D7/decision" \
-H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
-H "syntic-beta: admin-2026-11-01" \
-H "Idempotency-Key: 8d6f0c1e-4b2a-4a57-9f0e-2f1d3c4b5a69" \
-H "Content-Type: application/json" \
-d '{
"decision": "approve",
"approved_limit_usd": "1200.00",
"note": "Approved through 31 December."
}'Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 409 | conflict_error | request_not_pending | Already decided or expired. |
| 403 | permission_error | owner_required | Only owners can approve beyond the organization-wide limit. |
| 404 | not_found_error | spend_limit_request_not_found | No request with this id. |
| 401 | authentication_error | invalid_api_key | The admin key is missing, unknown, revoked or expired. |
| 403 | permission_error | admin_key_required | An inference key was used. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?