# Inhouse — Skill Rating API > Hosted Elo / Glicko-2 ratings, leaderboards and matchmaking for > multiplayer games. You record **matches**; Inhouse rates the **players** > in a **pool** and serves the leaderboards. Server-to-server, authenticated > with a project API key. - Base URL: `https://api.inhouseranks.com` - Auth header: `x-api-key: inhouse---` - Every page of the docs in one markdown file: [https://inhouseranks.com/docs/llms-full.txt](https://inhouseranks.com/docs/llms-full.txt) - The same docs as web pages, for humans: [https://inhouseranks.com/docs](https://inhouseranks.com/docs) ## Read this first - A **pool** rates individuals, always. One rating per player per pool; a player in three pools has three unrelated ratings. - Every project ships with a **default pool**. Omit the pool reference and it's used: a single-pool app never creates, names or references a pool at all. That holds for the URL too: `GET /v1/pool`, `GET /v1/pool/rankings` and `GET /v1/pool/leaderboard` (no ``) read the default pool. The one exception is `/v1/user/migrate`, which needs a pool named explicitly. - **A field's name says whose id it takes.** `xExternalId` is your own id and `xId` is Inhouse's (24 hex characters): `matchExternalId` / `matchId` for a match, `mmrEntityExternalId` / `mmrEntityId` for a player, `partyExternalId` / `partyId` for a queue party. Neither takes the other kind. - **A pool has one id, Inhouse's: `poolId`.** It's the `_id` that `POST /v1/pool/create` returns and `GET /v1/pools` lists, in a body, a query (`?poolId=`) or a URL (`/v1/pool/`). A pool has no id of your own: anything else in `poolId` is `400 invalid-pool-id`. - Use **your own ids for everything else**: `mmrEntityExternalId` for players, `matchExternalId` for matches (assign it at record/create), `partyExternalId` for queue parties. A matchmaking rule, a position and a region go by the id you gave them: `matchmakingRuleId`, a player's `positionIds` and a party's `regionIds`. - Players are **created lazily**: the first recorded match that names a `mmrEntityExternalId` creates them (scoring alone doesn't). `POST /v1/user/create` sets a display name, or puts a player in a pool before their first match. - **Every player needs your `mmrEntityExternalId`.** It's how Inhouse knows the same person across your pools, and you're billed per player per month by it. `POST /v1/user/create` without one is `400 user-id-required`. (`/v1/match/import` is the exception: it matches players by `name` and creates players without one.) - **A pool is also called a group.** You send `poolId`. In a reply a pool's objects have group names (`group`, `groupRank`, `groupRanks`, `groupSeason`), and a pool's id comes under both names, `poolId` and `groupId`, with the same value. An event's own fields have `poolId` only. The settings you send have group names too: `groupConfig`, `groupRanks`. Error codes too: `group-not-found` is "no such pool". - A player is a "rated user", an `mmrEntity`: `mmrEntityId` and `mmrEntityExternalId` in the ids, and `mmrEntity` in what comes back, whose `_id` is their `mmrEntityId` and whose `externalId` is your `mmrEntityExternalId`. The paths say `user`, as in `/v1/user/create`. - **A player's ids also have user names: `userId` is `mmrEntityId` (Inhouse's), `userExternalId` is `mmrEntityExternalId` (yours).** A request takes either name wherever it names a player, and `userExternalIds` for `GET /v1/user/ratings`. Two different values under both names of one id are `400 conflicting-player-ids`. A reply and an event carry both names with the same value. `userId` is never your own id: one that isn't 24 hex characters is `400 invalid-mmr-entity-id`. - **Field names changed on 18 November 2026.** Before, a pool was named `groupId` (by Inhouse's id or by an id of your own), `matchId` and `userId` took your own ids, Inhouse's went in `groupMid`, `matchMid` and `mmrEntityMid`, a queue rule was `ruleId` and a player's positions were `positions`. Those are refused now (`400 renamed-field`, or an error naming the right field). `userId` came back on 20 November 2026 as Inhouse's id for a player (above), so your own id there is refused. A pool that had an id of yours still shows it as `externalId` in `GET /v1/pools`, beside the `_id` to send as `poolId`. The full list is in the API reference. - **Two match calls.** `POST /v1/match/score` adds players' scores as they come in, and never rates. `POST /v1/match/record` rates a match: it's the call that moves ratings. - **Send `"ranked": true`.** `ranked` defaults to `false` on `/match/record`, `/match/create` and a match `/match/score` opens, and an unranked match moves no rating, wins or losses (only `matchCount`). Matchmade matches are already ranked. - `/match/record` is **one call** either way: - a new match: send its `matchResult` and it's written and rated; - a match that exists (scored with `/match/score`, or made by the matchmaker): name it by `matchExternalId`, or by the `matchId` the matchmaker gave it, plus any last `scores`, and it's rated. A match that's already recorded is `409 match-already-recorded`: a recorded match never changes. Always send a `matchExternalId` with a new match, so a retry can't write a second one. - A match result is just a list of teams, each a placement bucket holding one or more players. Nothing else is required of them: no ids, no setup. - Your API key acts on its own project's pools (every key of a project shares them). `GET /v1/pools` lists the whole organization's pools, test and live. - **Responses have no envelope.** A success body is a flat object: read `body.group`, `body.match`, `body.pools`; there is no `body.data`. Failures are a non-2xx status with `body.code`, except a schema failure: `400 {"error": "Validation failed", "issues": [...]}`. - `GET /v1/match/list` pages from **0**. Every other numbered list pages from 1. ## Docs - [Overview and quickstart](https://inhouseranks.com/docs): record a match and read a leaderboard in two calls. - [Core concepts](https://inhouseranks.com/docs/concepts): projects, pools, players, matches, your own ids, test and live. - [Record matches](https://inhouseranks.com/docs/guides/matches): 1v1, teams, free-for-all, draws, scoring as results come in, retries. - [Leaderboards and ratings](https://inhouseranks.com/docs/guides/leaderboards): the top 100, full rankings, specific players. - [Pools and players](https://inhouseranks.com/docs/guides/pools): create pools, Elo or Glicko-2, add players, end a season. - [Matchmaking](https://inhouseranks.com/docs/guides/matchmaking): queue parties, `match.found`, rules, regions, how lobbies are chosen, queue stats. - [Webhooks](https://inhouseranks.com/docs/guides/webhooks): events, signatures, retries, the delivery log. - [Rank bands](https://inhouseranks.com/docs/guides/rank-bands): name rating ranges ("Gold", with a badge) with `groupConfig.groupRanks`; every stats block then carries its band as `groupRank`. - [Hidden ratings](https://inhouseranks.com/docs/guides/hidden-ratings): `mmrConfig.hideRatingUnderMatchCount`, `hideRatingUnderWinCount`, `glicko2.hideRatingUnderConfidencePercent`; reads flag `hideRating`. - [Placement matches](https://inhouseranks.com/docs/guides/placement-matches): rate a run of matches as one Glicko-2 period with `glicko2.ratingWindows`. - [Streak bonuses](https://inhouseranks.com/docs/guides/streak-bonuses): extra rating for win and lose streaks with `mmrConfig.bonuses`, on top of the rating change: a fixed `mmr`, or an `mmrMultiplier` of the change; the first that fits pays, recorded in `mmrChanges[].bonus`. - [Import and migrate](https://inhouseranks.com/docs/guides/import-and-migrate): bring players over with their ratings, or replay match history. - [Limits and billing](https://inhouseranks.com/docs/guides/limits): rate limits, monthly allowances, size limits. - [API reference](https://inhouseranks.com/docs/api): identifiers, responses, errors, pagination, every endpoint. - [Pools](https://inhouseranks.com/docs/api/pools), [Players](https://inhouseranks.com/docs/api/players), [Leaderboards](https://inhouseranks.com/docs/api/leaderboards), [Matches](https://inhouseranks.com/docs/api/matches), [Matchmaking](https://inhouseranks.com/docs/api/matchmaking): each endpoint with its parameters, a real request and response, and its errors. - [Objects](https://inhouseranks.com/docs/api/objects): the pool, rated user, match, party and matchmaking rule, field by field. - [Errors](https://inhouseranks.com/docs/api/errors): every error code. ## Endpoints | Task | Call | |---|---| | Create a pool (optional: a default pool already exists) | `POST /v1/pool/create`; keep `group._id`, its `poolId` | | Read a pool | `GET /v1/pool/`, or `GET /v1/pool` for the default one | | List your organization's pools | `GET /v1/pools` | | List one player's pools | `GET /v1/pools?mmrEntityExternalId=` | | Change a pool's settings | `POST /v1/pool/update` | | End a season | `POST /v1/pool/season/end` | | Add a player (optional: created when a match naming their `mmrEntityExternalId` is recorded) | `POST /v1/user/create` | | Ratings for specific players | `GET /v1/user/ratings?mmrEntityExternalIds=a,b,c` | | Correct a rating | `POST /v1/user/update-rating` | | Rename or archive a player | `POST /v1/mmr_entities/update` | | Migrate your existing players (ratings and records) into a pool | `POST /v1/user/migrate` | | Top 100 players, ranked and paged | `GET /v1/pool/leaderboard`, or `GET /v1/pool//leaderboard` | | Everyone in a pool, by rating | `GET /v1/pool/rankings`, or `GET /v1/pool//rankings` | | Record a match (written and rated in one call) | `POST /v1/match/record` | | Score players as results roll in | `POST /v1/match/score`, then `POST /v1/match/record` | | Record a matchmade match | `POST /v1/match/record` with its `matchId` and `scores` | | Create, update or delete a pending match | `POST /v1/match/create`, `POST /v1/match/update`, `POST /v1/match/delete` | | Read one match | `GET /v1/match/get?matchExternalId=` | | List matches | `GET /v1/match/list?poolId=` | | Bulk-import history | `POST /v1/match/import` | | Matchmaking: queue players, get a lobby | `POST /v1/queue/join`; the lobby arrives at your webhook as `match.found`. Every pool starts with a ranked 1v1 rule. | | Match players only within a region | List the regions on the pool (`matchmakingRegionIds` on `POST /v1/pool/create` or `/v1/pool/update`), on a rule (`regionIds`) or for the project in the portal; queue with `regionIds` on `POST /v1/queue/join`; `match.found` has `regionId` | | Take a party out of the queue | `POST /v1/queue/leave` | | Show "X players in queue": counts, rating spread, how far searches have widened | `GET /v1/queue/stats?poolId=` (aggregates only; call it from your game server) | | Replay webhook events you missed | `GET /v1/projects/webhook/deliveries?status=failed` | Fetch `https://inhouseranks.com/docs/llms-full.txt` for request bodies, responses, error codes and worked examples.