AI Config
4 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Get AI provider config (masked key)#
GET
/ai-configTokenAntworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/ai-config" \
-H "Authorization: Bearer $XISUITE_TOKEN"Save (upsert) AI provider config#
POST
/ai-configTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
organizationId | string | Legacy compatibility field. Ignored; organization is derived from auth context. |
provider_namePflicht | string | Werte: |
api_keyPflicht | string | Provider API key (max 500 chars) |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/ai-config" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"provider_name":"anthropic","api_key":"…"}'Remove AI provider config#
DELETE
/ai-configTokenAntworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/ai-config" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get AI usage analytics (last 14 days + aggregates)#
GET
/ai-config/usageTokenAntworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/ai-config/usage" \
-H "Authorization: Bearer $XISUITE_TOKEN"