> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.gamezop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Match Result API

> Fetch the result of any Battle match played by your users.

Licensed

> [!NOTE]
>
> This feature is only available with the licensed model. [Contact us](https://business.gamezop.com/contact-us/enquire-now) to know more.

Gamezop already sends each match's result to your [Receive Winners API](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/integration/match-outcomes.md#receive-winners-api). Use this API when you need a result on demand, for example:

* Your endpoint missed a result because it was down or returned an error.
* You want to check a match that's still in progress. The response then has `match_status: "IN_PROGRESS"` and the latest scores.
* You want to check your records against Gamezop's before paying out prizes.

Query the API with the match's `match_id`: the one your [Create Match API](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/integration/match-outcomes.md#create-match-api) returned, or the one Gamezop generated if you haven't built that API. You receive it in the [Receive Winners API](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/integration/match-outcomes.md#receive-winners-api) request and in [client-side callbacks](https://docs.platform.gamezop.com/publishers/gamezop/offerings/battles/integration/client-side-callbacks.md).

To call this API, use the bearer token from **Settings & Admin > API Tokens** in the [Gamezop Business Dashboard](https://dashboard.gamezop.com). This isn't the token you may have shared for your own endpoints.

***


## OpenAPI

````yaml openapi-gzp.json GET /v1/match-result
openapi: 3.1.0
info:
  title: Gamezop APIs
  version: 1.0.0
  description: >-
    OpenAPI specification for Gamezop endpoints including game catalog,
    leaderboard metadata, and other integration APIs.
servers:
  - url: https://api.gamezop.com
    description: Gamezop API
security:
  - bearerAuth: []
paths:
  /v1/match-result:
    get:
      summary: Get Match Result API
      description: Fetch the result of any Battle match played by your users.
      operationId: getMatchResult
      parameters:
        - name: match_id
          in: query
          required: true
          description: >-
            The `match_id` you want the result for. The match's `match_id`: the
            one your [Create Match
            API](/publishers/gamezop/offerings/battles/integration/match-outcomes#create-match-api)
            returned, or the one Gamezop generated if you haven't built that
            API. You receive it in the [Receive Winners
            API](/publishers/gamezop/offerings/battles/integration/match-outcomes#receive-winners-api)
            request and in [client-side
            callbacks](/publishers/gamezop/offerings/battles/integration/client-side-callbacks).
          schema:
            type: string
          example: ab9ce5a2995c5da2047a
      responses:
        '200':
          description: HTTP 200 OK. Returns match result data for the requested match.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MatchResultResponse'
              examples:
                Success:
                  summary: Example response
                  value:
                    data:
                      property_id: '1234'
                      game_code: rJWyhp79RS
                      room_id: SNAKE_AND_LADDERS_5e0
                      match_id: ab9ce5a2995c5da2047a
                      scores:
                        - puid: user-123
                          is_bot: false
                          rank: 1
                          score: 10
                        - puid: user-456
                          is_bot: true
                          rank: 2
                          score: 9
                      match_status: COMPLETED
                      match_start_time: '2025-06-11T06:00:00.000Z'
                    success: true
                    message: ''
        '400':
          description: >-
            Bad Request. Occurs when the `match_id` parameter is invalid or
            missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid or missing match_id:
                  summary: match_id is invalid or missing
                  value:
                    message: match_id is invalid or missing.
                    success: false
        '401':
          description: Unauthorized. Occurs when the Bearer token is invalid or missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid Bearer Token:
                  summary: Bearer token is invalid or missing
                  value:
                    message: Bearer token is invalid or missing.
                    success: false
components:
  schemas:
    MatchResultResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MatchResultData'
        success:
          type: boolean
          description: >-
            Boolean value that is always `true`, unless there is an error in the
            API response.
        message:
          type: string
          description: >-
            String value that is always empty, unless there is an error in the
            API response.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
        success:
          type: boolean
    MatchResultData:
      type: object
      properties:
        property_id:
          type: string
          description: >-
            Your Gamezop Property ID associated with the bearer token that you
            sent in the request.
        game_code:
          type: string
          description: >-
            The Gamezop game code on which the match was played. You can get
            game codes for all Gamezop games enabled for you via the [All Games
            API](/publishers/gamezop/guides/all-games-api).
        room_id:
          type: string
          description: >-
            The `roomId` you passed in the `roomDetails` object when [generating
            the game
            link](/publishers/gamezop/offerings/battles/integration/overview#create-a-battle-game-link).
        match_id:
          type: string
          description: The `match_id` that you're requesting data for.
        scores:
          type: array
          description: >-
            Array of player score objects (one per participant). Each object
            includes `puid`, `is_bot`, `rank`, and `score`.
          items:
            $ref: '#/components/schemas/MatchScore'
        match_status:
          type: string
          enum:
            - COMPLETED
            - IN_PROGRESS
          description: >-
            `COMPLETED` when the match has ended and the ranks are final.
            `IN_PROGRESS` while players are still playing, in which case `score`
            and `rank` may still change.
        match_start_time:
          type: string
          format: date-time
          description: UTC timestamp representing the time at which the match started.
    MatchScore:
      type: object
      properties:
        puid:
          type: string
          description: >-
            The `user.puid` you passed in
            [`roomDetails`](/publishers/gamezop/offerings/battles/integration/overview#identify-your-players).
        is_bot:
          type: boolean
          description: >-
            Whether the player was a bot. If `true`, `puid` is the bot's `puid`
            from
            [`roomDetails.bots`](/publishers/gamezop/offerings/battles/integration/overview#add-bot-opponents),
            or one Gamezop created if you didn't pass one.
        rank:
          type: integer
          description: >-
            Player's rank within the match. Rank `1` is the winner. Players with
            the same score share a rank.
        score:
          type: number
          description: Player's latest score within that match.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: UUID
      description: >-
        You can find the Bearer token for this API under Settings & Admin > API
        Tokens within the [Gamezop Business
        Dashboard](https://dashboard.gamezop.com).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.