> For the complete documentation index, see [llms.txt](https://api-docs.gatcg.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.gatcg.com/endpoints/omnidex.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.gatcg.com/~gitbook/mcp).

# Omnidex

## Get Omnidex event by ID.

> This returns an Omnidex event matching the provided ID.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}":{"get":{"operationId":"GetOmnidexEventByIdAPISpec_get_/events/{event_id}","tags":["Omnidex"],"summary":"Get Omnidex event by ID.","description":"This returns an Omnidex event matching the provided ID.","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OmnidexEvent","description":"The matching event."}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEvent":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"category":{"$ref":"#/components/schemas/OmnidexEventCategory"},"date":{"type":"string"},"dateStarted":{"type":"string","nullable":true},"dateCompleted":{"type":"string","nullable":true},"decklists":{"type":"boolean"},"description":{"type":"string"},"format":{"type":"string","enum":["team-standard-3v3"]},"host":{"$ref":"#/components/schemas/OmnidexEventHost"},"id":{"type":"number"},"judges":{"type":"array","items":{"type":"number"}},"name":{"type":"string"},"players":{"type":"array","items":{"type":"number"}},"ranked":{"type":"boolean"},"season":{"type":"object","properties":{"dateEnd":{"type":"string"},"dateStart":{"type":"string"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"required":["dateEnd","dateStart","id","name"]},"setting":{"$ref":"#/components/schemas/OmnidexEventSetting"},"status":{"$ref":"#/components/schemas/OmnidexEventStatus"},"startAt":{"type":"string","deprecated":true},"startedAt":{"type":"string","nullable":true,"deprecated":true},"structure":{"$ref":"#/components/schemas/OmnidexEventStructure"},"url":{"type":"string"},"vpMultiplier":{"type":"number"},"singleEliminationMatchConfig":{"anyOf":[{"enum":["bo1","bo3","bo5"],"type":"string"}],"nullable":true},"singleEliminationCutSize":{"type":"number"},"stages":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventStage"}},"swissMatchConfig":{"$ref":"#/components/schemas/OmnidexEventMatchConfig"},"swissRounds":{"type":"number"},"teamSize":{"type":"number"},"teams":{"type":"array","items":{"type":"string"}},"type":{"enum":["single-elimination","swiss"],"type":"string"}},"required":["category","date","dateCompleted","dateStarted","decklists","description","format","host","id","judges","name","players","ranked","season","setting","singleEliminationCutSize","singleEliminationMatchConfig","stages","startAt","startedAt","status","structure","swissMatchConfig","swissRounds","teamSize","teams","type","url","vpMultiplier"]},{"additionalProperties":false,"type":"object","properties":{"category":{"$ref":"#/components/schemas/OmnidexEventCategory"},"date":{"type":"string"},"dateStarted":{"type":"string","nullable":true},"dateCompleted":{"type":"string","nullable":true},"decklists":{"type":"boolean"},"description":{"type":"string"},"format":{"$ref":"#/components/schemas/OmnidexEventFormat1v1"},"host":{"$ref":"#/components/schemas/OmnidexEventHost"},"id":{"type":"number"},"judges":{"type":"array","items":{"type":"number"}},"name":{"type":"string"},"players":{"type":"array","items":{"type":"number"}},"ranked":{"type":"boolean"},"season":{"type":"object","properties":{"dateEnd":{"type":"string"},"dateStart":{"type":"string"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"required":["dateEnd","dateStart","id","name"]},"setting":{"$ref":"#/components/schemas/OmnidexEventSetting"},"status":{"$ref":"#/components/schemas/OmnidexEventStatus"},"startAt":{"type":"string","deprecated":true},"startedAt":{"type":"string","nullable":true,"deprecated":true},"structure":{"$ref":"#/components/schemas/OmnidexEventStructure"},"url":{"type":"string"},"vpMultiplier":{"type":"number"},"singleEliminationMatchConfig":{"anyOf":[{"enum":["bo1","bo3","bo5"],"type":"string"}],"nullable":true},"singleEliminationCutSize":{"type":"number"},"stages":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventStage"}},"swissMatchConfig":{"$ref":"#/components/schemas/OmnidexEventMatchConfig"},"swissRounds":{"type":"number"},"type":{"enum":["single-elimination","swiss"],"type":"string"}},"required":["category","date","dateCompleted","dateStarted","decklists","description","format","host","id","judges","name","players","ranked","season","setting","singleEliminationCutSize","singleEliminationMatchConfig","stages","startAt","startedAt","status","structure","swissMatchConfig","swissRounds","type","url","vpMultiplier"]},{"additionalProperties":false,"type":"object","properties":{"category":{"$ref":"#/components/schemas/OmnidexEventCategory"},"date":{"type":"string"},"dateStarted":{"type":"string","nullable":true},"dateCompleted":{"type":"string","nullable":true},"decklists":{"type":"boolean"},"description":{"type":"string"},"format":{"type":"string","enum":["free-play"]},"host":{"$ref":"#/components/schemas/OmnidexEventHost"},"id":{"type":"number"},"judges":{"type":"array","items":{"type":"number"}},"name":{"type":"string"},"players":{"type":"array","items":{"type":"number"}},"ranked":{"type":"boolean"},"season":{"type":"object","properties":{"dateEnd":{"type":"string"},"dateStart":{"type":"string"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"required":["dateEnd","dateStart","id","name"]},"setting":{"$ref":"#/components/schemas/OmnidexEventSetting"},"status":{"$ref":"#/components/schemas/OmnidexEventStatus"},"startAt":{"type":"string","deprecated":true},"startedAt":{"type":"string","nullable":true,"deprecated":true},"structure":{"$ref":"#/components/schemas/OmnidexEventStructure"},"url":{"type":"string"},"vpMultiplier":{"type":"number"},"type":{"type":"string","enum":["free-play"]}},"required":["category","date","dateCompleted","dateStarted","decklists","description","format","host","id","judges","name","players","ranked","season","setting","startAt","startedAt","status","structure","type","url","vpMultiplier"]}]},"OmnidexEventCategory":{"enum":["ascent","nationals","regionals","regular","store-championships","worlds"],"type":"string"},"OmnidexEventHost":{"type":"object","properties":{"address":{"type":"string"},"addressCountryCode":{"type":"string"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"required":["address","addressCountryCode","id","name"]},"OmnidexEventSetting":{"enum":["online","physical"],"type":"string"},"OmnidexEventStatus":{"enum":["canceled","canceled-reset","canceled-suspended","completable","complete","rsvp","started"],"type":"string"},"OmnidexEventStructure":{"enum":["on-demand","rounds"],"type":"string"},"OmnidexEventStage":{"type":"object","properties":{"id":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventStageStatus"},"type":{"$ref":"#/components/schemas/OmnidexEventStageType"}},"additionalProperties":false,"required":["id","status","type"]},"OmnidexEventStageStatus":{"enum":["completable","complete","started","waiting"],"type":"string"},"OmnidexEventStageType":{"enum":["single-elimination","swiss"],"type":"string"},"OmnidexEventMatchConfig":{"enum":["bo1","bo3","bo5"],"type":"string"},"OmnidexEventFormat1v1":{"enum":["draft","standard"],"type":"string"}}}}
```

## Get players in an Omnidex event.

> This returns event players with scores scoped to the event season.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/players":{"get":{"operationId":"GetOmnidexEventPlayersAPISpec_get_/events/{event_id}/players","tags":["Omnidex"],"summary":"Get players in an Omnidex event.","description":"This returns event players with scores scoped to the event season.","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"Players and their season-scoped CP, Elo, EP, and VP scores.","content":{"application/json":{"schema":{"description":"Players and their season-scoped CP, Elo, EP, and VP scores.","type":"array","items":{"$ref":"#/components/schemas/OmnidexEventPlayer"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventPlayer":{"type":"object","properties":{"country":{"type":"string"},"cp":{"type":"number","deprecated":true},"emblem":{"$ref":"#/components/schemas/OmnidexEventPlayerEmblem"},"finalPlacement":{"type":"number","nullable":true},"id":{"type":"number"},"rank":{"type":"number","deprecated":true},"scores":{"$ref":"#/components/schemas/PlayerScores","description":"The player's season-scoped scores."},"username":{"type":"string"}},"additionalProperties":false,"required":["country","cp","emblem","finalPlacement","id","rank","scores","username"]},"OmnidexEventPlayerEmblem":{"enum":["ascendant","bronze","demigod","diamond","gold","platinum","silver","unranked"],"type":"string"},"PlayerScores":{"type":"object","properties":{"cp":{"additionalProperties":false,"type":"object","properties":{"change":{"type":"number"},"countryChange":{"type":"number"},"countryRank":{"type":"number"},"rank":{"type":"number"},"value":{"type":"number"},"peak":{"type":"number"},"emblem":{"$ref":"#/components/schemas/ScoreEmblem"}},"required":["change","countryChange","countryRank","emblem","peak","rank","value"]},"elo":{"additionalProperties":false,"type":"object","properties":{"change":{"type":"number"},"countryChange":{"type":"number"},"countryRank":{"type":"number"},"rank":{"type":"number"},"value":{"type":"number"},"peak":{"type":"number"},"emblem":{"$ref":"#/components/schemas/ScoreEmblem"}},"required":["change","countryChange","countryRank","emblem","peak","rank","value"]},"ep":{"additionalProperties":false,"type":"object","properties":{"change":{"type":"number"},"countryChange":{"type":"number"},"countryRank":{"type":"number"},"rank":{"type":"number"},"value":{"type":"number"},"emblem":{"$ref":"#/components/schemas/ScoreEmblem"}},"required":["change","countryChange","countryRank","emblem","rank","value"]},"vp":{"additionalProperties":false,"type":"object","properties":{"change":{"type":"number"},"countryChange":{"type":"number"},"countryRank":{"type":"number"},"rank":{"type":"number"},"value":{"type":"number"},"derivativePrimary":{"type":"number"},"derivativeSecondary":{"type":"number"},"emblem":{"$ref":"#/components/schemas/ScoreEmblem"}},"required":["change","countryChange","countryRank","derivativePrimary","derivativeSecondary","emblem","rank","value"]}},"additionalProperties":false,"required":["cp","elo","ep","vp"]},"ScoreEmblem":{"enum":["ascendant","bronze","demigod","diamond","gold","platinum","silver","unranked"],"type":"string"}}}}
```

## Get teams in an Omnidex event.

> This returns a list of teams participating in the event (if applicable).

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/teams":{"get":{"operationId":"GetOmnidexEventTeamsAPISpec_get_/events/{event_id}/teams","tags":["Omnidex"],"summary":"Get teams in an Omnidex event.","description":"This returns a list of teams participating in the event (if applicable).","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"The matching event's team.","content":{"application/json":{"schema":{"description":"The matching event's team.","type":"array","items":{"$ref":"#/components/schemas/OmnidexEventTeam"}}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventTeam":{"type":"object","properties":{"finalPlacement":{"type":"number","nullable":true},"name":{"type":"string"},"players":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventTeamPlayer"}}},"additionalProperties":false,"required":["finalPlacement","name","players"]},"OmnidexEventTeamPlayer":{"type":"object","properties":{"id":{"type":"number"},"slot":{"type":"number"}},"additionalProperties":false,"required":["id","slot"]}}}}
```

## Get judges in an Omnidex event.

> This returns event judges with scores scoped to the event season.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/judges":{"get":{"operationId":"GetOmnidexEventJudgesAPISpec_get_/events/{event_id}/judges","tags":["Omnidex"],"summary":"Get judges in an Omnidex event.","description":"This returns event judges with scores scoped to the event season.","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"Judges and their season-scoped CP and XP scores.","content":{"application/json":{"schema":{"description":"Judges and their season-scoped CP and XP scores.","type":"array","items":{"$ref":"#/components/schemas/OmnidexEventJudge"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventJudge":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"},"country":{"type":"string"},"finalPlacement":{"type":"number","nullable":true},"cp":{"type":"number","deprecated":true},"emblem":{"$ref":"#/components/schemas/OmnidexEventPlayerEmblem"},"judgeExperience":{"type":"number","deprecated":true},"judgeLevel":{"type":"number","deprecated":true},"rank":{"type":"number","deprecated":true},"scores":{"$ref":"#/components/schemas/JudgeScores","description":"The judge's season-scoped scores."}},"required":["country","cp","emblem","finalPlacement","id","judgeExperience","judgeLevel","rank","scores","username"]},"OmnidexEventPlayerEmblem":{"enum":["ascendant","bronze","demigod","diamond","gold","platinum","silver","unranked"],"type":"string"},"JudgeScores":{"type":"object","properties":{"cp":{"additionalProperties":false,"type":"object","properties":{"change":{"type":"number"},"countryChange":{"type":"number"},"countryRank":{"type":"number"},"rank":{"type":"number"},"value":{"type":"number"},"peak":{"type":"number"},"emblem":{"$ref":"#/components/schemas/ScoreEmblem"}},"required":["change","countryChange","countryRank","emblem","peak","rank","value"]},"xp":{"additionalProperties":false,"type":"object","properties":{"change":{"type":"number"},"countryChange":{"type":"number"},"countryRank":{"type":"number"},"rank":{"type":"number"},"value":{"type":"number"},"level":{"type":"number"}},"required":["change","countryChange","countryRank","level","rank","value"]}},"additionalProperties":false,"required":["cp","xp"]},"ScoreEmblem":{"enum":["ascendant","bronze","demigod","diamond","gold","platinum","silver","unranked"],"type":"string"}}}}
```

