🔨 In Development — This section is still being developed and may change.
Adjust monthly or per-key spending limits for an organization to control usage budgets.
PUThttps://api.freddy.aitronos.com/v1/analytics/{org_id}/usage/limit
orgId string required
Unique organization identifier (format: ORG_ + 16 chars).
monthlyApiLimit number optional
New organization-wide monthly cost cap in CHF.
apiKeyLimit number optional
New spending limit in CHF applied to the referenced API key.
apiKeyId string optional
Target API key ID (ak_...) when adjusting per-key limits.
At least one limit field must be provided. Include both apiKeyId and apiKeyLimit to scope changes to a specific key.
Authorization: Bearer $FREDDY_API_KEYContent-Type: application/json
Confirmation that requested limits were updated.
Bash
- Bash
- Python
curl -X PUT "https://api.freddy.aitronos.com/v1/analytics/ORG_B66136CBB1304C98/usage/limit" \
-H "Authorization: Bearer $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"monthlyApiLimit": 3000.0
}'{
"success": true,
"message": "Organization monthly limit updated to 3000.0 CHF"
}