Create Provider Config
Create a new provider configuration.
Request body
Secret API key for the provider. Stored encrypted in the secret manager; never returned in responses. May be empty for proxies that accept keyless traffic — the backend suppresses the Authorization header when this is empty.
Use an existing workspace secret as the API key instead of supplying one here. Mutually exclusive with api_key. The secret keeps its own lifecycle: several configurations may share it, and it cannot be deleted while any of them still points at it.
Optional human-readable description of this configuration.
Optional custom endpoint URL (e.g. for self-hosted or proxied providers). Leave unset to use the provider's default.
If True, the configuration is visible to all workspace members; otherwise it is scoped to the creator.
Human-readable label for this provider configuration.
UUID of the provider specification (e.g. OpenAI, Anthropic) this configuration targets. Look up via list_specs.
Response
Successful Response