{
  1. Intro
  2. From domains
    1. Get all from domains
    2. Get specific from domain
    3. Create from domain
    4. Verify from domain
    5. Delete from domain
    6. From domain object definition
  3. From addresses
    1. Get all from addresses
    2. Get specific from address
    3. Create from address
    4. Update from address
    5. Delete from address
    6. From address object definitions
  4. Address lists
  5. Templates
    1. Get all templates
    2. Get specific template
    3. Create template
    4. Update template
    5. Delete template
    6. Template object definitions
  6. Campaigns
    1. Get all campaigns
    2. Get specific campaign
    3. Create campaign
    4. Update campaign
    5. Delete campaign
    6. Clone campaign
    7. Get statistics
    8. Get clicks
    9. Get statistics details
    10. How to use triggered campaigns
    11. Campaign object definitions
  7. Mailings
    1. Get all mailings
    2. Get specific mailing
    3. Create mailing
    4. Update mailing
    5. Delete mailing
    6. Get statistics
    7. How to use merge fields
    8. Mailing object definitions
  8. Mails
    1. Create mail
    2. Create triggered mail
    3. Get statistics details
    4. Mail object definitions
  9. Unsubscriptions
    1. Get all unsubscriptions
    2. Create unsubscription
    3. Delete unsubscription
    4. Unsubscription object definition
  10. Webhooks
    1. Get webhook
    2. Create or update webhook
    3. Delete webhook
    4. Webhook object definition
    5. How to implement the webhook

Get templates

Retrieve all templates available for your account.

GET https://api.cmtelecom.com/bulkemail/v1.0/accounts/{accountID}/templates

GET Parameters

Name In Description Required Type Example
AccountID Path The account guid True Guid A8C062E4-ECFD-48D0-89B1-A37D2622B7A9
Skip Query The amount of from address to skip False (default 0) Int 0
Take Query The amount of from address to take False (default 1000) Int 1000
IncludeHtmlBody Query Whether to include the html body in the response False (default True) Bool True
IncludeTextBody Query Whether to include the text body in the response False (default True) Bool True
IncludeJson Query Whether to include the template json in the response False (default True) Bool True
Filter Query The name to filter on False String My awesome template
X-CM-PRODUCTTOKEN Header Your product token True Guid C24A5029-37DD-4161-9728-F80D8639588E

Responses

Http status Description Example
200 Successful operation [ { "ID": "6c176f77-a2cd-45bf-b318-ec6150fee028", "AccountID": "a65b6ba1-7b13-4cff-aaf6-c736c977c1d4", "Name": "Demo", "Description": "", "HtmlBody": "Omitted for clarity", "TextBody": "Follow [[ SpecialLink.ViewInBrowser ]] to view the message in your browser", "Json": "Omitted for clarity", "MergeFields": { "MergeTags": [ { "Name": "Sender.EmailAddress", "Value": "{{ Sender.EmailAddress }}", "Mapping": "Sender.EmailAddress" }, { "Name": "Recipient.EmailAddress", "Value": "{{ Recipient.EmailAddress }}", "Mapping": "Recipient.EmailAddress" } ], "SpecialLinks": [ { "Type": "system", "Label": "Unsubscribe", "Link": "[[ SpecialLink.Unsubscribe ]]", "Mapping": "SpecialLink.Unsubscribe" }, { "Type": "system", "Label": "Subscribe", "Link": "[[ SpecialLink.Subscribe ]]", "Mapping": "SpecialLink.Subscribe" }, { "Type": "system", "Label": "View in browser", "Link": "[[ SpecialLink.ViewInBrowser ]]", "Mapping": "SpecialLink.ViewInBrowser" } ] }, "CreatedOn": "2017-08-04T14:16:26.283", "ModifiedOn": "2017-08-04T14:16:26.283", "DeletedOn": null } ]
400 Bad request

Try it out