Upsert Org LLM Binding
Bind (or replace) the organisation's shared API key for an LLM provider.
Authorization: caller must be an admin or owner. One binding exists per (org, provider) pair - calling this again overwrites the stored key.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
org_id*Org Id
Format
uuidprovider_name*Provider Name
Query Parameters
verify_locally?Verify Locally
Default
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for binding an API key to a provider.
endpoint/modelName only apply to the "self-hosted" provider, which has no fixed registry endpoint/model - every other provider ignores them.
Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/organisations/497f6eca-6276-4993-bfeb-53cbbbba6f08/llm/credentials/string" \ -H "Content-Type: application/json" \ -d '{ "apiKey": "string" }'{ "provider": "string", "bound": true, "endpoint": "string", "modelName": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}