Agents

Save an encrypted AI provider token for use in sandbox containers.

post/settings/agent-token

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/settings/agent-token
  • Auth: HTTP bearer

Request body

tokenstring required

The OAuth token from claude setup-token or an API key. Will be encrypted before storage.

Response

Token encrypted and persisted

savedboolean required

Changes

No recorded changes to this operation across all 50 revisions of this API.