v1
latestOpenAPI 3.1.02026-07-26497885.9 KBView template
Retrieve the details of a specific message template in your OneSignal app using its template ID. This API returns the template content, target channel, and timestamps for creation and last update.
get/templates/{template_id}?app_id={app_id}
Path parameters
template_idstring required
The template ID in UUID v4 format. See Templates.
Query parameters
app_idstring required
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
Headers
Authorizationstring required
Your App API key with prefix Key . See Keys & IDs.
Content-Typestring required
Response
200
Example response
{
"id": "Template-ID-in-UUID-v4-format",
"channel": "push",
"created_at": "2023-07-20T19:16:55Z",
"updated_at": "2023-07-20T19:16:55Z",
"content": {
"url": "https://example.com"
}
}