Home > OS >  One Signal REST API - Get the list of templates
One Signal REST API - Get the list of templates

Time:09-25

How are you? In principle, sorry for my English.

I need to work with an integration with One Signal REST API both for web and mobile application, but I can't find any endpoint to bring the templates (and I need them to include the id of the template in the request body as indicated in the documentation of "POST -> create notification")

Does anyone know if there is an endpoint that brings me the list of templates?

Thanks a lot

CodePudding user response:

I confirm that (as of the date, oneSignal REST API v8) it's not possible to obtain the onSignal template_id via REST API

Chat with OneSignal employee

CodePudding user response:

  • got to OneSignal console
  • select the app
  • select Messages > Templates
  • select the template that you want to know its ID
  • get the ID from the URL, like shown in the image below

Screenshot

  • Related