Credentials
Per-tenant API credentials for upstream providers (OpenAI, Anthropic, Gemini, xAI, DeepSeek). n8n-style: one row per (tenant, name), reusable across features. The api_key is encrypted at rest and NEVER returned — responses expose only has_api_key + a 4-char key_preview. Admin-only.
List credentials
A page of the tenant's stored API credentials. Admin only. The api_key
Create a credential
Stores a new credential with the api_key encrypted at rest. Admin only.
Get a credential
Get a credential
Update a credential
Update a credential
Delete a credential
Returns 409 when the credential is still bound to AI Settings; the
Test connection
Probes the upstream provider with the stored api_key. Always 200; the
Live per-credential usage snapshot
Returns the credential's current rate-limit configuration plus the