{ "opencollection": "1.0.0", "info": { "name": "OneSignal Templates API", "version": "5.5.0" }, "items": [ { "info": { "name": "Templates", "type": "folder" }, "items": [ { "info": { "name": "View templates", "type": "http" }, "http": { "method": "GET", "url": "https://api.onesignal.com/templates", "params": [ { "name": "app_id", "value": "", "type": "query", "description": "Your OneSignal App ID in UUID v4 format." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of templates. Default and max is 50." }, { "name": "offset", "value": "", "type": "query", "description": "Pagination offset." }, { "name": "channel", "value": "", "type": "query", "description": "Filter by delivery channel." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "List templates for an app." }, { "info": { "name": "Create template", "type": "http" }, "http": { "method": "POST", "url": "https://api.onesignal.com/templates", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create reusable message templates for push, email, and SMS channels." }, { "info": { "name": "View template", "type": "http" }, "http": { "method": "GET", "url": "https://api.onesignal.com/templates/:template_id", "params": [ { "name": "template_id", "value": "", "type": "path" }, { "name": "app_id", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Fetch a single template by id." }, { "info": { "name": "Update template", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.onesignal.com/templates/:template_id", "params": [ { "name": "template_id", "value": "", "type": "path" }, { "name": "app_id", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update an existing template." }, { "info": { "name": "Delete template", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.onesignal.com/templates/:template_id", "params": [ { "name": "template_id", "value": "", "type": "path" }, { "name": "app_id", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a template by id." }, { "info": { "name": "Copy template to another app", "type": "http" }, "http": { "method": "POST", "url": "https://api.onesignal.com/templates/:template_id/copy_to_app", "params": [ { "name": "template_id", "value": "", "type": "path" }, { "name": "app_id", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Copy a template to a destination app." } ] } ], "bundled": true }