Templates
Create reusable notification templates with placeholder substitution.
Lists every template belonging to the App, ordered by creation time.
Path Parameters
App ID
Response Body
application/json
curl -X GET "https://example.com/v1/apps/string/templates"[ { "app_id": "string", "body": "string", "created_at": "string", "id": "string", "name": "string", "title": "string" }]Creates a notification template (title/body) scoped to the App.
Path Parameters
App ID
Request Body
application/json
Template name, title, and body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/apps/string/templates" \ -H "Content-Type: application/json" \ -d '{}'{ "app_id": "string", "body": "string", "created_at": "string", "id": "string", "name": "string", "title": "string"}Fetches a single template by ID, scoped to the App.
Path Parameters
App ID
Template ID
Response Body
application/json
curl -X GET "https://example.com/v1/apps/string/templates/string"{ "app_id": "string", "body": "string", "created_at": "string", "id": "string", "name": "string", "title": "string"}Partially updates a template's name, title, and/or body. Fields omitted (empty string) from the request keep their existing value.
Path Parameters
App ID
Template ID
Request Body
application/json
Fields to update
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/v1/apps/string/templates/string" \ -H "Content-Type: application/json" \ -d '{}'{ "app_id": "string", "body": "string", "created_at": "string", "id": "string", "name": "string", "title": "string"}Deletes a template by ID, scoped to the App.
Path Parameters
App ID
Template ID
Response Body
curl -X DELETE "https://example.com/v1/apps/string/templates/string"