Pairing flow
Starting sign-in in Agent displays a short user code and browser address. Verify the code, client name and workspace in your account, then approve or reject. The code is valid for 10 minutes.
Client contract
A device code is not a customer API key. After approval, the client receives a new customer key once. Poll pending responses at bounded intervals.
| Field / status | Description |
|---|---|
| POST /api/ide/device/start | Start pairing |
| GET /api/ide/device?user_code=… | Inspect the code with an account session |
| POST /api/ide/device/approve | Explicit browser approval or rejection |
| POST /api/ide/device/token | Poll for the device-code result |
| 428 authorization_pending | Waiting for browser approval |
| 429 slow_down | Increase the polling interval |
| 410 expired_token | Start new pairing |
Sign out and revoke
Sign-out removes the local session and attempts server-side key revocation. If offline, do not assume revocation succeeded; check the dashboard. Never approve an unfamiliar device code.