Skip to Content
SeyloDocs
API referenceCLI sign-in

Approve a CLI sign-in

POST
/api/v1/cliLogin.approve

Approves a pending CLI sign-in: the CLI gets an API key of yours, limited to the given actions ("*" for all of yours), optionally to some projects, read-only or not, expiring after expiresInDays (default 7, like the approval page). Browser sessions only, signed in or confirmed with auth.reauth in the last 15 minutes (FORBIDDEN details.reason "reauth" otherwise).

Any signed-in caller. Not available to MCP clients or the assistant.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
userCode*string
Match^[A-HJKMNP-Z2-9]{4}-[A-HJKMNP-Z2-9]{4}$
actions?array<>
Items1 <= items <= 200
projectIds?array<>
Items1 <= items <= 100
readOnly?boolean
expiresInDays?integer
Range1 <= value <= 365

Response Body

Success.

application/json
  1. response
expiresInDays*integer
Range1 <= value
Example Request
curl -X POST 'https://example.com/api/v1/cliLogin.approve' \  -H 'Content-Type: application/json' \  -d '{  "userCode": "string"}'
Example Response
{  "expiresInDays": 1}