API reference
Pools
A pool is an independent set of ratings. Every project already has a default pool, so these calls are optional. For when and why, see Pools and players.
Create a pool
POST/v1/pool/create
Creates a pool with its game and first season. The pool starts with the
ranked-1v1 matchmaking rule unless
you send your own.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Display name, at most 50 characters. |
kind |
string | yes | friends, community or competitive. |
groupConfig |
object | yes | Send {}, or { rankMode, groupRanks } to set rank bands. |
mmrConfig |
object | no | Rating settings. Defaults to Elo starting at 1500. See Use Glicko-2 or another starting rating. |
matchmakingRules |
array | no | The pool's matchmaking rules. [] creates the pool with none. |
matchmakingRegionIds |
array | no | The regions the pool's queues match in, in place of the project's, as ["eu-west", "us-east"]. [] turns regions off for the pool. Left out, the pool uses the project's. A rule's own regionIds overrides both. |
gameConfig |
object | no | { teams, positions, winCondition }. winCondition is mostPoints (default) or leastPoints. |
gameName |
string | no | The name of the pool's game. Defaults to name. |
thumbnail |
string | no | An image URL. |
id |
string | no | The id (24 hex characters) for Inhouse to create the pool with, instead of a generated one. It becomes the pool's _id, its poolId. |
Request
curl -X POST https://api.inhouseranks.com/v1/pool/create \
-H "x-api-key: $INHOUSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Ranked 1v1", "kind": "community", "groupConfig": {} }'Response 200
{
"group": {
"_id": "6b01eb7991a8d0c2e72af67e",
"kind": "community",
"mmrConfig": {
"kind": "elo",
"initialMmr": 1500,
"elo": {
"kFactor": {
"priority": "mmr",
"mmrRanges": [
{ "min": 0, "max": 1500, "value": 36 },
{ "min": 1500, "max": 2500, "value": 32 },
{ "min": 2500, "max": null, "value": 24 }
],
"matchCountRanges": []
},
"scaleFactor": 400,
"exponentBase": 10
},
"glicko2": null,
"hideRatingUnderMatchCount": null,
"hideRatingUnderWinCount": null,
"bonuses": []
},
"name": "Ranked 1v1",
"description": null,
"archived": null,
"config": { "trackMode": "solo", "rankMode": null, "groupRanks": [] },
"projectId": "6b01eb7991a8d0c2e72af669",
"organizationId": "6b01eb7991a8d0c2e72af668",
"matchmakingRules": [
{
"id": "ranked-1v1",
"default": true,
"minTeams": 2,
"maxTeams": 2,
"targetTeams": 2,
"minPlayersPerTeam": 1,
"maxPlayersPerTeam": 1,
"targetPlayersPerTeam": 1,
"maxPartySize": 1,
"initialSkillGap": 100,
"skillGapGrowthPerSecond": 10,
"maxSkillGap": 400,
"skillGapOpenedBy": "longestWait",
"waitWeight": 0.5,
"lobbyOptionsPerParty": 3,
"relaxLobbySizeAfterSeconds": null,
"maxTeamWinProbability": null,
"maxQueueSeconds": 300,
"teamPositions": null,
"minPositionsPerPlayer": null,
"regionIds": null
}
],
"matchmakingRegionIds": null
// ...
},
"game": {
"_id": "6b01eb7991a8d0c2e72af67f",
"name": "Ranked 1v1",
"gameConfig": {
"teams": {},
"positions": {},
"winCondition": "mostPoints"
}
// ...
},
"groupSeason": {
"_id": "6b01eb7991a8d0c2e72af680",
"poolId": "6b01eb7991a8d0c2e72af67e",
"value": 1,
"startDate": "2026-11-21T19:05:29.635849Z",
"endDate": null
// ...
}
}| Key | Contains |
|---|---|
group |
The pool. Keep group._id: it's the poolId every other call names this pool by. A pool has no id of your own. |
game |
The pool's game, holding its gameConfig. |
groupSeason |
The pool's first season. |
A pool's objects have group names in a reply. See A pool is also called a group.
Errors
| Status | code |
When |
|---|---|---|
| 400 | project-pools-must-be-solo |
groupConfig.trackMode is "team". Pools rate individuals: leave it out. |
| 400 | removed-field |
You sent groupId or poolId. A pool no longer takes an id of your own: leave the field out, and name the pool by the _id this call returns. |
| 400 | max-groups-reached |
The project already has 50 pools, the most a project can have. Archive one you no longer use. message has the count and the limit. |
| 400 | invalid-matchmaking-rule |
A rule is inconsistent or too big, or its regionIds isn't a valid list of regions. message names the rule and the constraint. |
| 400 | invalid-matchmaking-regions |
matchmakingRegionIds isn't a valid list of regions: a bad id, a region listed twice, or more than 20. message names the problem. |
| 400 | group-ranks-… |
With "rankMode": "rank", the bands don't cover every rating exactly once. See the codes. |
| 400 | none | Validation failed: a missing or mistyped field, or a glicko2.tau outside 0.2–1.2. |
Get a pool
GET/v1/pool/<poolId>
GET/v1/pool
Returns a pool and every active rated user, unpaged. For a big pool, read a leaderboard instead.
Parameters
| Parameter | In | Required | Description |
|---|---|---|---|
poolId |
path | no | The pool's id. Leave the segment out for the default pool. |
poolId |
query | no | The same id, as a query parameter instead. |
Request
curl https://api.inhouseranks.com/v1/pool/6b01eb7991a8d0c2e72af67e \
-H "x-api-key: $INHOUSE_API_KEY"Response 200
{
"group": {
"_id": "6b01eb7991a8d0c2e72af67e",
"kind": "community",
"name": "Ranked 1v1",
"projectId": "6b01eb7991a8d0c2e72af669"
// ...
},
"groupMembers": [],
"mmrEntities": [
{
"_id": "6b01eb7991a8d0c2e72af681",
"name": "Bob",
"stats": [
{
"positionId": null,
"mmr": { "value": 1500 /* ... */ },
"wins": 0,
"losses": 0,
"ties": 0,
"matchCount": 0,
"groupRank": null,
"hideRating": false
// ...
}
],
"externalId": "bob"
// ...
}
],
"game": {
"_id": "6b01eb7991a8d0c2e72af67f",
"name": "Ranked 1v1",
"gameConfig": {
"teams": {},
"positions": {},
"winCondition": "mostPoints"
}
// ...
}
}| Key | Contains |
|---|---|
group |
The pool. |
groupMembers |
Always []. A pool has no members: its players are the rated users in mmrEntities. |
mmrEntities |
Every active rated user. Here each element is the rated user itself, unlike /rankings. |
game |
The pool's game. |
Errors
Only the common errors:
400 invalid-pool-id for a poolId that isn't an Inhouse id,
404 group-not-found for one that names no pool, and
403 unauthorized-action for another project's pool.
List pools
GET/v1/pools
Lists your organization's pools, test and live, sorted by name, 25 per page.
Parameters
| Parameter | In | Required | Description |
|---|---|---|---|
mmrEntityExternalId or userExternalId |
query | no | Only the pools this player is rated in: your own id for them. An unknown id returns an empty list, never the unfiltered one. |
projectId |
query | no | Only this project's pools. |
search |
query | no | Matches the pool's name, ignoring case. |
archived |
query | no | true includes archived pools, which are otherwise left out. |
page |
query | no | Starts at 1. |
The filters combine, and totalCount and hasMore describe the filtered
list.
Request
curl https://api.inhouseranks.com/v1/pools \
-H "x-api-key: $INHOUSE_API_KEY"Response 200
{
"pools": [
{
"_id": "6b01eb7991a8d0c2e72af687",
"kind": "competitive",
"name": "Arena",
"projectId": "6b01eb7991a8d0c2e72af669",
"externalId": null
// ...
},
{
"_id": "6b01eb7991a8d0c2e72af66b",
"kind": "community",
"name": "Default",
"projectId": "6b01eb7991a8d0c2e72af669",
"externalId": "_default_"
// ...
},
{
"_id": "6b01eb7991a8d0c2e72af67e",
"kind": "community",
"name": "Ranked 1v1",
"projectId": "6b01eb7991a8d0c2e72af669",
"externalId": null
// ...
}
],
"page": 1,
"pageSize": 25,
"totalCount": 3,
"hasMore": false
}externalId is _default_ on your default pool, and null on any other.
A pool created before 18 November 2026 may still show the id you gave it
then. No call takes that id any more: send the pool's _id as poolId
(Moving a pool to its poolId).
Errors
| Status | code |
When |
|---|---|---|
| 400 | invalid-pagination |
page isn't a whole number from 1 up. |
| 400 | invalid-player-filter |
You sent userId or mmrEntityId, Inhouse's id for a player. The list is filtered by your own id only. |
| 400 | invalid-mmr-entity-id |
A userId that isn't an Inhouse id: your own id goes in userExternalId. |
Update a pool
POST/v1/pool/update
Changes a pool's name, settings, rank bands, matchmaking rules, regions or game. Changes apply from now on: existing ratings keep their values.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
poolId |
string | no | The pool. Defaults to the default pool. |
name |
string | no | Display name, at most 50 characters. |
description |
string | no | A description of the pool. |
kind |
string | no | friends, community or competitive. |
thumbnail |
string | no | An image URL. |
archived |
boolean | no | true archives the pool, false restores it. An archived pool doesn't count toward the project's 50 pools, so restoring one needs room. |
mmrConfig |
object | no | Replaces the whole rating config. Where hidden ratings, rating windows and streak bonuses are set. |
groupConfig |
object | no | Replaces the whole config. Where rank bands are set. |
matchmakingRules |
array | no | Replaces the whole list. null clears it. Parties queued under a rule that disappears are cancelled, each with a party.cancelled event whose reason is rule-removed. |
matchmakingRegionIds |
array | no | Replaces the pool's regions. null clears them, so the pool uses the project's again. [] turns regions off for the pool. A rule's own regionIds overrides both. A waiting party none of whose regions is left is cancelled, with a party.cancelled event whose reason is region-removed. |
gameConfig |
object | no | Replaces the game config, such as winCondition, for matches opened after it. |
gameName |
string | no | Renames the pool's game. |
Request
curl -X POST https://api.inhouseranks.com/v1/pool/update \
-H "x-api-key: $INHOUSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"groupConfig": {
"rankMode": "rank",
"groupRanks": [
{
"rank": "Gold",
"lower": 1500,
"upper": null,
"image": "https://assets.example.com/ranks/gold.png"
},
{ "rank": "Silver", "lower": 1000, "upper": 1500, "tier": 2 },
{ "rank": "Bronze", "lower": null, "upper": 1000 }
]
}
}'Response 200
{
"group": {
"_id": "6b01eb7991a8d0c2e72af66b",
"name": "Default",
"config": {
"rankMode": "rank",
"groupRanks": [
{
"lower": 1500,
"upper": null,
"rank": "Gold",
"tier": null,
"image": "https://assets.example.com/ranks/gold.png"
},
{
"lower": 1000,
"upper": 1500,
"rank": "Silver",
"tier": 2,
"image": null
},
{
"lower": null,
"upper": 1000,
"rank": "Bronze",
"tier": null,
"image": null
}
]
}
// ...
}
}group is the updated pool. Bands come back
ordered from the highest down, as config.groupRanks. You send them as
groupConfig.groupRanks: the settings you send keep those names.
Errors
| Status | code |
When |
|---|---|---|
| 400 | invalid-matchmaking-rule |
A rule is inconsistent or too big, or its regionIds isn't a valid list of regions. message names the rule and the constraint. |
| 400 | invalid-matchmaking-regions |
matchmakingRegionIds isn't a valid list of regions: a bad id, a region listed twice, or more than 20. message names the problem. |
| 400 | group-ranks-… |
With "rankMode": "rank", the bands don't cover every rating exactly once. See the codes. |
| 400 | max-groups-reached |
archived: false on an archived pool, when the project already has 50 pools. The pool stays archived. |
| 400 | none | Validation failed: a mistyped field, or a setting out of its range. |
End a season
POST/v1/pool/season/end
Ends the pool's season and starts the next. Every player's rating resets, and their record is kept. See End a season.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
poolId |
string | no | The pool. Defaults to the default pool. |
resetSkillRating |
number | no | The rating every player starts the new season with. Defaults to the pool's initialMmr. |
resetRatingDeviation |
number | no | Glicko-2 only: the RD every player starts with, 40 or more. Defaults to the pool's initialRatingDeviation. |
Request
curl -X POST https://api.inhouseranks.com/v1/pool/season/end \
-H "x-api-key: $INHOUSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "poolId": "6b01eb7991a8d0c2e72af67e" }'Response 200
{
"endedSeason": {
"_id": "6b01eb7991a8d0c2e72af680",
"poolId": "6b01eb7991a8d0c2e72af67e",
"value": 1,
"startDate": "2026-11-21T19:05:29.635849Z",
"endDate": "2026-11-21T19:05:29.675365Z",
"mmrEntities": [
{
"_id": "6b01eb7991a8d0c2e72af682",
"name": "Alice",
"stats": [
{
"positionId": null,
"mmr": { "value": 1824.3778204353027 /* ... */ },
"wins": 31,
"losses": 12,
"ties": 0,
"matchCount": 43,
"groupRank": null,
"hideRating": false
// ...
}
],
"externalId": "alice"
// ...
}
// ... 1 more
]
// ...
},
"currentSeason": {
"_id": "6b01eb7991a8d0c2e72af686",
"poolId": "6b01eb7991a8d0c2e72af67e",
"value": 2,
"startDate": "2026-11-21T19:05:29.675365Z",
"endDate": null
// ...
}
}| Key | Contains |
|---|---|
endedSeason |
The season that just ended. Its mmrEntities is every rated user as they stood before the reset, archived ones included. |
currentSeason |
The new season. |
Errors
| Status | code |
When |
|---|---|---|
| 400 | invalid-reset-rating-deviation |
resetRatingDeviation is below 40. |
| 409 | season-already-ended |
Another call ended this season first. Don't send it again unless you mean to end the new season too. |
| 409 | rating-update-conflict |
Matches kept being recorded for the same players while the season ended. Nothing changed. Send it again. |