v2

latestOpenAPI 3.1.0Proprietary2026-07-26127193620.1 KB
CLI

Poll CLI browser login

Polls a CLI login session until the browser approval either succeeds, is denied, expires, or is polled too quickly. The OAuth token set is created only after approval and is returned exactly once.

post/cli/login/poll

Headers

Idempotency-Keystring

Optional client-supplied idempotency key. Retrying a request with the same key returns the original result instead of performing the action a second time; if omitted the server derives one from the canonical payload hash. Safe to retry network failures without duplicating side effects.

Request body

device_codestring required

Response

CLI login approved and OAuth token set created

successtrue required