Skip to content
POST/device/token

Poll no faster than the interval. The token is returned once.

  • Authentication: None.
  • MCP tool: None. Signing in is on the REST API only.

Send a JSON object. Names are snake_case, as in responses; the camelCase spelling is accepted too.

Name Type Required Description
device_code string Yes
curl -X POST https://api.g1t.sh/device/token \
-H "Content-Type: application/json" \
-d '{
"device_code": "Gm3k…"
}'

A successful request answers 200 with:

{
"status": "approved",
"token": "g1t_…",
"username": "syntaqx",
"verified": true
}