latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Templates

Create a template

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Templates/createTemplate" target="_blank">Try in sandbox</a><br>There are times when creating a new template makes sense (such as when targeting specific clients or improving your business strategies). You can create new SMS templates for marketing purposes or SMS templates for business campaigns.

post/api/v2/templates

Request body

namestring required

Template name.

contentstring required

Template text. May contain dynamic fields inside braces. See Custom fields list.

Example request

{
  "name": "New template name",
  "content": "New template content"
}

Response

Returned when successful.

idinteger required

Resource ID.

hrefstring required

A link to this resource. If you want to fetch it, just GET this address.

Example response

{
  "id": 515,
  "href": "/api/v2/entity_name/1"
}