Get list of content templates through API

Hi,

is there a way to list all existing content templates using the REST API? I know it works with legacy templates using /api/templates but since that's deprecated according to the docs, I'm trying to use content templates. I just want to validate a given template_id without just trying to send a notification.

Thanks a lot!

Didn't find what you were looking for?

New post

Comments

5 comments

  • Hi Haakon,

    Thanks for reaching out to Airship Technical Support! List Templates API is being replaced by our new content templating features, currently available in the Airship UI. This API will not be removed until the new content templating feature supports all platforms, but we are no longer adding features to this API or its templating language.

    Unfortunately, content templates are restricted to our Airship dashboard/UI for now. Let me know if you have any additional questions or concerns.

    Regards,

    Arushi S.
    Technical Support Engineer
    Airship | San Francisco, CA

    Comment actions Permalink
  • Hi,

    thanks for the quick response. 

    Unfortunately, content templates are restricted to our Airship dashboard/UI for now.

    Are there plans to add content templates to the API at some point or will the feature remain restricted to the web-UI for the foreseeable future?

    Thanks!

    Comment actions Permalink
    0
  • Hi Haakon,

    The content templates are restricted to our Airship dashboard/UI for now and they will remain so for the foreseeable future. Are there any specific use cases that you would like to share, which cannot be completed via the UI?

    Let me know and I will be happy to share the feedback with our Product Team.

    Regards,

    Arushi S.
    Technical Support Engineer
    Airship | San Francisco, CA



    Comment actions Permalink
    0
  • The specific use case I have, is to validate a content template-id before sending notifications via the template through the API. With legacy template, I can query the API to list all available legacy templates and check if a given template-id exists, as well as check, which handelbars are used inside the template (and make sure, I send alle the needed information for personalisation). 

    That doesn't seem to be possible at the moment using content templates - corrent me if I'm wrong, please. :)

    Thanks a lot,
    Haakon

    Comment actions Permalink
    0
  • Hi Haakon,

    Thanks a lot for sharing this information! We have gone ahead and shared this use case with our product team as a feedback. Please feel free to reach out again if you have any additional questions or concerns.

    Regards,

    Arushi S.
    Technical Support Engineer
    Airship | San Francisco, CA

    Comment actions Permalink
    0

Please sign in to leave a comment.