Skip to Content
SeyloDocs
API referenceCLI sign-in

Check a CLI sign-in

POST
/api/v1/cliLogin.poll

Polls a CLI sign-in with its device code. Approved returns the API key once (status used afterwards); send it as Authorization: Bearer .

Needs no sign-in. Not available to MCP clients or the assistant.

Request Body

application/json
  1. body
deviceCode*string
Length20 <= length <= 200

Response Body

Success.

application/json
  1. response
status*string|string|string|string|string
key?
intervalSeconds*integer
Range1 <= value
Example Request
curl -X POST 'https://example.com/api/v1/cliLogin.poll' \  -H 'Content-Type: application/json' \  -d '{  "deviceCode": "stringstringstringst"}'
Example Response
{  "status": "pending",  "key": {    "id": "string",    "token": "string",    "name": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "email": "string"  },  "intervalSeconds": 1}