Footprints (Beta)
Create a Phone Social Footprint object
Changed onCreate a Phone Social Footprint object.
This endpoint requires the following mandatory parameters:
- consent
- templateId
Additional required fields depend on the selected templateId.
Supported Templates
| Template ID | Input Type | Required Parameters |
|---|---|---|
| tpl-footprint-phonesocial | Mobile number only | consent, templateId, mobileNumber, countryCode |
Field Rules
- mobileNumber must be provided, must start with the country code, and must not contain a leading 0 or a +.
- countryCode is required and must be a valid ISO country code.
- footprintItemsTimeout is optional, in seconds, between 1 and 30.
Sandbox Test Values
| Template ID | Test Input | Expected Response |
|---|---|---|
| tpl-footprint-phonesocial | mobileNumber = 639559991234, countryCode = PH | resultCode = SUCCESS |
For all other valid input combinations, if no mock data is matched, the response will return:
resultCode = NO_DATA, and no items will be included.
post/beta/footprints/requestPhoneSocial
Request
- Base URLhttps://sandbox.smileapi.io/v1
- URLhttps://sandbox.smileapi.io/v1/beta/footprints/requestPhoneSocial
- AuthHTTP basic
Request body
Example request
{
"mobileNumber": "639559991234",
"countryCode": "PH",
"templateId": "tpl-footprint-phonesocial",
"footprintItemsTimeout": 10,
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}Response
OK
Example response
{
"code": "OK",
"message": "Success",
"requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
"data": {
"createdAt": "2021-04-14T09:30:24Z",
"requestMeta": {
"emailAddress": "gpalomero1234@smileapi.io",
"countryCode": "PH",
"templateId": "tpl-footprint-emailprofile",
"footprintItemsTimeout": 10,
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}
}
}Changes
- info
endpoint added
- info