Start signing in
Begins a device sign-in.
POST
/device/codeShow 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.
Body parameters
Section titled “Body parameters”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. |
Example request
Section titled “Example request”curl -X POST https://api.g1t.sh/device/code \ -H "Content-Type: application/json" \ -d '{ "client_name": "Claude Code" }'Example response
Section titled “Example response”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}