API reference

Errors

Every error code the API returns to an API key, by area. A failure is a non-2xx status with a code at the top level of the body, often with a message. The format is described under Errors on the reference's first page.

Authentication and access

Status code Meaning and what to do
401 no-auth-header No x-api-key header. A key sent as Authorization: Bearer … is read as a session token and fails with 401 invalid-token: use x-api-key. Without a key, a GET is treated as anonymous and can instead answer 400 group-id-required, 401 auth-required or a 404.
401 invalid-api-key Unknown, revoked or archived key. Don't retry.
403 unauthorized-action You named a pool, match, rated user or party by Inhouse's id (poolId, matchId, mmrEntityId, partyId), and it belongs to another project. A key reaches only its own project's pools.
403 api-key-not-allowed A portal or consumer-app endpoint that an API key can't call, such as /v1/games/update or /v1/groups/roles/update. message says what to use instead: change a pool's game with gameName and gameConfig on /v1/pool/update.

Plan and rate limits

Status code Meaning and what to do
402 over-plan-limit Your plan can't take this. message says which monthly allowance ran out: matches, or active players. Nothing was written or rated. Retries fail the same way until the month rolls over (UTC) or the plan changes. See Plan allowances.
429 rate-limited Back off and honor the Retry-After header (whole seconds). A live project has 100 requests a second across all its keys, unless your organization has been set another rate. Test-project keys hit this far sooner, because they have their own, much tighter limit. message says when it's your project's limit you hit, and which one. See Rate limits.

Requests

Status code Meaning and what to do
400 none {"error": "Validation failed", "issues": [...]}: the body or query failed schema validation. That includes a matchResult that isn't the documented shape, such as a place that isn't a number or constituents that isn't a list, and your own id sent as matchId or mmrEntityId, which take Inhouse's 24-character ids (yours go in matchExternalId and mmrEntityExternalId). Read error, not code. Each issue's path names the field.
400 renamed-field A field under a name it had before 18 November 2026, such as groupId for a pool, ruleId, groupMid or matchMid. field is the name you sent and renamedTo the one to send. Nothing was read or written. See Field names before 18 November 2026.
400 conflicting-player-ids One of a player's ids under both of its names with two different values: userId and mmrEntityId, or userExternalId and mmrEntityExternalId (see user names). field is the user name you sent. Send one of them. Nothing was read or written.
400 none {"error": "Invalid JSON"}: the body isn't a JSON object. Send {}, never an empty body.
400 invalid-pagination A page that isn't a whole number from the list's first page up: below 1 on /leaderboard, /rankings and /v1/pools, below 0 on match/list. Also a /leaderboard pageSize outside 1–100. message names the bounds.
5xx none {"error": "Internal server error"}. Usually transient: retry with backoff. POSTs are not idempotent, so on an ambiguous failure read state back before sending again. A failure while a match is being rated leaves it as it was (pending or written, never stuck half-rated), so recording it again is safe.

Pools

Some of these codes say group where these pages say pool. They are about your pools.

Status code Meaning and what to do
404 group-not-found No such pool: a poolId that doesn't exist.
400 invalid-pool-id A poolId, in a body, a query or a URL, that isn't an Inhouse id (24 hex characters). A pool has no id of your own: send the _id that /v1/pool/create returned, or that GET /v1/pools lists. See Moving a pool to its poolId.
400 invalid-player-filter GET /v1/pools with userId or mmrEntityId, Inhouse's id for a player. The list is filtered by your own id for a player only: send userExternalId (or mmrEntityExternalId).
400 removed-field /v1/pool/create with a groupId or a poolId, which is where an id of your own for the pool used to go. Leave it out. field is the name you sent. Nothing was created.
400 group-id-required /v1/user/migrate without a poolId. It needs a pool that already exists and never falls back to the default pool. message says what to send.
400 project-pools-must-be-solo You sent trackMode: "team". Pools rate individuals: leave it out.
400 max-groups-reached The project already has as many pools as it can: 50, unless we've raised it for your organization. From /v1/pool/create, and from /v1/pool/update restoring an archived pool (archived: false). Nothing was created or restored. message has the count and the limit. Archive a pool you no longer use (archived: true on /v1/pool/update), or ask us to raise the limit.
400 invalid-matchmaking-rule A rule in matchmakingRules is inconsistent (targetTeams outside minTeams–maxTeams, say, or a duplicate id), or forms lobbies bigger than a match can be (maxTeams over 100, maxPlayersPerTeam over 50), or its regionIds isn't a valid list of regions. message names the rule and the constraint.
400 invalid-matchmaking-regions A pool's matchmakingRegionIds, on /v1/pool/create or /v1/pool/update, isn't a valid list of regions: an id that is empty, longer than 50 characters, padded with spaces, contains a . or starts with $, a region listed twice, or more than 20 regions. message names the problem. Nothing was saved.
400 group-ranks-missing-floor With "rankMode": "rank": no band has lower: null.
400 group-ranks-missing-ceiling With "rankMode": "rank": no band has upper: null.
400 group-ranks-not-contiguous With "rankMode": "rank": there is a gap between two bands.
400 group-ranks-overlap With "rankMode": "rank": two bands overlap.
400 group-rank-invalid-range A band's lower isn't below its upper.
400 group-rank-name-required A band has no name.
400 group-ranks-empty "rankMode": "rank" with no bands.
400 invalid-reset-rating-deviation /v1/pool/season/end with a resetRatingDeviation below 40.
409 season-already-ended Another /v1/pool/season/end for this pool ended the season first. Don't send it again unless you mean to end the new season too.

