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}/decision

Approve 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

HeaderRequiredValue
AuthorizationYesBearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys.
syntic-betaYes, while in previewadmin-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.
Content-TypeYesapplication/json
Idempotency-KeyNoUp to 255 characters. Retrying with the same key within 24 hours returns the first result instead of acting twice. See Idempotency.

Path parameters

ParameterTypeDescription
request_idstringThe request id, starting with slr_.

Body parameters

ParameterTypeRequiredNotes
decisionstringYesapprove or deny.
approved_limit_usdstringNoGrant a different amount; must be above the current limit.
notestringNoUp 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"
}
FieldTypeDescription
statusstringpending, approved, denied or expired (no decision in 14 days).
current_limit_usdstringThe workspace limit when the request was made.
requested_limit_usdstringWhat the requester asked for.
decided_bystring or nullThe 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:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
409conflict_errorrequest_not_pendingAlready decided or expired.
403permission_errorowner_requiredOnly owners can approve beyond the organization-wide limit.
404not_found_errorspend_limit_request_not_foundNo request with this id.
401authentication_errorinvalid_api_keyThe admin key is missing, unknown, revoked or expired.
403permission_erroradmin_key_requiredAn inference key was used.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?