organizations

Add a model provider key for the org.

post/organizations/{organizationId}/model-provider-secrets

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/organizations/{organizationId}/model-provider-secrets
  • Auth: none declared. Required headers: x-organization-id

Path parameters

organizationIdstring required

Headers

x-organization-idstring required

Active organization id (or slug). Required for org-scoped operations; the generated client enforces it at compile time.

Request body

provider'anthropic' | 'openai' | 'xai' | 'google' | 'openrouter' | 'cursor' | 'fireworks-ai' | 'baseten' | 'vercel' | 'nebius' required
type'apiKey' | 'subscription' required
namestring required
valuestring required
baseUrlstring uri nullable

Response

Successful response

Changes

No recorded changes to this operation across all 50 revisions of this API.