GET
/
api
/
cli
/
device
/
poll
Poll CLI device login
curl --request GET \
  --url https://selltraces.com/api/cli/device/poll
{
  "ok": true,
  "status": "<string>",
  "token": "<string>",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Query Parameters

deviceCode
string
required

Opaque device code returned by POST /api/cli/device/start.

Minimum string length: 1

Response

Device login was approved and token is returned.

ok
boolean
required
status
string
required
Allowed value: "approved"
token
string
required

Opaque SellTraces machine token.

userId
string<uuid>
required

UUID string.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$