Get SMS Template
This API is to get SMS Templates.
Parameters for getting SMS Template
Headers Parameters
Parameters | Description |
---|---|
Authorization | Please add provided Bearer token - linked to your Cellcast account. Check here |
Content-Type | application/json |
Code Samples
GET https://api.cellcast.com/api/v1/template
bash
curl --location 'https://api.cellcast.com/api/v1/template' \
--header 'Content-Type: application/json' \
--header 'authorization: Bearer {{API_KEY}}' \
Replace with the actual API key that you own.
Responses
200 Success
json
{
"app_type": "web",
"app_version": "1.0",
"maintainence": 0,
"new_version": 0,
"force_update": 0,
"invalid_token": 0,
"refresh_token": "",
"show_message": 0,
"is_enc": false,
"status": true,
"message": "success",
"message_type": "toast",
"data": {
"items": [
{
"allowShortenUrl": false,
"_id": "66bda1166b9668f900000000",
"type": "MMS",
"name": "MMS - Template",
"subjectTitle": "New Subtitle",
"createdAt": "2024-08-15T06:32:54.447Z",
"message": "HI , lets keep our earth",
"qr_code": "",
"gif": "",
"mediaType": "image/jpeg",
"user": "660514979aa8c33000000000",
"createdBy": "660514979aa8c33000000000",
"media": "https://cellcast-mms-dev.s3.ap-southeast-2.amazonaws.com/go-green.jpg",
"longUrl": [],
"updatedAt": "2024-08-15T06:32:54.447Z",
"__v": 0
},
{
"allowShortenUrl": false,
"_id": "66bda02b6b9668f900000000",
"createdAt": "2024-08-15T06:28:59.622Z",
"type": "SMS",
"name": "Template 2",
"subjectTitle": "",
"qr_code": "",
"gif": "",
"mediaType": "",
"message": "Hi {{[First Name]}}, wake up",
"longUrl": [
""
],
"media": "",
"user": "660514979aa8c33000000000",
"createdBy": "660514979aa8c33000000000",
"updatedAt": "2024-08-15T07:36:56.545Z",
"__v": 0
}
}
}
Get SMS Template ID from menu Message Templates
Go to menu Templates and choose sub menu Message Templates
You will be able to see and copy the Template ID