Game: Matches
Forfeit A Match On Behalf Of One Participating Team
Forfeit one of your game’s matches for a participating team; the other team wins.
POST
Permission Required
This endpoint requires thegame.lifecycle permission with read-write access. Your API key must be a game-developer key bound to a game. The binding asserts the match belongs to your bound game before the handler runs: a key bound to a different game, or a non-developer key, receives a 403 error_game_scope_mismatch.
Access / Membership Rules
forfeitingTeamId must be a participant of the match. The forfeit is valid only while the match is ACCEPTED, READY, or IN_PROGRESS; otherwise it returns 409 error_match_not_in_valid_state. The other participating team is recorded as the winner. An unknown match returns 404 error_match_not_found.
Idempotency
Supply an optionalIdempotency-Key request header to make retries safe: an identical key + body replays the original response, while the same key with a different body returns 409 error_idempotency_key_conflict. The idempotency identity is scoped per match, so reusing the same key on a different match forfeits that match normally.
What’s Returned
Returns{ "success": true, matchId, forfeitedByTeamId, timestamp }.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
forfeitingTeamId | string | Yes | ID of the participating team that forfeits. |
reason | string | No | Optional human-readable forfeit reason, recorded on the match. |
Authorizations
Send your API key as: Authorization: Bearer tb_
Path Parameters
Match ID.
Body
application/json