List AI Providers
Returns one row per supported AI provider (claude, openai), in the platform's pick order: its stored configuration, or a not-configured stub for a provider that has never been saved. configured tells the two apart. The response is a plain array, not paginated.
Get AI Provider
Returns one AI provider's configuration, in the same masked shape as a row of List AI Providers. A provider that has never been saved comes back as a not-configured stub (configured: false) rather than an error. An unsupported provider key is refused.
Upsert AI Provider
Creates or updates an AI provider's configuration and the AI features it serves. The saved configuration is used by the next AI call; nothing needs activating.
Test AI Provider Connection
Builds a temporary client from the submitted configuration and runs one short completion (the model is asked to say hello and name itself). Nothing is saved. Use it to check a key, model or endpoint before saving.