Set or update API key for a provider
Stores or replaces the API key for a single provider (anthropic, openai, google) on the organization’s credentials. SUPERADMIN-only and tenant-scoped — callers cannot set keys for organizations they do not belong to. For backward compatibility, the legacy anthropicApiKey field is mirrored when provider=anthropic.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Provider whose key is being set, identified by its vercelUniqueName.
anthropic, openai, google Provider API key; stored encrypted and never returned in GET responses.
Whether the provider should be active immediately after the key is stored. Defaults to true when omitted.