> ## 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 message

> Retrieve a single in-app message by its UUID, including its HTML, schedule, audience, triggers, and redisplay settings.

## Overview

Retrieve one [in-app message](https://documentation.onesignal.com/docs/en/in-app-messages-setup.md) by its UUID. The response is the full in-app message: its HTML, schedule, audience, triggers, and redisplay settings.

Read an in-app message with this endpoint before you update it. [Update in-app message](https://documentation.onesignal.com/reference/update-in-app-message.md) replaces the whole in-app message, so you send back the stored values for anything you are not changing.

***

## How to use this API

Authenticate with your [App API Key](https://documentation.onesignal.com/docs/en/keys-and-ids.md). Find an in-app message's `id` from the [View in-app messages](https://documentation.onesignal.com/reference/view-in-app-messages.md) API.

```http theme={null}
GET /apps/{app_id}/in_app_messages/{id}
```

### Response

A successful request returns `200 OK` with the in-app message under `payload`.

| 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. |
| `display_duration` | integer | Seconds the in-app message stays on screen. `0` keeps it until dismissed. |
| `redisplay_delay` | integer or null | Seconds between showings to the same user. `null` with a `null` `redisplay_limit` means the in-app message shows once. |
| `redisplay_limit` | integer or null | Maximum re-showings per user. `2147483647` means unlimited. |
| `included_segment_ids` | array | UUIDs of the [Segments](https://documentation.onesignal.com/docs/en/segmentation.md) the in-app message is shown to. |
| `excluded_segment_ids` | array | UUIDs of the Segments the in-app message is never shown to. |
| `triggers` | array | Trigger sets that decide when the in-app message shows. See [Triggers](https://documentation.onesignal.com/reference/create-in-app-message.md#triggers). |
| `html` | string or null | The in-app message's HTML. For an in-app message with language variants, the HTML of its default language. For an in-app message built with the [Block Editor](https://documentation.onesignal.com/docs/en/design-your-in-app-message.md), the rendered HTML of its default language. |

Each trigger set and condition in `triggers` carries an `id`. A `custom` condition returns its `value` as a string. A `session_time` or `min_time_since` condition returns its `value` as an integer.

Any other key in a response is undocumented and can change.


## OpenAPI

````yaml GET /apps/{app_id}/in_app_messages/{id}
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/{id}:
    get:
      summary: View in-app message
      description: >-
        Retrieve a single in-app message by its UUID, including its HTML,
        schedule, audience, triggers, and redisplay settings.
      operationId: view-in-app-message
      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: id
          in: path
          description: UUID of the in-app message to retrieve.
          required: true
          schema:
            type: string
            default: YOUR_IN_APP_MESSAGE_ID
        - 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
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: '`true` when the request succeeded.'
                  payload:
                    $ref: '#/components/schemas/InAppMessageDetail'
              example:
                success: true
                payload:
                  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: []
                  display_duration: 0
                  redisplay_delay: null
                  redisplay_limit: null
                  included_segment_ids:
                    - 3c2b1a0f-9e8d-4c7b-a6f5-4e3d2c1b0a99
                  excluded_segment_ids: []
                  triggers:
                    - id: 6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d
                      conditions:
                        - id: 0f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f
                          kind: session_time
                          property: ''
                          operator: greater
                          value: 30
                  html: >-
                    <!doctype html><html><body><h1>Welcome!</h1><p>20% off your
                    first order.</p></body></html>
        '400':
          description: The `id` is not a valid UUID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InAppMessageErrorResponse'
              example:
                success: false
                errors:
                  - In-App Message ID is invalid
        '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).
        '404':
          description: No in-app message with that `id` exists for this app.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InAppMessageErrorResponse'
              example:
                success: false
                errors:
                  - In-App Message not found
        '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:
    InAppMessageDetail:
      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.
        display_duration:
          type: integer
          description: >-
            Seconds the in-app message stays on screen. `0` keeps it until
            dismissed.
        redisplay_delay:
          type:
            - integer
            - 'null'
          description: >-
            Seconds between showings to the same user. `null` with a `null`
            `redisplay_limit` means the in-app message shows once.
        redisplay_limit:
          type:
            - integer
            - 'null'
          description: Maximum re-showings per user. `2147483647` means unlimited.
        included_segment_ids:
          type: array
          items:
            type: string
          description: UUIDs of the Segments the in-app message is shown to.
        excluded_segment_ids:
          type: array
          items:
            type: string
          description: UUIDs of the Segments the in-app message is never shown to.
        triggers:
          type: array
          items:
            $ref: '#/components/schemas/InAppMessageTriggerSet'
          description: >-
            Trigger sets. The in-app message shows when any set fires. An empty
            array means the in-app message shows on app open.
        html:
          type:
            - string
            - 'null'
          description: >-
            The in-app message's HTML. For an in-app message with language
            variants, the HTML of its default language. For an in-app message
            built with the Block Editor, the rendered HTML of its default
            language.
    InAppMessageErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        errors:
          type: array
          items:
            type: string
          description: >-
            Every problem found with the request. Field-level errors start with
            the quoted field name, for example `'name' Message name required`.
    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.
    InAppMessageTriggerSet:
      type: object
      required:
        - conditions
      properties:
        id:
          type: string
          description: >-
            UUID of the trigger set. Returned in responses. Optional in
            requests.
        conditions:
          type: array
          maxItems: 30
          items:
            $ref: '#/components/schemas/InAppMessageTriggerCondition'
          description: Conditions that must all hold for the set to fire. Maximum 30.
    InAppMessageTriggerCondition:
      type: object
      required:
        - kind
        - operator
      properties:
        id:
          type: string
          description: UUID of the condition. Returned in responses. Optional in requests.
        kind:
          type: string
          enum:
            - custom
            - session_time
            - min_time_since
          description: >-
            `custom` compares a trigger your app sets through the SDK.
            `session_time` is seconds since the current session started.
            `min_time_since` is seconds since the last in-app message was shown.
        property:
          type: string
          description: >-
            The trigger key your app sets through the SDK. Required for
            `custom`. Omit for the time kinds.
        operator:
          type: string
          enum:
            - greater
            - less
            - greater_or_equal
            - less_or_equal
            - equal
            - not_equal
            - exists
            - not_exists
          description: How the trigger value is compared with `value`.
        value:
          oneOf:
            - type: string
            - type: integer
          description: >-
            A string for `custom`. An integer from `1` to `2147483647` for
            `session_time` and `min_time_since`. Not required for `custom` with
            `exists` or `not_exists`.

````

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