OneSignal Templates API

The Templates API from OneSignal — 3 operation(s) for templates.

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /templates/{template_id}?app_id={app_id} View a message template's content · View template #
Ask an LLM
“What content and channel does one of my message templates hold?”
“When was a particular template last updated?”
Tell an agent
Show message template {template_id} from app {app_id}.
Get the content, channel and timestamps of template {template_id} in app {app_id}.
DELETE /templates/{template_id}?app_id={app_id} Permanently delete a message template · Delete template #
Ask an LLM
“Can I delete a template that's still used in a Journey?”
“How do I permanently remove an old message template?”
Tell an agent destructive · confirm first
Permanently delete message template {template_id} from app {app_id}.
Remove template {template_id} in app {app_id} now that it's out of every Journey.
PATCH /templates/{template_id}?app_id={app_id} Update a push, email or SMS template · Update template #
Ask an LLM
“Do template edits take effect immediately for API sends?”
“How do I change the email body of an existing template?”
Tell an agent
Update message template {template_id} in app {app_id}, naming it {name}.
Change the email body of template {template_id} in app {app_id} to {email_body}, keeping name {name}.
GET /templates?app_id={app_id}&limit={limit}&offset={offset} Browse an app's message templates · View templates #
Ask an LLM
“Which message templates exist in my app?”
“Can I see only my email templates?”
Tell an agent
List the message templates in app {app_id}.
Show {limit} {channel} templates from app {app_id} starting at {offset}.
POST /templates Create a reusable message template · Create template #
Ask an LLM
“How do I make a reusable template for push, email or SMS?”
“Can I create an email template with a subject line through the API?”
Tell an agent
Create a template named {name} in app {app_id} with message {contents}.
Create email template {name} in app {app_id} with subject {email_subject} and body {email_body}.
GET /templates List templates (legacy endpoint) · View templates #
Ask an LLM
“Is there an older endpoint for listing an app's templates?”
“Which legacy call pages through templates by channel?”
Tell an agent
Use the legacy template list for app {app_id}.
Page the older template listing for app {app_id} on channel {channel} with limit {limit}.
POST /templates/{template_id}/copy_to_app?app_id={app_id} Duplicate a template into another app · Copy template to another app #
Ask an LLM
“Can I reuse a message template in a different app in my organization?”
“Does a copied template get a new template ID?”
Tell an agent
Copy message template {template_id} from app {app_id} into app {target_app_id}.
Duplicate template {template_id} of app {app_id} so app {target_app_id} has its own copy.
DELETE /templates/{template_id} Delete a template (legacy endpoint) · Delete template #
Ask an LLM
“Is there a legacy endpoint for deleting a template by ID?”
“Which older call removes a template?”
Tell an agent destructive · confirm first
Delete template {template_id} in app {app_id} through the legacy endpoint.
Use the older delete call to drop template {template_id} from app {app_id}.
GET /templates/{template_id} Fetch a template by ID (legacy endpoint) · View template #
Ask an LLM
“Is there an older endpoint to fetch a single template by ID?”
“Which legacy call returns one template?”
Tell an agent
Fetch template {template_id} for app {app_id} with the legacy lookup.
Use the older single-template call on {template_id} in app {app_id}.
PATCH /templates/{template_id} Update a template's headings, subtitle or BCC · Update template #
Ask an LLM
“Can I change a push template's heading and subtitle?”
“How do I add a BCC address to an email template?”
Tell an agent
Set the heading of template {template_id} in app {app_id} to {headings} and subtitle to {subtitle}.
Add BCC {email_bcc} to email template {template_id} in app {app_id}.
POST /templates/{template_id}/copy_to_app Copy a template to a destination app (legacy) · Copy template to another app #
Ask an LLM
“Is there an older endpoint for copying a template to a destination app?”
“Which legacy call copies templates across apps?”
Tell an agent
Copy template {template_id} from app {app_id} to destination {target_app_id} using the legacy endpoint.
Run the older copy call to send template {template_id} of app {app_id} to app {target_app_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onesignal:onesignal-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onesignal-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onesignal Templates API
  version: '1.0'
  description: 'Operations tagged Templates across 2 of this provider''s published API definitions: onesignal-api-openapi.json, onesignal-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.onesignal.com
tags:


# --- truncated at 32 KB (148 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/onesignal/refs/heads/main/openapi/onesignal-templates-api-openapi.yml