Update spend settings
⚠️
Preview — this feature is being built; the design below is the spec.
PATCH https://app.syntic.ai/v1/organizations/spend_limits/settingsSwitch usage credits on or off organization-wide, and choose how group limits combine. Auto-reload and credit purchases stay in the Console because they move money.
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 |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
credits_enabled | boolean | No | Turning credits on needs a saved payment method or a positive balance. |
multi_group_policy | string | No | higher or lower. |
Response
200 OK, Content-Type: application/json
{
"type": "spend_limits",
"period": {
"starting_at": "2026-11-01T00:00:00Z",
"ending_at": "2026-12-01T00:00:00Z"
},
"credits_enabled": true,
"multi_group_policy": "lower",
"organization": {
"monthly_limit_usd": "500.00",
"spent_usd": "212.4031"
},
"workspaces": [
{
"workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q",
"monthly_limit_usd": "400.00",
"spent_usd": "198.1022"
}
],
"groups": [
{
"group_id": "grp_01JB4D6F8H0K2M4P6R8T",
"name": "Contractors",
"monthly_limit_usd": "20.00"
}
],
"members": [
{
"user_id": "user_01J9Y0A2C4E6G8J0L2N4",
"monthly_limit_usd": null,
"inherited_limit_usd": "20.00",
"inherited_from_group_id": "grp_01JB4D6F8H0K2M4P6R8T",
"effective_limit_usd": "20.00",
"spent_usd": "6.2200"
}
]
}Examples
curl -sS -X PATCH https://app.syntic.ai/v1/organizations/spend_limits/settings \
-H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
-H "syntic-beta: admin-2026-11-01" \
-H "Content-Type: application/json" \
-d '{
"credits_enabled": true,
"multi_group_policy": "lower"
}'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. |
| 403 | permission_error | role_required | The admin key’s creator does not have the role this needs. |
| 409 | conflict_error | payment_method_required | No payment method or balance to turn credits on. |
| 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?