Skip to content
POST/device/code

Show the person verification_uri_complete and have them open it in a browser, where they sign in or register and approve the code. Then poll /device/token.

  • 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
client_name string No What is asking, shown to the person approving. For example, Claude Code.
curl -X POST https://api.g1t.sh/device/code \
-H "Content-Type: application/json" \
-d '{
"client_name": "Claude Code"
}'

A successful request answers 200 with:

{
"device_code": "Gm3k…",
"user_code": "WDJB-MJHT",
"verification_uri": "https://g1t.sh/device",
"verification_uri_complete": "https://g1t.sh/device?code=WDJB-MJHT",
"expires_in": 900,
"interval": 5
}