Provider keys
Set an organization provider key
Owner-only. Saves an API key, endpoint, and a header patch atomically. The first save requires a key; omitted secrets are retained and null header values remove headers. Cloudflare requires an endpoint on each save. Key and header values are write-only and use the configured secret cipher.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
provider*string
Value in
- "typesafe"
- "openrouter"
- "cloudflare"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/orgs/string/provider-keys/typesafe" \ -H "Content-Type: application/json" \ -d '{}'{ "provider": "typesafe", "name": "string", "defaultEndpoint": "string", "endpointRequired": true, "endpoint": "string", "headerNames": [ "string" ], "configured": true, "updatedAt": "2019-08-24T14:15:22Z"}