Skip to content
Last updated

🔨 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

Path Parameters

orgId string required

Unique organization identifier (format: ORG_ + 16 chars).

Request Body

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.

Authentication

  • Authorization: Bearer $FREDDY_API_KEY
  • Content-Type: application/json

Returns

Confirmation that requested limits were updated.

Bash
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
}'

Response

{
  "success": true,
  "message": "Organization monthly limit updated to 3000.0 CHF"
}