Skip to content

Events

Arbitas’s services tell each other what happened through events, such as a version being promoted or a match ending. Those events are part of how the platform runs, and they aren’t delivered to your code yet: there are no webhooks or event subscriptions for builders today. This section will hold the events you can subscribe to, generated from their schemas, once there are some.

Everything the events would tell you can be read from the Builder API with an API key:

To know when… Call
A publish has finished, or failed getOperation (GET /v1/operations/{operationId}), with the operation publishDraft answered with
A version was published or promoted listVersions (GET /v1/games/{gameId}/versions) or getGame (GET /v1/games/{gameId})
An AI import has finished getIngestion (GET /v1/ingestions/{ingestionId})
A bot or rulebook draft has finished getBotDraft (GET /v1/bot-drafts/{botDraftId}), getRulebookDraft
Credits were spent or are expiring getCredits (GET /v1/organizations/{orgId}/credits)
How many players played this month getActivePlayers (GET /v1/organizations/{orgId}/usage/active-players)

Poll these no more often than you need: every few seconds while a job you started runs, and far less often otherwise. Publishing from CI shows the polling loop for a publish.

Players’ clients learn about their own matches as they happen, through the play WebSocket, and list their matches and whose turn it is with the Player API’s listMyMatches (GET /v1/players/me/matches).

In the portal, imports and bot and rulebook drafts show their progress on their own pages.