---
title: "Lists all push templates of an application"
method: GET
path: "/applications/{application}/pushTemplates"
tags: ["settings"]
---

# Lists all push templates of an application

`GET /applications/{application}/pushTemplates`

Lists all push templates of an application

## Response `200`

The set of available push templates of this application.

- object
  - `paging` PagingType
    - `total` number — total results
    - `page` number — The number of the current page
    - `perPage` number — Number of results per page
    - `previous` string — Link to previous page (if exists)
    - `next` string — Link to next page (if exists)
    - `first` string — Link to first page
    - `last` string — Link to last page
  - `items` PushTemplateType[] — Array of the push notification templates
    - `requiresMessage` boolean — True if this tempalte requires message to be set in the SNS Push action.
    - `requiresTitle` boolean — True if this tempalte requires the title to be set in the SNS Push action.
    - `requiresImage` boolean — True if this tempalte requires the image to be set in the SNS Push action.
    - `requiresVideo` boolean — True if this tempalte requires the video to be set in the SNS Push action.
    - `name` string — The name of the tempalte
    - `applicationId` number — the accociated application
    - `platform` 'IOS' | 'ANDROID' — The type of a mobile platform
    - `type` 'TEXT' | 'TEXT_WITH_TITLE' | 'TEXT_WITH_IMAGE' | 'TEXT_WITH_TITLE_AND_IMAGE' | 'TEXT_WITH_VIDEO' | 'TEXT_WITH_TITLE_AND_VIDEO' — The type of the template. This must be consistent with the definition (e.g. for TEXT_WITH_IMAGE the definition must include fields action.snspush.image and action.snspush.message (no more or less fields)
    - `definition` string — The JSON that will be sent to SNS. The special strings ${action.snspush.message}, ${action.snspush.title}, ${action.snspush.image} and ${action.snspush.video} will be replaced with the relevant values from the SNS Push action definition (and if used in the template they will be required to not be null. As an example, the defauilt template is: { "default": "${action.snspush.message}", "APNS": "{\\"aps\\":{\\"alert\\": \"${action.snspush.message}\\"} }", "GCM":"{\\"data\\":{\\"message\\": \\"${action.snspush.message}\\"}}"}
    - `id` string, required — System wide unique identifier of the entity

## Other responses

- `400` — Malformed request
- `default` — Unexpected error

---

[API](https://skmtc.net/gameanalytics/apis/datatiger-management-api.md) · [All operations](https://skmtc.net/gameanalytics/apis/datatiger-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gameanalytics/datatiger-management-api/revisions/20a4f732a0b7/schema)
