Skip to main content
GET
View in-app message

Overview

Retrieve one in-app message 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 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. Find an in-app message’s id from the View in-app messages API.

Response

A successful request returns 200 OK with the in-app message under payload. 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.

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.

id
string
default:YOUR_IN_APP_MESSAGE_ID
required

UUID of the in-app message to retrieve.

Response

200

success
boolean

true when the request succeeded.

payload
object