Overview
Use this endpoint to retrieve a list of message templates associated with a specific OneSignal app. The response provides summary information only:template_idnamecreated_atupdated_at
This endpoint does not return full template content such as message bodies, channel properties, or delivery configuration. For detailed template data, use the View Template endpoint.
How to Use This API
Required Parameters
app_id(query param): The OneSignal App ID whose templates you want to retrieve.
Optional Parameters
limit(query param): Number of templates to return (default:50, maximum:50).offset(query param): Number of templates to skip. Use for pagination.
Pagination Example
If your app has 125 templates and you’re using the default limit of 50:-
First request (first 50 templates):
GET /templates?app_id={app_id}&offset=0 -
Second request (next 50 templates):
GET /templates?app_id={app_id}&offset=50 -
Third request (final 25 templates):
GET /templates?app_id={app_id}&offset=100
offset until you’ve retrieved all templates.
Headers
Query Parameters
Available options:
push, email, sms