Skip to content
API reference

Message templates

Reusable messages.

GET/message-templates

List message templates

Needs the permission templates:read.

ParameterInTypeNotes
channelqueryone of email, whatsapp, sms
curl -X GET https://crm.anibrosdesign.com/api/v1/message-templates \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 403 429

POST/message-templates

Create a message template

Needs the permission templates:manage.

Body fieldTypeNotes
name requiredstringat least 1 characters. up to 80 characters
channelone of any, email, whatsapp, sms
subjectstring or null
body requiredstringat least 1 characters. up to 4000 characters
curl -X POST https://crm.anibrosdesign.com/api/v1/message-templates \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"name":"text","channel":"any","subject":"text","body":"text"}'

Responses: 201 400 401 402 403 429

POST/message-templates/starters

Starters (message templates)

Needs the permission templates:manage.

curl -X POST https://crm.anibrosdesign.com/api/v1/message-templates/starters \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 402 403 429

PATCH/message-templates/{id}

Change a message template

Needs the permission templates:manage.

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
namestringat least 1 characters. up to 80 characters
channelone of any, email, whatsapp, sms
subjectstring or null
bodystringat least 1 characters. up to 4000 characters
curl -X PATCH https://crm.anibrosdesign.com/api/v1/message-templates/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"name":"text","channel":"any","subject":"text"}'

Responses: 200 400 401 402 403 404 412 429

DELETE/message-templates/{id}

Delete a message template

Needs the permission templates:manage.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X DELETE https://crm.anibrosdesign.com/api/v1/message-templates/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 204 400 401 402 403 404 429

Something missing or unclear? Tell us.

Chat on WhatsApp