Exchange deviceId + deviceSecret for a fresh device-session token (dst_). Used by tfa-* CLIs to self-renew an expired apiToken.
Cli device token › Responses
Successful response
No data returned
Cli device enrollSelf
POST
https://api.todofor.ai/api/v1
/cli/device/enroll-self
Enroll the calling client as a Device using the current user session. Returns durable device credentials + a dst_ token (same as cli.login.poll for device clients).
Cli device enrollSelf › Responses
Successful response
No data returned
Cli mayfly token
POST
https://api.todofor.ai/api/v1
/cli/mayfly/token
Mint a short-lived, todo-scoped token for an ephemeral (mayfly) bridge, so the durable API key never enters the bridge process.
Cli mayfly token › Responses
Successful response
No data returned
Cli login init
POST
https://api.todofor.ai/api/v1
/cli/login/init
Initiate CLI login flow. Returns a device code and browser URL for the user to approve.
Cli login init › Responses
Successful response
No data returned
Cli login poll
GET
https://api.todofor.ai/api/v1
/cli/login/poll
Poll for CLI login completion. Returns apiKey (or device credentials for bridge clients) once the user has approved.