Create a BYOK provider credential
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity’s default workspace; use the workspace_id body field to scope to a different workspace. Management key required.
Authentication
Request
The upstream provider this credential authenticates against, as a lowercase slug (e.g. openai, anthropic, amazon-bedrock).
Optional allowlist of model slugs this credential may be used for. null means no restriction.
Optional allowlist of user IDs that may use this credential. null means no restriction.
Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried.
Optional human-readable name for the credential.