View the details of a single template.
Overview
This endpoint retrieves a single template associated with a specific app. The response returns the content of the template, the channel it can be sent to, and the timestamps of the creation, or most recent update.
How to use this API
To view a specific template, it must be identifiable via the template_id
path parameter.
Template ID
The template_id
is a UUID that can be obtained in several ways:
-
Use the View templates API.
-
In your OneSignal dashboard, navigate to Messages > Templates and find the template you wish to update. Get the UUID in the following ways:
-
Select the Options > Copy Template ID
Copy Template ID.
-
In the URL when viewing the template
-

Template ID in the URL when viewing the template.
Details on what each property of the response means can be found in the Push notification, Email, or SMS API references based on the type of template.