Signals (Beta)
Create Signal2
Create a Signal2 object.
This endpoint requires the following mandatory parameters:
consent, phone, countryCode, and templateId.
Supported Template
| Template ID | Region | Required Parameters |
|---|---|---|
| tpl-sgn002001 | IN (India), MX (Mexico), PH (Philippines), ID (Indonesia), CO (Colombia), TH (Thailand) | consent, templateId, countryCode, phone |
Field Guidelines
- phone must include the country code without leading '+' (e.g., 639559991234)
- MD5 encryption is supported using the format: MD5(countryCode + phone),
e.g., MD5(639559991234)
Sandbox Test Values
| Parameter | Value | Expected Response |
|---|---|---|
| templateId | tpl-sgn002001 | |
| countryCode | e.g., PH | |
| phone | 639559991234 | resultCode = SUCCESS |
For all other valid phone and countryCode combinations, the response will return:
resultCode = NO_DATA, and no items will be included.
You may also contact Smile to request additional specialized templateIds for other regions or business cases.
post/beta/signals/createSignal2
Request body
Example request
{
"phone": "639559991234",
"templateId": "tpl-sgn002001",
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
},
"countryCode": "PH"
}Response
OK
Example response
{
"code": "OK",
"message": "Success",
"requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
"data": {
"createdAt": "2021-04-14T09:30:24Z",
"requestMeta": {
"fullName": "John Doe",
"phone": "529559991234",
"curp": "DOEJ800101HDFXXX01",
"templateId": "tpl-sgn003002",
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}
}
}