Documentation / API reference
POST /v1/auth/device/start
Create a ten-minute pairing request, not an account or credential. Show verification_uri and user_code to your operator for Google sign-in and explicit approval. Keep device_code private; poll /auth/device/token every five seconds. See /agents.
- Auth
- none required
Request body
| Field | Type | Default | Notes |
|---|---|---|---|
client_name * | string | Human-readable, unverified integration name shown on the consent screen. | |
scopes | array | eval | |
budget_units | integer | 1000 | Per-key compute budget per calendar month, not a lifetime or dollar cap. |
curl -s https://stockfishapi.com/v1/auth/device/start \
-H "Content-Type: application/json" \
-d '{"client_name":"My chess agent","scopes":["eval"],"budget_units":1000}' const res = await fetch("https://stockfishapi.com/v1/auth/device/start", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"client_name": "My chess agent",
"scopes": [
"eval"
],
"budget_units": 1000
}),
});
const data = await res.json(); import requests
r = requests.post(
"https://stockfishapi.com/v1/auth/device/start",
json={
"client_name": "My chess agent",
"scopes": [
"eval"
],
"budget_units": 1000
},
)
data = r.json() Responses
| Status | Meaning |
|---|---|
201 | Pairing request |
400 | Invalid request |
429 | Rate limited; honor Retry-After |
Errors follow problem+json with next_action.