Agents

Hand the provider's authorization code to the waiting CLI.

Changed on
post/settings/ai-providers/{provider_id}/login/code

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/settings/ai-providers/{provider_id}/login/code
  • Auth: HTTP bearer

Path parameters

provider_idstring required

AI provider ID

Request body

codestring required

The authorization code shown by the provider after approving access. Never logged and never echoed back.

Response

Code submitted

detailstring required

Human-readable status of the current phase, or why it ended.

elapsed_secondsinteger required
finished_atstring date-time nullable
phase'starting' | 'waiting' | 'verifying' | 'succeeded' | 'failed' | 'cancelled' required
provider_idstring required
requires_codeboolean required

True when the operator must paste a code back into Temps.

session_idstring required
started_atstring date-time required
timeout_secondsinteger required
user_codestring nullable

Device code to enter on that page, for device-code providers.

verification_urlstring nullable

Page the operator opens in their browser. Present from waiting.

Changes