## Get an Omnidex event's standings.

> This returns Swiss stage standings for the event.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/standings":{"get":{"operationId":"GetOmnidexEventStandingsAPISpec_get_/events/{event_id}/standings","tags":["Omnidex"],"summary":"Get an Omnidex event's standings.","description":"This returns Swiss stage standings for the event.","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OmnidexEventStandings","description":"The matching event's team."}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventStandings":{"type":"object","properties":{"id":{"type":"number"},"rounds":{"type":"object","properties":{"latest":{"type":"number"},"total":{"type":"number"}},"additionalProperties":false,"required":["latest","total"]},"standings":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventStandingsPlayer"}},{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventStandingsTeam"}}]},"status":{"$ref":"#/components/schemas/OmnidexEventStageStatus"},"type":{"type":"string","enum":["swiss"]}},"additionalProperties":false,"required":["id","rounds","standings","status","type"]},"OmnidexEventStandingsPlayer":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"tiebreaker":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventStandingsEntityStatus"},"statsByes":{"type":"number"},"statsDroppedRound":{"type":"number"},"statsDroppedStage":{"type":"number"},"statsLateJoinRound":{"type":"number"},"statsLateJoinStage":{"type":"number"},"statsGamesPlayed":{"type":"number"},"statsGamesWon":{"type":"number"},"statsLosses":{"type":"number"},"statsPercentGW":{"type":"number"},"statsPercentMW":{"type":"number"},"statsPercentOGW":{"type":"number"},"statsPercentOMW":{"type":"number"},"statsScore":{"type":"number"},"statsTies":{"type":"number"},"statsWins":{"type":"number"},"id":{"type":"number"},"team":{"type":"string"},"teamSlot":{"type":"number"}},"required":["id","statsByes","statsGamesPlayed","statsGamesWon","statsLosses","statsPercentGW","statsPercentMW","statsPercentOGW","statsPercentOMW","statsScore","statsTies","statsWins","status","team","teamSlot","tiebreaker"]},{"additionalProperties":false,"type":"object","properties":{"tiebreaker":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventStandingsEntityStatus"},"statsByes":{"type":"number"},"statsDroppedRound":{"type":"number"},"statsDroppedStage":{"type":"number"},"statsLateJoinRound":{"type":"number"},"statsLateJoinStage":{"type":"number"},"statsGamesPlayed":{"type":"number"},"statsGamesWon":{"type":"number"},"statsLosses":{"type":"number"},"statsPercentGW":{"type":"number"},"statsPercentMW":{"type":"number"},"statsPercentOGW":{"type":"number"},"statsPercentOMW":{"type":"number"},"statsScore":{"type":"number"},"statsTies":{"type":"number"},"statsWins":{"type":"number"},"id":{"type":"number"}},"required":["id","statsByes","statsGamesPlayed","statsGamesWon","statsLosses","statsPercentGW","statsPercentMW","statsPercentOGW","statsPercentOMW","statsScore","statsTies","statsWins","status","tiebreaker"]}]},"OmnidexEventStandingsEntityStatus":{"enum":["active","awaiting-decklist","eliminated","winner"],"type":"string"},"OmnidexEventStandingsTeam":{"additionalProperties":false,"type":"object","properties":{"tiebreaker":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventStandingsEntityStatus"},"statsByes":{"type":"number"},"statsDroppedRound":{"type":"number"},"statsDroppedStage":{"type":"number"},"statsLateJoinRound":{"type":"number"},"statsLateJoinStage":{"type":"number"},"statsGamesPlayed":{"type":"number"},"statsGamesWon":{"type":"number"},"statsLosses":{"type":"number"},"statsPercentGW":{"type":"number"},"statsPercentMW":{"type":"number"},"statsPercentOGW":{"type":"number"},"statsPercentOMW":{"type":"number"},"statsScore":{"type":"number"},"statsTies":{"type":"number"},"statsWins":{"type":"number"},"name":{"type":"string"}},"required":["name","statsByes","statsGamesPlayed","statsGamesWon","statsLosses","statsPercentGW","statsPercentMW","statsPercentOGW","statsPercentOMW","statsScore","statsTies","statsWins","status","tiebreaker"]},"OmnidexEventStageStatus":{"enum":["completable","complete","started","waiting"],"type":"string"}}}}
```

## Get an Omnidex event's pairings.

> This returns pairings for an event. By default it returns the latest stage and round.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/pairings":{"get":{"operationId":"GetOmnidexEventSPairingsAPISpec_get_/events/{event_id}/pairings","tags":["Omnidex"],"summary":"Get an Omnidex event's pairings.","description":"This returns pairings for an event. By default it returns the latest stage and round.","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}},{"description":"A round number.","name":"round","in":"query","required":false,"schema":{"type":"number"}},{"description":"A stage number.","name":"stage","in":"query","required":false,"schema":{"type":"number"}}],"responses":{"200":{"description":"The matching event's pairings.","content":{"application/json":{"schema":{"description":"The matching event's pairings.","type":"object","properties":{"pairings":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventMatch"}},"round":{"$ref":"#/components/schemas/OmnidexEventRoundWithTimer"},"stage":{"$ref":"#/components/schemas/OmnidexEventStage"}},"additionalProperties":false,"required":["pairings","round","stage"]}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventMatch":{"type":"object","properties":{"completedAt":{"type":"number"},"id":{"type":"number"},"label":{"type":"string"},"pairing":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventMatchPairing"}},"status":{"$ref":"#/components/schemas/OmnidexEventMatchStatus"}},"additionalProperties":false,"required":["id","pairing","status"]},"OmnidexEventMatchPairing":{"type":"object","properties":{"dropped":{"type":"boolean"},"eloChange":{"type":"number"},"id":{"type":"number"},"score":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventMatchPairingStatus"}},"additionalProperties":false,"required":["dropped","eloChange","id","score","status"]},"OmnidexEventMatchPairingStatus":{"enum":["byed","loser","tied","waiting","winner"],"type":"string"},"OmnidexEventMatchStatus":{"enum":["byed","complete","started","waiting"],"type":"string"},"OmnidexEventRoundWithTimer":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventRoundStatus"},"total":{"type":"number"},"timer":{"$ref":"#/components/schemas/OmnidexEventRoundTimer"}},"required":["id","status","timer","total"]},"OmnidexEventRoundStatus":{"enum":["complete","started","waiting"],"type":"string"},"OmnidexEventRoundTimer":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"serverTime":{"type":"string"},"timerEnd":{"nullable":true},"timerPaused":{"nullable":true},"timerStart":{"nullable":true}},"required":["serverTime","timerEnd","timerPaused","timerStart"]},{"additionalProperties":false,"type":"object","properties":{"serverTime":{"type":"string"},"timerEnd":{"type":"string"},"timerPaused":{"nullable":true},"timerStart":{"type":"string"}},"required":["serverTime","timerEnd","timerPaused","timerStart"]},{"additionalProperties":false,"type":"object","properties":{"serverTime":{"type":"string"},"timerEnd":{"type":"string"},"timerPaused":{"type":"string"},"timerStart":{"type":"string"}},"required":["serverTime","timerEnd","timerPaused","timerStart"]}]},"OmnidexEventStage":{"type":"object","properties":{"id":{"type":"number"},"status":{"$ref":"#/components/schemas/OmnidexEventStageStatus"},"type":{"$ref":"#/components/schemas/OmnidexEventStageType"}},"additionalProperties":false,"required":["id","status","type"]},"OmnidexEventStageStatus":{"enum":["completable","complete","started","waiting"],"type":"string"},"OmnidexEventStageType":{"enum":["single-elimination","swiss"],"type":"string"}}}}
```

## Get an Omnidex event's decklists.

> This returns public decklist data for the event (if available).

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/decklists":{"get":{"operationId":"GetOmnidexEventDecklistsAPISpec_get_/events/{event_id}/decklists","tags":["Omnidex"],"summary":"Get an Omnidex event's decklists.","description":"This returns public decklist data for the event (if available).","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"The matching event's team.","content":{"application/json":{"schema":{"description":"The matching event's team.","type":"array","items":{"$ref":"#/components/schemas/OmnidexEventPlayerDecklist"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventPlayerDecklist":{"type":"object","properties":{"decklist":{"$ref":"#/components/schemas/OmnidexEventDecklist"},"player":{"type":"number"},"visible":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["decklist","player","visible"]},"OmnidexEventDecklist":{"type":"object","properties":{"main":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventDecklistCard"}},"material":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventDecklistCard"}},"sideboard":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventDecklistCard"}}},"additionalProperties":false,"required":["main","material","sideboard"]},"OmnidexEventDecklistCard":{"type":"object","properties":{"card":{"type":"string"},"quantity":{"type":"number"}},"additionalProperties":false,"required":["card","quantity"]}}}}
```

## Get statistics for an Omnidex event.

> This returns public statistics data for an Omnidex event (if available).

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/statistics":{"get":{"operationId":"GetOmnidexEventStatisticsAPISpec_get_/events/{event_id}/statistics","tags":["Omnidex"],"summary":"Get statistics for an Omnidex event.","description":"This returns public statistics data for an Omnidex event (if available).","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OmnidexEventStatistics","description":"The matching event's statistics."}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"Error message.","type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventStatistics":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"decklistsAdvancedElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsBasicElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsChampionBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsStatsRevealed":{"type":"boolean","enum":[true]},"decklistsTopNAdvancedElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsTopNBasicElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsTopNChampionBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsTopNRound":{"type":"number"},"decklistsTopNStage":{"type":"number"},"decklistsTopNStatsRevealed":{"type":"boolean","enum":[true]},"decklistsTopNValue":{"type":"number"}},"required":["decklistsAdvancedElementBreakdown","decklistsBasicElementBreakdown","decklistsChampionBreakdown","decklistsStatsRevealed","decklistsTopNAdvancedElementBreakdown","decklistsTopNBasicElementBreakdown","decklistsTopNChampionBreakdown","decklistsTopNRound","decklistsTopNStage","decklistsTopNStatsRevealed","decklistsTopNValue"]},{"additionalProperties":false,"type":"object","properties":{"decklistsAdvancedElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsBasicElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsChampionBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsStatsRevealed":{"type":"boolean","enum":[true]},"decklistsTopNStatsRevealed":{"type":"boolean","enum":[false]}},"required":["decklistsAdvancedElementBreakdown","decklistsBasicElementBreakdown","decklistsChampionBreakdown","decklistsStatsRevealed","decklistsTopNStatsRevealed"]},{"additionalProperties":false,"type":"object","properties":{"decklistsStatsRevealed":{"type":"boolean","enum":[false]},"decklistsTopNAdvancedElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsTopNBasicElementBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsTopNChampionBreakdown":{"$ref":"#/components/schemas/OmnidexEventDecklistStatsNumericBreakdown"},"decklistsTopNRound":{"type":"number"},"decklistsTopNStage":{"type":"number"},"decklistsTopNStatsRevealed":{"type":"boolean","enum":[true]},"decklistsTopNValue":{"type":"number"}},"required":["decklistsStatsRevealed","decklistsTopNAdvancedElementBreakdown","decklistsTopNBasicElementBreakdown","decklistsTopNChampionBreakdown","decklistsTopNRound","decklistsTopNStage","decklistsTopNStatsRevealed","decklistsTopNValue"]},{"additionalProperties":false,"type":"object","properties":{"decklistsStatsRevealed":{"type":"boolean","enum":[false]},"decklistsTopNStatsRevealed":{"type":"boolean","enum":[false]}},"required":["decklistsStatsRevealed","decklistsTopNStatsRevealed"]}]},"OmnidexEventDecklistStatsNumericBreakdown":{"additionalProperties":false,"type":"object","properties":{"total":{"type":"number"}},"required":["total"]}}}}
```

## Get an Omnidex event's decklist metadata.

> Returns deck, element, and champion metadata for submitted decklists.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/events/{event_id}/decklists/metadata":{"get":{"operationId":"GetOmnidexEventDecklistMetadataAPISpec_get_/events/{event_id}/decklists/metadata","tags":["Omnidex"],"summary":"Get an Omnidex event's decklist metadata.","description":"Returns deck, element, and champion metadata for submitted decklists.","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexEventPlayerDecklistMetadata"}}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}},"403":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"OmnidexEventPlayerDecklistMetadata":{"type":"object","properties":{"decks":{"type":"array","items":{"type":"string"}},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string"}},"additionalProperties":false,"required":["icon","name"]}},"champions":{"type":"object","properties":{"named":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string","nullable":true}},"additionalProperties":false,"required":["icon","name"]}},"cards":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string","nullable":true},"champion":{"type":"string","nullable":true}},"additionalProperties":false,"required":["champion","icon","name"]}}},"additionalProperties":false,"required":["cards","named"]},"player":{"type":"number"}},"additionalProperties":false,"required":["champions","decks","elements","player"]}}}}
```

## GET /omnidex/decklist-validator

> Get Omnidex deck validation rules.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/decklist-validator":{"get":{"operationId":"ValidateOmnidexDeckAPISpec_get_/decklist-validator","tags":["Omnidex"],"summary":"Get Omnidex deck validation rules.","parameters":[{"description":"The deck format whose rules should be returned.","name":"format","in":"query","required":false,"schema":{"default":"STANDARD","enum":["DRAFT","PANTHEON","STANDARD"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecklistValidatorDeckRulesResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"DecklistValidatorDeckRulesResponse":{"type":"object","properties":{"decks":{"$ref":"#/components/schemas/DecklistValidatorDeckRules"},"metadata":{"$ref":"#/components/schemas/DecklistValidatorDeckRulesMetadata"}},"additionalProperties":false,"required":["decks","metadata"]},"DecklistValidatorDeckRules":{"type":"object","properties":{"main":{"$ref":"#/components/schemas/DecklistValidatorDeckCardRules"},"material":{"$ref":"#/components/schemas/DecklistValidatorDeckCardRules"},"sideboard":{"$ref":"#/components/schemas/DecklistValidatorSideboardRules"},"pantheon":{"$ref":"#/components/schemas/DecklistValidatorDeckCardRules"}},"additionalProperties":false},"DecklistValidatorDeckCardRules":{"type":"object","properties":{"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexDeckCardRestriction"}},"count":{"$ref":"#/components/schemas/OmnidexDeckComparison"},"expect":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexDeckCardExpectation"}},"quantity":{"$ref":"#/components/schemas/OmnidexDeckComparison"},"requires":{"$ref":"#/components/schemas/OmnidexDeckRequirements"},"sideboardPoints":{"type":"number"},"unlock":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckUnlockRule"}},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/OmnidexDeckCardRestriction"}}},"additionalProperties":false},"OmnidexDeckCardRestriction":{"type":"object","properties":{"count":{"$ref":"#/components/schemas/OmnidexDeckComparison"},"classes":{"type":"array","items":{"type":"string"}},"costType":{"enum":["MEMORY","NONE","RESERVE"],"type":"string"},"effectIncludes":{"type":"string"},"level":{"type":"number"},"subtypes":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"OmnidexDeckComparison":{"type":"object","properties":{"=":{"type":"number"},"<":{"type":"number"},">":{"type":"number"},"<=":{"type":"number"},">=":{"type":"number"}},"additionalProperties":false},"OmnidexDeckCardExpectation":{"type":"object","properties":{"count":{"$ref":"#/components/schemas/OmnidexDeckComparison"},"classes":{"type":"array","items":{"type":"string"}},"costType":{"enum":["MEMORY","NONE","RESERVE"],"type":"string"},"effectIncludes":{"type":"string"},"level":{"type":"number"},"subtypes":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"OmnidexDeckRequirements":{"type":"object","properties":{"collections":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"DecklistValidatorDeckUnlockRule":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"string"}},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"}},"additionalProperties":false,"required":["cards","deck"]},"DecklistValidatorDeckType":{"enum":["main","material","pantheon","sideboard"],"type":"string"},"DecklistValidatorSideboardRules":{"type":"object","properties":{"points":{"$ref":"#/components/schemas/OmnidexDeckComparison"},"requires":{"$ref":"#/components/schemas/OmnidexDeckRequirements"},"unlock":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckUnlockRule"}}},"additionalProperties":false,"required":["points"]},"DecklistValidatorDeckRulesMetadata":{"type":"object","properties":{"decks":{"$ref":"#/components/schemas/Partial_Record__main___material___sideboard___pantheon___name_string____"},"format":{"$ref":"#/components/schemas/OmnidexDeckLegality"}},"additionalProperties":false,"required":["decks","format"]},"Partial_Record__main___material___sideboard___pantheon___name_string____":{"type":"object","properties":{"main":{"type":"object","properties":{"name":{"type":"string"}},"additionalProperties":false,"required":["name"]},"material":{"type":"object","properties":{"name":{"type":"string"}},"additionalProperties":false,"required":["name"]},"sideboard":{"type":"object","properties":{"name":{"type":"string"}},"additionalProperties":false,"required":["name"]},"pantheon":{"type":"object","properties":{"name":{"type":"string"}},"additionalProperties":false,"required":["name"]}},"additionalProperties":false},"OmnidexDeckLegality":{"enum":["DRAFT","PANTHEON","STANDARD"],"type":"string"}}}}
```

## POST /omnidex/decklist-validator

> Validate an Omnidex decklist.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/omnidex/decklist-validator":{"post":{"operationId":"ValidateOmnidexDeckAPISpec_post_/decklist-validator","tags":["Omnidex"],"summary":"Validate an Omnidex decklist.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decks":{"description":"Structured decks containing card names and quantities. Provide exactly one of `decks` or `raw`.","type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckInput"}},"raw":{"description":"A decklist containing hash-prefixed deck headings and quantity/card-name lines. Provide exactly one of `raw` or `decks`.","type":"string"},"format":{"description":"The deck format to validate against.","default":"STANDARD","enum":["DRAFT","PANTHEON","STANDARD"],"type":"string"},"date":{"description":"The decklist's creation date. Historical Standard B&R legality is evaluated against this date.\nAccepts YYYY-MM-DD or an ISO 8601 timestamp.","type":"string"},"type":{"description":"Validate only this deck. Pantheon is supported only with the PANTHEON format.","enum":["main","material","pantheon","sideboard"],"type":"string"}},"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecklistValidatorDeckValidation"}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false,"required":["error"]}}}}}}}},"components":{"schemas":{"DecklistValidatorDeckInput":{"type":"object","properties":{"cards":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckInputCard"}},"type":{"$ref":"#/components/schemas/DecklistValidatorDeckType"}},"additionalProperties":false,"required":["cards","type"]},"DecklistValidatorDeckInputCard":{"type":"object","properties":{"card":{"type":"string"},"quantity":{"type":"number"}},"additionalProperties":false,"required":["card"]},"DecklistValidatorDeckType":{"enum":["main","material","pantheon","sideboard"],"type":"string"},"DecklistValidatorDeckValidation":{"anyOf":[{"$ref":"#/components/schemas/DecklistValidatorDeckValidationSuccess"},{"$ref":"#/components/schemas/DecklistValidatorDeckValidationFailure"}]},"DecklistValidatorDeckValidationSuccess":{"type":"object","properties":{"decks":{"$ref":"#/components/schemas/Partial_Record__main___material___sideboard___pantheon__DecklistValidatorDeckListCard____","description":"Parsed cards grouped by deck. Duplicate card rows are combined."},"errors":{"type":"array","minItems":0,"maxItems":0},"metadata":{"type":"object","properties":{"champions":{"description":"Material Deck champions, ordered by ascending level.","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"quantity":{"type":"number"},"uuid":{"type":"string"}},"additionalProperties":false,"required":["name","quantity","uuid"]}},"elements":{"description":"Distinct elements from Material Deck cards matching the SPIRIT CHAMPION expectation.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["champions","elements"]},"proxyAvailableCards":{"type":"array","items":{"type":"string"}},"valid":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["decks","errors","metadata","valid"]},"Partial_Record__main___material___sideboard___pantheon__DecklistValidatorDeckListCard____":{"type":"object","properties":{"main":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckListCard"}},"material":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckListCard"}},"sideboard":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckListCard"}},"pantheon":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckListCard"}}},"additionalProperties":false},"DecklistValidatorDeckListCard":{"type":"object","properties":{"card":{"type":"string"},"quantity":{"type":"number"}},"additionalProperties":false,"required":["card","quantity"]},"DecklistValidatorDeckValidationFailure":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/DecklistValidatorDeckValidationError"}},"errorsTruncated":{"description":"Present when the error list was capped at 30 entries.","type":"boolean"},"omittedErrors":{"description":"Number of validation errors omitted from the response.","type":"number"},"proxyAvailableCards":{"type":"array","items":{"type":"string"}},"valid":{"type":"boolean","enum":[false]}},"additionalProperties":false,"required":["errors","valid"]},"DecklistValidatorDeckValidationError":{"anyOf":[{"$ref":"#/components/schemas/DecklistValidatorCardNotFoundError"},{"$ref":"#/components/schemas/DecklistValidatorDeckLimitError"},{"$ref":"#/components/schemas/DecklistValidatorExpectMissingError"},{"$ref":"#/components/schemas/DecklistValidatorIncorrectDeckError"},{"$ref":"#/components/schemas/DecklistValidatorInvalidQuantityError"},{"$ref":"#/components/schemas/DecklistValidatorLegalityLimitError"},{"$ref":"#/components/schemas/DecklistValidatorMalformedLineError"},{"$ref":"#/components/schemas/DecklistValidatorMissingDeckError"},{"$ref":"#/components/schemas/DecklistValidatorPointsLimitError"},{"$ref":"#/components/schemas/DecklistValidatorQuantityLimitError"},{"$ref":"#/components/schemas/DecklistValidatorQuantityOverflowError"},{"$ref":"#/components/schemas/DecklistValidatorUnexpectedDeckError"},{"$ref":"#/components/schemas/DecklistValidatorUniqueCardLimitError"}]},"DecklistValidatorCardNotFoundError":{"type":"object","properties":{"card":{"type":"string"},"code":{"description":"No active card matches the supplied card name.","type":"string","enum":["CARD_NOT_FOUND"]},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["card","code","deck"]},"DecklistValidatorDeckLimitError":{"type":"object","properties":{"code":{"description":"The deck's total card count violates its count comparison.","type":"string","enum":["DECK_LIMIT"]},"message":{"description":"The actual count and violated limit, formatted as `actual/limit`.","type":"string"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck","message"]},"DecklistValidatorExpectMissingError":{"type":"object","properties":{"code":{"description":"The deck does not satisfy a configured expect entry.","type":"string","enum":["EXPECT_MISSING"]},"expect":{"description":"The zero-based index in the deck's expect array.","type":"number"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck","expect"]},"DecklistValidatorIncorrectDeckError":{"type":"object","properties":{"card":{"type":"string"},"code":{"description":"A card violates the deck's card rules, or the deck's unlock condition is unmet.","type":"string","enum":["INCORRECT_DECK"]},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck"]},"DecklistValidatorInvalidQuantityError":{"type":"object","properties":{"card":{"type":"string"},"code":{"description":"The supplied card quantity is not a positive safe integer.","type":"string","enum":["INVALID_QUANTITY"]},"message":{"type":"string"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck","message"]},"DecklistValidatorLegalityLimitError":{"type":"object","properties":{"card":{"type":"string"},"code":{"description":"Total copies across validated decks exceed the card's format legality limit.","type":"string","enum":["LEGALITY_LIMIT"]},"message":{"description":"The actual quantity and legality limit, formatted as `actual/limit`.","type":"string"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["card","code","deck","message"]},"DecklistValidatorMalformedLineError":{"type":"object","properties":{"code":{"description":"A raw decklist line does not use a positive `quantity card-name` form.","type":"string","enum":["MALFORMED_LINE"]},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"}},"additionalProperties":false,"required":["code","deck","line"]},"DecklistValidatorMissingDeckError":{"type":"object","properties":{"code":{"description":"A required deck section is absent.","type":"string","enum":["MISSING_DECK"]},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"}},"additionalProperties":false,"required":["code","deck"]},"DecklistValidatorPointsLimitError":{"type":"object","properties":{"code":{"description":"Total sideboard points violate the format's points comparison.","type":"string","enum":["POINTS_LIMIT"]},"message":{"description":"The actual points and violated limit, formatted as `actual/limit`.","type":"string"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck","message"]},"DecklistValidatorQuantityLimitError":{"type":"object","properties":{"card":{"type":"string"},"code":{"description":"A card or matched card group violates a quantity comparison.","type":"string","enum":["QUANTITY_LIMIT"]},"message":{"description":"The actual quantity and violated limit, formatted as `actual/limit`.","type":"string"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck","message"]},"DecklistValidatorQuantityOverflowError":{"type":"object","properties":{"card":{"description":"The aggregate card quantity exceeds JavaScript's safe integer range.","type":"string"},"code":{"type":"string","enum":["QUANTITY_OVERFLOW"]},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["card","code","deck"]},"DecklistValidatorUnexpectedDeckError":{"type":"object","properties":{"code":{"description":"The supplied deck is unavailable in the selected format.","type":"string","enum":["UNEXPECTED_DECK"]},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck"]},"DecklistValidatorUniqueCardLimitError":{"type":"object","properties":{"code":{"description":"More than 400 unique cards were submitted.","type":"string","enum":["UNIQUE_CARD_LIMIT"]},"message":{"description":"Submitted unique cards and the maximum, formatted as `actual/limit`.","type":"string"},"deck":{"$ref":"#/components/schemas/DecklistValidatorDeckType"},"line":{"description":"The one-based raw decklist line number, when raw input was used.","type":"number"}},"additionalProperties":false,"required":["code","deck","message"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-docs.gatcg.com/endpoints/omnidex.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
