Developer docs
Build with your game data
Connect your own AI or integration. Start with one safe read, then explore the contract.
Your first API call
- Create a key and copy its secret once.
- Check
/me,/capabilitiesand/usagefor your identity and effective access. - Try a safe read. Keep the response’s
requestIdif you need help.
Read one game
curl 'https://howyourank.com/api/v1/games?limit=1' \
-H 'Authorization: Bearer YOUR_API_KEY'Replace YOUR_API_KEY locally. Keep the secret out of shared screenshots and messages.
Every operation
Search by task or path. Open an operation for exact scopes, tiers and write requirements.
96 operations
Tap a row for details · swipe for more
| What it does | Scope required | Details | ||||
|---|---|---|---|---|---|---|
admin | GET | /admin/api-keys | List API keys (admin) | admin:api_keys:read | Admin / Operator | |
admin | POST | /admin/api-keys/{keyId}/force-rotate | Force rotate API key (admin) | admin:api_keys:write | Admin / Operator | |
admin | PATCH | /admin/api-keys/{keyId}/suspend | Suspend or unsuspend API key (admin) | admin:api_keys:write | Admin / Operator | |
admin | GET | /admin/api-keys/analytics | Get API key usage analytics | admin:api_keys:read | Admin / Operator | |
admin | GET | /admin/api-keys/audit | Lookup sanitized API audit logs by request ID | admin:api_keys:read | Admin / Operator | |
admin | GET | /admin/audit-logs | List API audit log entries (admin) | admin:api_keys:read | Admin / Operator | |
admin | GET | /admin/catalog-quality/candidates | List unresolved catalog candidates | admin:catalog_quality:read | Admin / Operator | |
admin | GET | /admin/catalog-quality/items/{gameSlug} | Get one catalog-quality queue item detail | admin:catalog_quality:read | Admin / Operator | |
admin | GET | /admin/catalog-quality/queue | List the admin catalog-quality queue | admin:catalog_quality:read | Admin / Operator | |
admin | POST | /admin/catalog-quality/ranking-assessments | Save reviewed ranking assessments for a variant | admin:catalog_quality:write | Admin / Operator | |
admin | POST | /admin/catalog-quality/refresh | Refresh catalog-quality snapshots and candidates | admin:catalog_quality:write | Admin / Operator | |
admin | GET | /admin/catalog-quality/runner-packet | Get a deterministic runner packet for one admin catalog task | admin:catalog_quality:read | Admin / Operator | |
admin | GET | /admin/catalog-quality/specs | List family data specs for catalog quality | admin:catalog_quality:read | Admin / Operator | |
admin | POST | /admin/catalog-quality/specs | Create, update, or publish a family data spec | admin:catalog_quality:write | Admin / Operator | |
admin | GET | /admin/operator-queue | List reviewed operator queue packets | admin:operator_queue:read | Admin / Operator | |
admin | POST | /admin/operator-queue | Create reviewed operator queue packet | admin:operator_queue:write | Admin / Operator | |
admin | GET | /admin/operator-queue/{id} | Get reviewed operator queue packet | admin:operator_queue:read | Admin / Operator | |
admin | PATCH | /admin/operator-queue/{id} | Review operator queue packet | admin:operator_queue:write | Admin / Operator | |
admin | POST | /admin/operator-queue/{id}/execute | Dry-run or execute approved operator queue packet | admin:operator_queue:write | Admin / Operator | |
admin | GET | /admin/usage-overview | API usage overview (admin) | admin:api_keys:read | Admin / Operator | |
admin | GET | /admin/users | List users for admin oversight | admin:users:read | Admin / Operator | |
admin | PATCH | /admin/users | Update a user's role (admin) | admin:users:write | Admin / Operator | |
rotate | POST | /api-keys/{keyId}/rotate | Rotate API key with optional overlap window | api_keys:write | Trial | |
get | GET | /capabilities | Get capability manifest (scopes/tier/parity tags) | contract:read | Trial |
Protocol & access reference
Open the part you need. Setup, examples and operator procedures stay here for reference.
Start Here
-
OpenAPI contract:
GET /api/v1/openapi -
Capability manifest:
GET /api/v1/capabilities -
Effective access and usage:
GET /api/v1/usage -
Identity check:
GET /api/v1/me
First-success path for agents:
-
Create a key in
/api-keys. -
Copy the secret once.
-
Call
/me,/capabilities, and/usage. -
Perform one safe action, such as
GET /games?limit=1. -
Preserve the returned
requestIdfor support handoff.
Auth
Authorization: Bearer hyr_live_...
You can also send:
-
X-API-Key -
X-HYR-API-Key
Recommended agent headers:
-
X-HYR-Agent: your-agent/version -
X-Request-Id: your-correlation-id -
X-HYR-Debug: trueonly when debugging a denied request
Standard Envelopes
Success:
{
"data": {},
"requestId": "req_123"
}
Paginated list:
{
"data": [],
"pagination": {
"limit": 25,
"count": 25,
"total": 140,
"hasMore": true,
"nextCursor": "..."
},
"requestId": "req_123"
}
Error:
{
"code": "invalid_request",
"message": "name is required.",
"details": null,
"requestId": "req_123"
}
Denied requests can be retried once with X-HYR-Debug: true or ?trace=true. The error's details.trace field contains sanitized diagnostics only: reason, required tier/scope, quota retry timing, and support hints. Never send raw API keys in support handoff.
Idempotency
For write endpoints, send:
Idempotency-Key: your-stable-key
Replays return Idempotency-Replayed: true. Key reuse with changed payload returns 409 idempotency_key_conflict.
Tiers, Presets, And Operator Access
Public API tiers are:
-
Trial -
Standard -
Trusted
Trial is for new or low-history accounts trying the site and API safely. Standard is the normal self-serve tier for established users. Trusted is elevated access for integrations or users with enough trust/history to justify broader quotas or sensitive scopes.
Admin / Operator is not a normal public tier. It requires a Trusted key owned by an approved operator identity, explicit operator scopes, request IDs, idempotency keys on writes, and audit-log correlation.
The API Center is preset-first. Use raw scopes only when a preset does not fit the integration. Before a serious agent run, call:
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs doctor
/usage returns the current key's tier, presets, scopes, quotas, effective access, blocked-operation reasons, first-success steps, and support handoff fields.
Collections, Homes, And Wishlists
Authenticated management endpoints let a user:
-
track named personal and group collections
-
track owned games and wishlist items inside a collection
-
keep legacy personal/home shelf integrations working during migration
-
add catalog-backed titles or custom titles
-
control collection public visibility
Canonical public collection pages live at /collections/{slug}. Public showcase endpoints still let another website render a player or home's collection/wishlist without an API key.
Showcase Query Params
-
fields: comma-separated optional field groupsyearplayersplaytimeimagethumbnailscopehomenotesvisibilitytimestamps
-
limit: maximum item count
Example: Jarvie Home Public Feeds
curl 'https://howyourank.com/collections/jarvie-home'
curl 'https://howyourank.com/api/v1/showcase/homes/jarvie-home/collection?fields=name,image,players&limit=12'
curl 'https://howyourank.com/api/v1/showcase/homes/jarvie-home/wishlist?fields=name,image,players&limit=12'
Example: Home Wishlist Upsert
curl https://howyourank.com/api/v1/wishlist-games \
-X POST \
-H 'Authorization: Bearer hyr_live_...' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: home-wishlist-001' \
-d '{
"items": [
{
"gameName": "Croquet",
"homeSlug": "jarvie-home",
"isVisiblePublic": true
}
]
}'
Rendering Notes
-
catalogStatus: "catalog"means the title resolved to a catalog game. -
catalogStatus: "custom"means the title is still usable and public, but it does not yet exist in the imported game catalog. -
For small cards, prefer
image.squarewhen present and fall back to a text tile when it is null.
Limits
Rate + quota headers are returned on every authenticated request:
-
X-RateLimit-* -
X-Daily-*
Admin Catalog Quality
The catalog-quality subsystem is for admin agents and catalog operations tooling.
It joins two workflows:
-
intake of unresolved custom titles
-
audit of cataloged games against family-specific data specs
Families
-
board -
card -
dice -
tile -
word -
party -
sport -
lawn -
digital
Core endpoints
-
GET /api/v1/admin/catalog-quality/queue -
GET /api/v1/admin/catalog-quality/candidates -
GET /api/v1/admin/catalog-quality/specs -
POST /api/v1/admin/catalog-quality/specs -
POST /api/v1/admin/catalog-quality/refresh -
GET /api/v1/admin/catalog-quality/items/{gameSlug} -
GET /api/v1/admin/catalog-quality/runner-packet -
POST /api/v1/admin/catalog-quality/ranking-assessments
Queue query params
-
search -
family -
missingField -
staleOnly=true|false -
sortBy -
order=asc|desc
Runner packet usage
Use /runner-packet when you want one deterministic unit of work for an agent.
Examples:
curl 'https://howyourank.com/api/v1/admin/catalog-quality/runner-packet' \
-H 'Authorization: Bearer hyr_live_...'
curl 'https://howyourank.com/api/v1/admin/catalog-quality/runner-packet?family=board' \
-H 'Authorization: Bearer hyr_live_...'
Handbook
See docs/api/CATALOG_QUALITY_AGENT_HANDBOOK.md in the repo for the full agent workflow and terminology.
Operator Workflow
Before an agent runs Admin / Operator writes, use docs/runbooks/API_OPERATOR_WORKFLOW.md.
Minimum handoff fields:
-
route family and user API vs Admin API boundary
-
required preset, tier, and scopes
-
queue item, Linear issue, or explicit input packet
-
allowed batch size
-
verification endpoint
-
request ID, idempotency key, actor, key label, and timestamp
Stop if /usage says the key lacks the effective access needed for the route, if duplicate candidates are ambiguous, or if the write would change shared scoring/ranking semantics without PM approval.
Reviewed Queue Packets
External agents should propose high-risk match/session, group/player, or key-security work before writing:
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs admin:operator-queue:create \
--idempotency-key queue_req_123 \
--json '{"lane":"match_session","title":"Fix score entry","riskLevel":"high","proposedByAgent":"agent-name","packet":{"correctionType":"patch","affectedMatchIds":["match_1"],"before":{"score":10},"after":{"score":12},"reason":"Score entry correction","rankingImpact":"localized"}}'
match_session packets use affected match/session IDs, before/after fields, correction reason, and ranking impact. group_player packets use canonical handle/slug decisions, relationship changes, ownership/role impact, and explicit handle-change approval. api_key_security packets use exact key IDs, evidence request IDs or abuse signals, proposed action, and rollback plan.
Approval does not execute the write. After execution, attach receipts and verification results:
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs admin:operator-queue:get --id queue_item_id
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs admin:operator-queue:dry-run --id queue_item_id
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs admin:operator-queue:execute --id queue_item_id --claim-id claim_queue_item_id
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs admin:operator-queue:review \
--id queue_item_id \
--json '{"status":"executed","executionReceipts":[{"route":"/api/v1/matches/match_1","method":"PATCH","requestId":"req_write_123","statusCode":200,"executedAt":1779390000000}]}'
Request ID Lookup
HYR_API_KEY=hyr_live_... node tools/hyr-api-cli.mjs admin:api-keys:audit --request-id req_123
The lookup returns sanitized audit entries for operators: route, action type, key ID, user ID, agent name, timestamp, and safe metadata.
Policy controls
-
Optional granular grants (
scopeGrants) can be attached to keys. -
Trusted-tier keys can use IP allowlists.
-
Emergency write/all kill switches can be enabled operationally.