workspace

Attach a BYOK credential to a session

Changed on

Store the user's Anthropic API key or auth token for this session only. Never send credentials as a chat message.

post/agent/api/v1/sessions/{session_id}/key

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

session_idstring required

Query parameters

tokenstring nullable

Headers

authorizationstring nullable

Cookies

bcr_sessionstring nullable

Request body

api_keystring nullable
auth_tokenstring nullable

Response

Successful Response

Changes