---
title: "Create a match"
method: POST
path: "/matches/create"
tags: ["My Matches"]
---

# Create a match

`POST /matches/create`

Creates a new match as the personal API key owner. The owner must be a captain, co-captain, or org owner of the creator team and the active roster must be members of that team. League and challenge rules are enforced exactly as in the web app. Requires matches.user_matches:read-write and API writes access. Supports an optional `Idempotency-Key` header for safe retries.

## Request body

- CreateMatchRequestBody — Creates a new match as the API key owner.
  - `teamId` string, required — Creator team ID. The owner must be a captain, co-captain, or org owner of it.
  - `gameId` string, required — Game ID for the match.
  - `gameModeId` string, required — Game mode ID (client-side definition).
  - `matchType` 'XP_ONLY' | 'WAGER', required — Match type.
  - `mapSelectionType` 'COMPETITIVE' | 'FLEX', required — Map selection type.
  - `mapPreferenceMode` 'PREFERRED' | 'VETO' | 'MANUAL', required — Map preference mode.
  - `teamSize` integer, required — Players per team.
  - `bestOf` integer, required — Series length (best of N).
  - `platform` 'PC' | 'XBOX' | 'PLAYSTATION' | 'CONSOLE_ONLY' | 'CROSSPLAY' — Platform (defaults to CROSSPLAY).
  - `inputDevice` 'ALL' | 'CONTROLLER' | 'KB_M' — Input device (defaults to ALL).
  - `region` 'NONE' | 'NA_EAST' | 'NA_WEST' | 'EU' | 'ASIA' | 'OCEANIA' | 'SOUTH_AMERICA' | 'MIDDLE_EAST' | 'AFRICA' — Region (defaults to NONE).
  - `scheduledAt` number — Scheduled start (epoch ms).
  - `wagerAmount` number — Wager amount (WAGER matches only).
  - `selectedMaps` string[] — Selected map IDs.
  - `selectedObjectives` string[] — Selected objective IDs.
  - `gameSpecificOptions` object — Game-specific options.
  - `lockedRules` object — Locked rule flags.
  - `notes` string — Optional match notes.
  - `publishStatus` 'DRAFT' | 'PUBLISHED' | 'ARCHIVED' — Publish status (defaults to DRAFT).
  - `activeRoster` string[], required — Active roster user IDs (must be creator-team members).
  - `benchRoster` object[] — Optional bench roster.
    - `id` string, required — Bench user ID.
    - `priority` number, required — Bench priority.
  - `isChallenge` boolean — Create as a direct challenge to another team.
  - `challengedTeamId` string — Challenged team ID (required when isChallenge is true).
  - `leagueId` string — League ID for a league match.

## Response `200`

The match was created.

- CreateMatchResponse
  - `success` true, required
  - `matchId` string, required
  - `timestamp` string, required

## Other responses

- `400` — Bad request (invalid body, cursor, limit, or date).
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission.
- `404` — Resource not found.
- `409` — Conflict.
- `429` — Rate limited.
- `500` — Internal server error.

---

[API](https://skmtc.net/teambattles/apis/teambattles-api.md) · [All operations](https://skmtc.net/teambattles/apis/teambattles-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teambattles/teambattles-api/revisions/2ffe8fb53b7d/schema)