Players

Status code Meaning and what to do
400 user-id-required A call that names no player: /v1/user/create without an mmrEntityExternalId, /v1/user/update-rating with neither mmrEntityExternalId nor mmrEntityId, or a portal edit that would remove a player's id. Every rated user needs your id for the player: Inhouse counts each person once a month by it, across your pools.
400 user-external-id-exists Another active rated user in the pool already has that mmrEntityExternalId: each one names one player per pool. Returned when restoring an archived rated user (archived: false on /v1/mmr_entities/update) whose mmrEntityExternalId was taken in the meantime.
404 mmr-entity-not-found No such player: an mmrEntityId that names no rated user, or on /v1/user/update-rating an mmrEntityExternalId nobody in the pool has.
400 user-ids-required /v1/user/ratings with an empty or missing mmrEntityExternalIds. Name at least one player.
400 too-many-user-ids /v1/user/ratings with more than 100 ids. Split the batch. message names the limit and what you sent.
400 no-players /v1/user/migrate with an empty or missing players list.
400 too-many-players /v1/user/migrate with more than 1000 players. max is the limit. Split the batch.
400 invalid-migration /v1/user/migrate found bad rows and wrote nothing. errors holds one {index, mmrEntityExternalId, code, field, message} per bad row, with code one of player-not-an-object, user-id-required, duplicate-user-id, unknown-field, invalid-field, unknown-position, duplicate-position, glicko2-only-field, conflicting-streaks or match-count-too-low.

Matches

