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

# View in-app messages

> Retrieve a paginated list of the in-app messages in an app, newest first, with each in-app message's name, status, and schedule.

## Overview

Retrieve the [in-app messages](https://documentation.onesignal.com/docs/en/in-app-messages-setup.md) in an app. Each in-app message is returned in a summary representation with its identity, status, and schedule. Use this list to find an in-app message `id`, then fetch [View in-app message](https://documentation.onesignal.com/reference/view-in-app-message.md) for the HTML, audience, and triggers.

***

## How to use this API

Authenticate with your [App API Key](https://documentation.onesignal.com/docs/en/keys-and-ids.md).

```http theme={null}
GET /apps/{app_id}/in_app_messages?limit=20&offset=0
```

### Pagination

In-app messages are returned newest first.

* Set `limit` to control page size. The default is `20` and the maximum is `20`. A larger value returns `20`, and so does a value below `1`.
* Set `offset` to the number of in-app messages to skip. The default is `0`.
* Compare `offset` plus the number of returned `items` with `total_count` to know when you have read every in-app message.

### Response

A successful request returns `200 OK`. The list and its pagination fields are nested under `payload`.

| Field | Type | Description |
| - | - | - |
| `items` | array | Summary objects, newest first. |
| `limit` | integer | Page size applied to this response. |
| `offset` | integer | Number of in-app messages skipped. |
| `total_count` | integer | Total in-app messages in the app that this API can return. |

Each in-app message in `items` has these fields:

| Field | Type | Description |
| - | - | - |
| `id` | string | UUID of the in-app message. |
| `app_id` | string | UUID of the app that owns the in-app message. |
| `name` | string | Name shown in the dashboard. |
| `status` | string | `scheduled` (enabled, before `start_time`), `active`, `complete` (past `end_time`), or `disabled` (paused or saved as a draft). |
| `enabled` | boolean | `false` while the in-app message is paused or saved as a draft. |
| `is_active` | boolean | `true` when the in-app message is enabled and inside its schedule. |
| `start_time` | string | When the in-app message becomes eligible to display, in ISO 8601 format. |
| `end_time` | string or null | When the in-app message stops displaying. `null` means no end. |
| `created_at` | string | When the in-app message was created. |
| `created_source` | string | `api` for in-app messages created through this API, otherwise `dashboard`. |
| `label_ids` | array | Dashboard labels on the in-app message. Read-only. |

The list excludes `html`, `triggers`, the audience, and the display settings. Any other key in a response is undocumented and can change.


## OpenAPI

````yaml GET /apps/{app_id}/in_app_messages
openapi: 3.1.0
info:
  title: api.onesignal.com
  version: '11.6'
servers:
  - url: https://api.onesignal.com
security:
  - {}
paths:
  /apps/{app_id}/in_app_messages:
    get:
      summary: View in-app messages
      description: >-
        Retrieve a paginated list of the in-app messages in an app, newest
        first. Each in-app message is returned in a summary representation; use
        [View in-app message](/reference/view-in-app-message) for the HTML,
        targeting, and triggers.
      operationId: view-in-app-messages
      parameters:
        - name: app_id
          in: path
          description: >-
            Your OneSignal App ID in UUID v4 format. See [Keys &
            IDs](/docs/en/keys-and-ids).
          schema:
            type: string
            default: YOUR_APP_ID
          required: true
        - name: Authorization
          in: header
          description: >-
            Your App API key with prefix `Key `. See [Keys &
            IDs](/docs/en/keys-and-ids).
          required: true
          schema:
            type: string
            default: Key YOUR_APP_API_KEY
        - name: limit
          in: query
          description: >-
            In-app messages per page, up to `20`. A larger value returns `20`. A
            value below `1` also returns `20`.
          schema:
            type: integer
            default: 20
        - name: offset
          in: query
          description: Number of in-app messages to skip.
          schema:
            type: integer
            default: 0
            minimum: 0
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: '`true` when the request succeeded.'
                  payload:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/InAppMessageListItem'
                        description: Summary objects, newest first.
                      limit:
                        type: integer
                        description: Page size applied to this response.
                      offset:
                        type: integer
                        description: Number of in-app messages skipped.
                      total_count:
                        type: integer
                        description: >-
                          Total in-app messages in the app that this API can
                          return.
              example:
                success: true
                payload:
                  items:
                    - id: 2c5c6b7e-0f6d-4a5e-9a2b-1a2b3c4d5e6f
                      app_id: YOUR_APP_ID
                      name: Welcome offer
                      status: active
                      enabled: true
                      is_active: true
                      start_time: '2026-11-01T00:00:00.000Z'
                      end_time: null
                      created_at: '2026-10-30T18:21:07.512Z'
                      created_source: api
                      label_ids: []
                  limit: 20
                  offset: 0
                  total_count: 1
        '401':
          description: >-
            The API key is missing or invalid, or belongs to another app or
            organization. This body has no `success` key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicErrorResponse'
              example:
                errors:
                  - >-
                    Access denied.  Please include an 'Authorization: ...'
                    header with a valid API key
                    (https://documentation.onesignal.com/docs/en/keys-and-ids#api-keys).
        '429':
          description: >-
            Rate limit exceeded. Requests to this path are blocked for 60
            seconds. This body has no `success` key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: string
                  limit:
                    type: string
                    description: Name of the rate limit that was exceeded.
              example:
                errors:
                  - API rate limit exceeded
                limit: API Per App
components:
  schemas:
    InAppMessageListItem:
      type: object
      properties:
        id:
          type: string
          description: UUID of the in-app message.
        app_id:
          type: string
          description: UUID of the app that owns the in-app message.
        name:
          type: string
          description: Name shown in the dashboard.
        status:
          type: string
          enum:
            - scheduled
            - active
            - complete
            - disabled
          description: >-
            `scheduled` (enabled, before `start_time`), `active`, `complete`
            (past `end_time`), or `disabled` (paused or saved as a draft).
        enabled:
          type: boolean
          description: '`false` while the in-app message is paused or saved as a draft.'
        is_active:
          type: boolean
          description: '`true` when the in-app message is enabled and inside its schedule.'
        start_time:
          type: string
          format: date-time
          description: When the in-app message becomes eligible to display.
        end_time:
          type:
            - string
            - 'null'
          format: date-time
          description: When the in-app message stops displaying. `null` means no end.
        created_at:
          type: string
          format: date-time
          description: When the in-app message was created.
        created_source:
          type: string
          enum:
            - api
            - dashboard
          description: >-
            `api` for in-app messages created through this API, otherwise
            `dashboard`.
        label_ids:
          type: array
          items:
            type: string
          description: Dashboard labels on the in-app message. Read-only.
    BasicErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: string
          description: One or more human-readable error messages.
        success:
          type: boolean
          description: >-
            Present (and `false`) on some endpoints (notifications, templates,
            segments). Not emitted by every endpoint.
        reference:
          type: array
          items:
            type: string
          description: >-
            Documentation URL fragments related to the error. Only emitted by
            the API-key auth error helpers.

````

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