# Tournament OS Public API v1 adoption guide

For partners already using the Tournament OS Public API. This update adds animated sport logos and supports separate PUBG Mobile Red and Blue squads in published competition data.

Continue using your configured API base URL, edition IDs, v1 endpoints, and bearer token. Refresh generated response types from the current OpenAPI schema, especially if your client rejects unknown fields. Use separate staging and production configuration. [API guide](https://tm.beeaver.work/games/api) · [OpenAPI 3.1 schema](https://tm.beeaver.work/openapi/public-v1.json)

## Animated sport logos

`GET /editions/{editionId}/sports` exposes the following branding fields:

| Field | Value |
| --- | --- |
| `animatedLogoUrl` | Nullable URL for an uploaded or CDN-hosted video. |
| `logoUrl` | Nullable URL for the static sport logo. Use it as the poster and fallback. |
| `mascotVideoUrl` | Compatibility alias for the animated logo. |

Use `animatedLogoUrl ?? mascotVideoUrl` to read the video URL across deployments. If you display a preview, play it muted and inline and honor reduced-motion preferences. Render the static logo when the video is missing, blocked, or fails to load. A static-only integration can keep rendering `logoUrl`.

The sports API request uses the bearer token. Load public media URLs directly without forwarding the token to the media host.

## PUBG Mobile squads

The designated PUBG Mobile event can have two approved, published squads from one delegation. For example, Koshi PUBG Red and Koshi PUBG Blue each have their own entrant ID and roster. Both represent Koshi.

- Key fixture participants by `participants[].entrantId` and result entries by `entries[].entrantId`. Grouping only by delegation and event would combine the two squads.
- Render `participants[].displayName` on fixtures and `entries[].name` on results. PRS reimports update the entrant roster for future selection. An approved schedule preserves the names and roster it was approved with.
- Group awards under the delegation using the official medal response. Use the same `snapshotId` when opening the overall and sport medal views.

## Publication and imported registrations

Staff can sync PRS registrations through a direct connection or an offline snapshot. Public consumers continue reading through the approved schedule and result workflow. A roster sync alone updates future entrant selections. Public fixtures and results reflect the approved revisions. Use the publication state on each resource to distinguish an empty selection from an unavailable edition.

For an iframe integration, use **Embed full edition** on the public edition or **Embed** on the specific public view. The resulting `/embed/` URL serves published data. This flow uses the published edition URL rather than bearer authentication.

## Staging acceptance checks

Staging base URL — `https://tm.beeaver.work/api/public/v1`.

1. Use your staging token to fetch a known public edition and its sports. Confirm decoding works with a null video and with a sport that has a video.
2. Verify static fallback, playback failure, and reduced-motion behavior if your client displays videos.
3. Verify Red and Blue are listed separately in a published PUBG fixture or result. Compare the original lineup of a historical fixture after a PRS sync.
4. Open the edition and sport medal standings using the same snapshot ID and check that both squads credit their shared delegation where applicable.
5. If your integration uses an iframe, open it from the receiving website and test mobile navigation and the selected date or venue filters for individual widgets.
