Interface TemplatesServiceV2


public interface TemplatesServiceV2
Templates V2

Version 2 endpoints for managing message templates.

Recommended version for all users.

Includes strongly typed translations field (allowing for message definition using JSON structures also used in the send message request of the Conversation API), improved validation, and the ability to override omni-channel templates in favor of channel-specific templates (where available).

Since:
1.3
See Also:
  • Method Details

    • list

      List all templates belonging to a project ID.
      Returns:
      List of templates
      Since:
      1.3
    • listTranslations

      Collection<TemplateTranslation> listTranslations(String templateId, TranslationListRequest request)
      List translations for a template
      Parameters:
      templateId - The ID of the template to fetch
      request - Parameters for request
      Returns:
      The translations list
      Since:
      1.3
    • create

      TemplateV2 create(TemplateV2 template)
      Creates a template
      Parameters:
      template - Information for creation
      Returns:
      Created template
      Since:
      1.3
    • get

      TemplateV2 get(String templateId)
      Get a template
      Parameters:
      templateId - The ID of the template to fetch.
      Returns:
      The template information
      Since:
      1.3
    • delete

      void delete(String templateId)
      Delete a template
      Parameters:
      templateId - The ID of the template to delete.
      Since:
      1.3
    • update

      TemplateV2 update(String templateId, TemplateV2 template)
      Updates a template
      Parameters:
      template - Information to be updated
      Returns:
      Updated template
      Since:
      1.3