Brume · Docs
API

Connecteurs et clés d’API

Référence OpenAPI générée pour le domaine « Connecteurs et clés d’API ».

GET
/api/workspaces/{workspace_id}/api-key

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

workspace_id*string

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"}
POST
/api/workspaces/{workspace_id}/api-key

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

workspace_id*string

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}
GET
/api/workspaces/{workspace_id}/api-key/provider/{provider}

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

workspace_id*string
provider*string

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
/api/workspaces/{workspace_id}/api-key/{provider}

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

workspace_id*string
provider*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/api-key/string"
{  "property1": "string",  "property2": "string"}
GET
/api/workspaces/{workspace_id}/connectors

Return native and OAuth connections after validating workspace ownership.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/connectors"
[  {}]
POST
/api/workspaces/{workspace_id}/connectors/authorize

Return an OAuth redirect with workspace connector connection permission.

Path Parameters

workspace_id*string

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"  }'
{}
POST
/api/workspaces/{workspace_id}/connectors/native/authorize

Validate and audit storage of a native key after checking workspace access.

Path Parameters

workspace_id*string

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"  }'
{}
DELETE
/api/workspaces/{workspace_id}/connectors/native/{provider}

Audit removal of a native key after checking workspace ownership and permission.

Path Parameters

workspace_id*string
provider*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/connectors/native/string"
{}
POST
/api/workspaces/{workspace_id}/connectors/refresh-cache

Refresh cached OAuth connections after validating workspace ownership.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/connectors/refresh-cache"
{}
GET
/api/workspaces/{workspace_id}/connectors/whitelist

Return whitelist entries only when the workspace belongs to the tenant.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/connectors/whitelist"
[  {}]
PUT
/api/workspaces/{workspace_id}/connectors/whitelist

Replace every whitelist entry with workspace connector edit permission.

Path Parameters

workspace_id*string

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"      }    ]  }'
{}
PATCH
/api/workspaces/{workspace_id}/connectors/whitelist/{slug}

Set whether one whitelisted connector reuses the tenant connection.

Path Parameters

workspace_id*string
slug*string

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  }'
{}
DELETE
/api/workspaces/{workspace_id}/connectors/{toolkit}

Remove a matching OAuth connection, returning whether one existed.

Path Parameters

workspace_id*string
toolkit*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/connectors/string"
{}