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
Type
Description

name*

String

Name of the template

description*

String

Description of template

message*

String

Message format to be sent

Sample Request

{
    "name": "First template",
    "description": "Used for new user onboarding",
    "message": "Welcome to our platform!"
}
{
    "status": 200,
    "success": true,
    "message": "Success",
    "data": {
        "uuid": "5b9840d0-2382-4289-a4da-d7ecf3270d98",
        "merchant_id": "AABBCCDDEEFFGGHHJJKK",
        "name": "First template",
        "description": "Used for new user onboarding",
        "pages": 1,
        "message": "Welcome to our platform!",
        "createdAt": "2025-05-22T10:08:03.733Z",
        "updatedAt": "2025-05-22T10:08:03.733Z"
    }
}

GET TEMPLATES

This endpoint allows you to retrieve created templates

GET https://sandbox-api-d.squadco.com/sms/template

Query Params
Type
Description

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

id is a String

Sample Request

DELETE CREATED TEMPLATE

This endpoint allows you to delete a template

DELETE https://sandbox-api-d.squadco.com/sms/template/{{:id}}

id is a String

Sample Response

Last updated

Was this helpful?