STOCKFISH 14–19Latest release: 19Explore engines ↗

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

FieldTypeDefaultNotes
client_name *stringHuman-readable, unverified integration name shown on the consent screen.
scopesarrayeval
budget_unitsinteger1000Per-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

StatusMeaning
201Pairing request
400Invalid request
429Rate limited; honor Retry-After

Errors follow problem+json with next_action.