Get Templates
GET/api/crm/v1/templates
Returns one page of the CRM templates for a channel, so you can look up a template id to use as templateId in Send Campaign (POST /rx-api/campaign/v1/send/campaign). Send Direct Content doesn't use templates.
- Channel: set
typetoEmail,SMS,ON_SITE,PUSH_IN_APP,WEB_PUSHorRICH_INBOX, exactly as written. Other values (for exampleEMAILoremail) return400. Iftypeis omitted,Emailis used. - Which templates: every template that isn't archived, active or not. For Email and SMS, internal send-direct templates are left out.
- Search:
filterByNamematches any part of the template name, ignoring case. For example,mailmatches "Email welcome" and "My Mail". - Order and paging: results are sorted by name, A to Z (case-sensitive). Use
page(starting at 1) andperPage(default 25, max 100), and followpageandpagesto walk the full list. - No match: returns
200with an emptydatalist andtotalof 0.
The response lists each template's id and name only. To find a template's placeholder keys for Send Campaign, open the template in the Admin Dashboard under CRM templates.
Request
Responses
- 200
- 400
- 401
- 500
- default
One page of templates. Returns an empty data list when nothing matches.
Invalid request, for example a type outside the listed values.
The access token is missing or invalid.
Internal Server Error
An unexpected error response.