Create template
documentedCreate a reusable template for push, email, or SMS messages.
POST /templatesTemplatesno implementation yet0 runsInput
app_id*
OneSignal App ID
Your OneSignal App ID
template_name*
Template name
e.g. Welcome Email
contents_en*
Contents (English)
Message content in English
is_email
Is email template?
email_subject
Email subject
Subject line
email_body
Email body (HTML)
HTML body
is_sms
Is SMS template?
dynamic_content
Dynamic content (JSON string)
{"campaign_id":{...}}
Calls OneSignal as you (your API key is your account); keychains.dev holds the credentials.