Connecteurs et clés d’API
Référence OpenAPI générée pour le domaine « Connecteurs et clés d’API ».
Resolve the effective Anthropic key source for a workspace.
Returns source and update metadata to authenticated users, but includes the stored key hint only for tenant admins. Never returns credential material and has no persistence side effects.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/api-key"{ "id": "string", "key_hint": "string", "provider": "string", "source": "string", "updated_at": "string"}Store, probe, or rotate a workspace-scoped provider credential.
Requires workspace API-key edit permission and enabled BYOK. The operation emits audit events, refreshes the model cache, and requeues provider health checks. Probe failures are returned without rejecting the stored key; disabled BYOK still raises a validation error.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/api-key" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "provider": "string" }'{ "key_hint": "string", "provider": "string", "status": "string", "valid": true}Resolve the effective key source for a workspace provider.
Returns source and update metadata to authenticated users, but includes the stored key hint only for tenant admins. Never returns credential material and has no persistence side effects.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/api-key/provider/string"{ "id": "string", "key_hint": "string", "provider": "string", "source": "string", "updated_at": "string"}Delete a workspace-scoped provider credential.
Requires workspace API-key edit permission, emits a revocation audit event, and requeues provider health checks. Raises not found when no matching workspace credential exists.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/api-key/string"{ "property1": "string", "property2": "string"}Return native and OAuth connections after validating workspace ownership.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/connectors"[ {}]Return an OAuth redirect with workspace connector connection permission.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/connectors/authorize" \ -H "Content-Type: application/json" \ -d '{ "toolkit": "string" }'{}Validate and audit storage of a native key after checking workspace access.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/connectors/native/authorize" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "provider": "string" }'{}Audit removal of a native key after checking workspace ownership and permission.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/connectors/native/string"{}Refresh cached OAuth connections after validating workspace ownership.
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/connectors/refresh-cache"{}Return whitelist entries only when the workspace belongs to the tenant.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/connectors/whitelist"[ {}]Replace every whitelist entry with workspace connector edit permission.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/api/workspaces/string/connectors/whitelist" \ -H "Content-Type: application/json" \ -d '{ "entries": [ { "connector_slug": "string" } ] }'{}Set whether one whitelisted connector reuses the tenant connection.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/api/workspaces/string/connectors/whitelist/string" \ -H "Content-Type: application/json" \ -d '{ "use_tenant_connection": true }'{}Remove a matching OAuth connection, returning whether one existed.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/connectors/string"{}