Status code Meaning and what to do
404 match-not-found No such match: a matchId that names none, or a matchExternalId you never used. On /match/record and /match/score an unused matchExternalId opens a new match instead, so there it's a matchId that names nothing, or a /match/record with no matchResult to create the match from.
400 match-id-required The call needs a match (matchExternalId or matchId) you didn't send.
400 match-result-required /match/record with no match reference and no matchResult: there is nothing to create the match from.
400 match-not-pending /match/score, /match/update or /match/delete on a match that is already recorded. On /match/update this only applies to matchResult and ranked: renaming works in any status. From /match/record: you sent a matchResult for a match that is written but not rated (retry with only the match's id), or another call is rating the match right now (retry shortly).
400 match-has-unplaced-teams /match/record on a match whose teams have neither places nor points. Assign places, or send scores with /match/score or in the record call's scores. A new match is refused before anything is written.
400 min-two-teams-required Rating a match with fewer than two teams, such as /match/record after /match/score named only one player. The match stays pending.
400 match-external-id-exists /match/create with a matchExternalId already used by another match in your project. (/match/record treats a used matchExternalId as that match.)
409 match-already-recorded /match/record on a match that is already recorded. Nothing changed: a recorded match is final. Record a new match under a new matchExternalId. After a timed-out /match/record, this answer means the first call went through.
409 rating-update-conflict /match/record or /v1/pool/season/end kept losing to other writes to some of the same players (many matches with one player recorded at the same moment). Nothing changed: send it again. Two or three at once are absorbed without this.
409 player-in-queue A player is waiting in this pool's matchmaking queue, so a match can't take them in: not a new one (/match/record, /match/create, /match/import, /match/score opening one), and not an existing one they aren't in yet (/match/update, /match/score). A match they're already in still records. mmrEntityExternalIds names them. Take the party out with /queue/leave first.

Match results and scores

Refusals of a matchResult or a scores list.

Status code Meaning and what to do
400 team-has-no-constituents A team in matchResult with an empty constituents list.
400 duplicate-mmr-entity The same player twice in one match: on two teams, or twice on one. Naming them once by mmrEntityExternalId and once by mmrEntityId counts.
400 constituent-missing-identifier A constituent with neither mmrEntityExternalId nor mmrEntityId, from /match/create and /match/update.
400 constituent-missing-mmr-entity-id The same, when /match/record rates the match.
400 team-not-found Only for pools created with a declared gameConfig.teams: a team's id isn't one of them. Pools created the default way need no team ids at all.
400 position-not-found A constituent's positionId isn't declared in the pool's gameConfig.positions.
400 invalid-mmr-entity-id A player's mmrEntityId, in a matchResult or a scores entry, isn't an Inhouse id (24 hex characters). mmrEntityId is the _id of the player's rated user: your own id for them goes in mmrEntityExternalId. The same for a userId, its user name, on any call: then field is userId, and your own id goes in userExternalId. Nothing was written.
400 invalid-mmr-entity-external-id A player's mmrEntityExternalId isn't a string.
400 mmr-entity-not-in-pool An mmrEntityId in a match (its result, or a /match/score entry) isn't a rated user of the match's pool. A match only ever names its own pool's players. /match/record answers mmr-entities-length-mismatch for the same thing.
400 too-many-teams A match has at most 100 teams.
400 too-many-players-in-team A team has at most 50 players.
400 too-many-scores A scores list names more players than a full match can hold (100 teams of 50).
400 no-scores /match/score with an empty scores list.
400 score-missing-identifier A scores entry has no mmrEntityExternalId or mmrEntityId (or, on /match/record, teamId).
400 score-multiple-identifiers A /match/record scores entry names a teamId and a player. Name one.
400 invalid-place A /match/record scores entry's place isn't a whole number from 1 up.
400 invalid-points-scored A scores entry's pointsScored isn't a number.
400 invalid-caption A scores entry's caption isn't a string.
400 player-not-in-match /match/record scores naming a player who isn't in the match. Or /match/score doing so on a pool created with a declared gameConfig.teams: adding a player on the fly needs the default, team-less pool.
400 team-not-in-match /match/record scores naming a teamId the match doesn't have.
400 conflicting-scores Two /match/record scores entries give one team different places or points, such as two teammates reported differently.

Imports

Status code Meaning and what to do
400 no-matches /match/import without a non-empty matches list.
400 too-many-matches /match/import with more than 1000 matches. max is the limit.
400 invalid-source /match/import with a source other than default or bgstats. allowed lists them.
400 invalid-bgstats-data /match/import with "source": "bgstats" and no data object.
400 invalid-import /match/import found bad matches and wrote nothing. errors holds {index, code} per bad match, with code one of match-not-an-object, invalid-play-date, min-two-players-required, player-not-an-object, player-missing-name, duplicate-player or player-missing-placement. A match that fails while recording comes back in a 200 instead.

Matchmaking

Status code Meaning and what to do
400 webhook-not-configured /queue/join on a project with no webhook endpoint that receives match.found. Add one in the portal: a formed match is announced only by webhook.
400 players-required /queue/join with an empty players list.
400 player-missing-user-id A players entry without a usable mmrEntityExternalId or userExternalId (1–100 characters). The queue takes your own id for a player, never Inhouse's: an mmrEntityId or userId alone gets this too.
400 duplicate-player The same mmrEntityExternalId twice in one players list.
400 party-too-large More players than the rule's maxPartySize, or than any team can hold (50).
400 party-skill-gap-too-wide The party's own rating spread is already wider than the rule's maxSkillGap, so it could never be placed.
400 positions-required /queue/join under a rule with teamPositions, with a player who listed fewer of its positions than the rule asks for (minPositionsPerPlayer: 1 unless the rule says otherwise). message names the rule's positions, the number needed and the player. Send positionIds for every player, first choice first.
400 invalid-position A player's positionIds on /queue/join names a position the rule has no slot for, names one twice, or isn't a list of position ids. message says which, and lists the rule's positions.
400 party-positions-conflict The party's players can't share a team: between the positions they listed there aren't enough different slots for all of them, such as two players who both list only mid under a rule with one mid per team. Have one of them list another position, or queue them apart.
400 invalid-region /queue/join with a regionIds that names a region the queue doesn't offer, names one twice, or isn't a list of region ids. message says which. For a region the queue doesn't offer, it also lists the queue's regions. A queue's regions are its rule's regionIds, else its pool's matchmakingRegionIds, else the project's.
409 player-already-queued A player in the party is already in a searching party in this pool. Leave that party first.
409 party-external-id-taken /queue/join with a partyExternalId another party in this pool's queue already has. Leave that party first, or send another id.
429 queue-full /queue/join while the project already has as many parties waiting as it can: 5,000 across all its pools and rules, unless we've raised it for your organization. Nothing was queued, and the party's players aren't held. Room comes back as parties are matched, expire or leave, so retry after the Retry-After header (a few seconds). If you see this, look for parties your game stopped waiting on and never took out with /queue/leave. See Size limits.
503 server-restarting /queue/join while the server restarts. The queue isn't stored, so a party queued now would be lost. Retry after the Retry-After header (a few seconds). Parties that were already waiting get a party.cancelled event whose reason is server-shutdown.
404 matchmaking-rule-not-found /queue/join or /queue/stats with a matchmakingRuleId the pool doesn't have.
404 default-matchmaking-rule-not-found /queue/join without a matchmakingRuleId, in a pool where no rule is default. Send a matchmakingRuleId, or mark one rule "default": true.
400 party-ref-required /queue/leave without a partyId or partyExternalId, or with both. Send one.
404 party-not-found The party isn't waiting in the queue: a wrong id, or it was placed, expired, was cancelled or already left (its event says which), or a server restart emptied the queue.
400 invalid-bucket-size /queue/stats with a ratingBucketSize or skillGapBucketSize that isn't a whole number from 1 to 10000.

Webhooks

Status code Meaning and what to do
400 invalid-status /v1/projects/webhook/deliveries with a status other than pending, delivered or failed.