get https://api.onesignal.com/templates/?app_id=
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 required template_id path parameter. This is the UUID found in the URL of your dashboard when viewing the template or using the View templates API.
Details on what each property of the response means can be found in the Create notification channel properties.
Example
Getting a template data.
curl --location 'https://api.onesignal.com/templates/<Template ID>?app_id=<APP ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \