TEMPLATES
A Template is a pre defined message format which can be called over and over again, without requiring to rewrite again.
CREATE TEMPLATE
This endpoint allows you to create a template
POST
https://sandbox-api-d.squadco.com/sms/template
Request Body
name*
String
Name of the template
description*
String
Description of template
message*
String
Message format to be sent
Sample Request
GET TEMPLATES
This endpoint allows you to retrieve created templates
GET
https://sandbox-api-d.squadco.com/sms/template
perPage
Integer
number of templates to view per page
page
Integer
number of pages to view
sort_by
String
Sorted by creation date
dir
String
DSC/ASC
date_from
date
beginning date
date_to
date
ending
EDIT CREATED TEMPLATES
This endpoint allows you to edit the body of a template.
PATCH
https://sandbox-api-d.squadco.com/sms/template/:id
Sample Request
DELETE CREATED TEMPLATE
This endpoint allows you to delete a template
DELETE
https://sandbox-api-d.squadco.com/sms/template/{{:id}}
Sample Response
Last updated
Was this helpful?