Skip to main content
GET
View in-app messages

Overview

Retrieve the in-app messages 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 for the HTML, audience, and triggers.

How to use this API

Authenticate with your App API Key.

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. Each in-app message in items has these fields: The list excludes html, triggers, the audience, and the display settings. Any other key in a response is undocumented and can change.

Headers

Authorization
string
default:Key YOUR_APP_API_KEY
required

Your App API key with prefix Key. See Keys & IDs.

Path Parameters

app_id
string
default:YOUR_APP_ID
required

Your OneSignal App ID in UUID v4 format. See Keys & IDs.

Query Parameters

limit
integer
default:20

In-app messages per page, up to 20. A larger value returns 20. A value below 1 also returns 20.

offset
integer
default:0

Number of in-app messages to skip.

Required range: x >= 0

Response

200

success
boolean

true when the request succeeded.

payload
object