cloadyDocs
API ReferenceEndpointsWorkspaces

Get the workspace's AI gateway settings

The AI gateway's settings for the workspace, the caller's role, the base URL for OpenAI SDKs, and what the gateway charged this month.

GET
/api/workspaces/{workspaceSlug}/ai
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/ai"
{  "ai": {    "settings": {      "models": [        "string"      ],      "defaultModel": "string",      "budgetCents": 0,      "onLimit": "notify",      "alerts": [        50      ],      "keyDefaults": {        "budgetCents": 0,        "rpm": 1,        "models": "all"      },      "redactPii": true,      "logPrompts": true,      "retentionDays": 7,      "maxTokens": 256,      "aliases": [        {          "id": "string",          "chain": [            "string"          ],          "strategy": "fallback"        }      ],      "retries": 0,      "timeoutSec": 5,      "fallbackOn": [        "429"      ]    },    "role": "owner",    "endpoint": "string",    "month": {      "spentMicros": 0,      "freeMicros": 0,      "requests": 0    }  }}