Get started
Core concepts
The whole API is built on five objects.
| Object | What it is |
|---|---|
| Organization | Your account. It owns your projects, API keys and teammates. |
| Project | An environment. Every organization has exactly two, test and live, created with it. An API key belongs to one of them, and its prefix says which. |
| Pool | An independent set of ratings: one per game mode, queue or region. Ratings never cross pools. |
| Player | One person's rating and record inside one pool, called a rated user. Someone who plays in three pools has three, all keyed by the mmrEntityExternalId you give them. |
| Match | A result: teams, their places, and who was on them. Recording a ranked match moves the rating of everyone in it. |
Matchmaking adds two more:
| Object | What it is |
|---|---|
| Matchmaking rule | A queue a pool offers: the lobby shape it builds, and how fast it trades match quality for wait time. |
| Party | One or more players queued together under a rule. A solo player is a party of one. Every lobby the matchmaker forms becomes a pending match. |
Names in requests and responses
A pool and a player have more than one name in the API. They are the same things.
| In these docs | In requests and responses |
|---|---|
| Pool | poolId is its id, in what you send and in what comes back. Inhouse stores a pool as a group, so the pool object in a reply is group, its id is also sent as groupId, and the settings you send for it are groupConfig. |
| Player, rated user | mmrEntity: the ids are mmrEntityId and mmrEntityExternalId, and the object comes back as mmrEntity or mmrEntities. The paths say user, as in /v1/user/create, and the two ids have user names too: userId and userExternalId (see user names). |
| Rating | mmr |
More on the two names of a pool: A pool is also called a group.
Your ids and ours
Everything has an id Inhouse gives it. A match, a player and a queue party can also have an id of your own. A field's name says which one it takes.
| Inhouse's id | Your own id | You set yours | |
|---|---|---|---|
| A pool | poolId |
none | |
| A match | matchId |
matchExternalId |
When you record, score or create the match. |
| A player | mmrEntityId |
mmrEntityExternalId |
Whenever you first name them: in a match, a score or a queue party. |
| A queue party | partyId |
partyExternalId |
When the party joins the queue. |
For matches, players and parties you never need to store an Inhouse id.
Give each your own id and use it everywhere. On the object itself,
Inhouse's id is _id and yours is externalId.
A pool is the exception: it has only Inhouse's id. Creating a pool
returns it as group._id. Keep it, and send it as poolId wherever a call
names that pool.
Send the same mmrEntityExternalId for the same person in every pool. That is
how Inhouse knows them across your pools, and how billing counts each person
once a month. The field rules are in Identifiers.
The default pool
Every project has a pool from the moment it exists, and any call that
takes a pool uses it when you leave the pool out. A game with one ladder
never creates, names or references a pool. In GET /v1/pools it's the pool
whose externalId is _default_.
The one exception is /v1/user/migrate, which needs a pool named explicitly.
Test and live
A key for the test project only ever touches test data. Nothing you do with
it affects live ratings.
| Test keys | Live keys | |
|---|---|---|
| Plan allowances | Never counted, never refused with 402 |
Counted |
| Rate limit | Per IP, plus a much tighter limit per test project | Per project: 100 requests a second, unless your organization has another rate |
Build and test against the test project, then serve players from the live one. The numbers are in Limits and billing.
Rules to rely on
- Pools rate individuals. Every pool created through the API is
solo-mode, and a team-mode pool is refused with
400 project-pools-must-be-solo. A "team" in a match is just the players who shared a place. - Ratings are per pool. There is no global rating, and no endpoint adds up across pools. To show a player's ratings everywhere, ask each pool.
- Your project sees only its own pools. A key belongs to its whole
project, not to a person: every key of a project can manage every pool
created in that project, by any of its keys or in the portal. A project
can have 50 pools. Another project's pool, or a consumer
app's, is
403 unauthorized-action. The exception isGET /v1/pools, which lists your whole organization's pools, test and live. - Matches snapshot their config. A match is rated with the pool's rating
settings as they were when the match was created. That's when it's
recorded, for a one-call
/match/record, or when/match/score,/match/createor the matchmaker opened it. Changing a pool's settings later never rewrites history. - Two projects per organization, forever. Don't build logic that creates or archives projects.
- Every player carries your id for them. Your
mmrEntityExternalIdis stored as the rated user'sexternalId. It's required:/v1/user/createwithout one is400 user-id-required, and it can be changed in the portal but never removed. The one call that creates players without it is/v1/match/import.