Fetch Games

​

This API allows clients to fetch configured game URLs from the Punchh dashboard through an authenticated request. It enables mobile and web applications to dynamically display or trigger the correct game experiences based on the configurations set by brand admins. Only active game URLs are returned, ensuring that apps always reference the most current and valid game links.

Headers

  • Advertises which content types the client is able to understand

  • Used to authorize the request with access_token. It should be supplied as Bearer ACCESS_TOKEN_GOES_HERE.

  • Set this header to application/json.

  • Used to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.

  • The app device ID helps Punchh identify each device so that certain rewards can be awarded individually to each device instead of per user. For example, the sign-up reward is given to each device ID to prevent fraudulent sign-ups so that a user cannot do repeated sign-ups from a single device to get rewards. It should not change even if the user resets a device. See the sample code to generate the punchh-app-device-id header.

  • The signature for the API call

  • Preferred language

Body

application/json
  • OAuth client ID provided by the business

  • Filters the list of games by channel. Possible values:

    • mobile: Returns games available on mobile.
    • web: Returns games available on web.
    • mobile_web: Returns games available on both mobile and web.
    • If not specified, all games are returned.
  • Page number of results to retrieve. If a value is provided, the API returns only that page, using the value of per_page to determine how many records are included. If page is not specified, the API returns the first page by default. Any invalid value will be treated as the default value.

  • Number of records to return per page. If per_page is not specified, the API defaults to 20 records per page. The maximum allowed value is 100. Any invalid value will be treated as the default value.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/api2/mobile/par_games
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/par_games \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
  --header 'punchh-app-device-id: APP_DEVICE_ID_GOES_HERE' \
  --header 'x-pch-digest: {{$$.env.signature}}' \
  --header 'Accept-Language: en' \
  --data '{
  "client": "CLIENT_GOES_HERE",
  "page": 1,
  "per_page": 20,
  "channel": "mobile"
}'
{
  "games": [
    {
      "id": 4,
      "name": "Spin Wheel 1",
      "description": "zscc",
      "url": "URL_GOES_HERE",
      "status": "active",
      "channel": "mobile",
      "created_at": "2025-11-30T22:32:25-08:00",
      "updated_at": "2025-11-30T22:32:25-08:00",
      "cover_img": "IMAGE_URL_GOES_HERE"
    },
    {
      "id": 3,
      "name": "Black OPS I",
      "description": "",
      "url": "URL_GOES_HERE",
      "status": "active",
      "channel": "web",
      "created_at": "2025-11-30T22:32:01-08:00",
      "updated_at": "2025-11-30T22:32:01-08:00",
      "cover_img": null
    },
    {
      "id": 1,
      "name": "Mario",
      "description": "test",
      "url": "URL_GOES_HERE",
      "status": "active",
      "channel": "mobile_web",
      "created_at": "2025-11-30T22:31:13-08:00",
      "updated_at": "2025-11-30T22:31:13-08:00",
      "cover_img": "IMAGE_URL_GOES_HERE"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 20,
    "total_count": 3,
    "total_pages": 1,
    "has_next_page": false,
    "has_previous_page": false
  }
}