Footprints (Alpha)
Create Footprint
Create a Footprint object.
This endpoint requires the following mandatory parameters:
- consent
- templateId
In addition, you must provide either emailAddress or mobileNumber — these two are mutually exclusive.
Supported Templates
| Template ID | Input Type | Required Parameters |
|---|---|---|
| tpl-ftp005001 | Email address | consent, templateId, emailAddress |
| tpl-ftp005002 | Mobile number | consent, templateId, mobileNumber |
Field Rules
- For tpl-ftp005001, emailAddress must be provided and mobileNumber must be omitted.
- For tpl-ftp005002, mobileNumber must be provided and emailAddress must be omitted.
- emailAddress and mobileNumber cannot be used together in the same request.
Sandbox Test Values
| Template ID | Test Input | Expected Response |
|---|---|---|
| tpl-ftp005001 | emailAddress = gpalomero1234@smileapi.io | resultCode = SUCCESS |
| tpl-ftp005002 | mobileNumber = 639559991234 | 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/alpha/footprints
Request body
Example request
{
"emailAddress": "some@email.com",
"mobileNumber": "639178902345",
"templateId": "footprintTpl-xxxxxxxxxxxxxxx",
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions",
"consentTemplateId": "ct-4604588d9502491b4c72a67cdb0a2aea"
}
}Response
OK
Example response
{
"code": "OK",
"message": "Success",
"requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
"data": {
"createdAt": "2021-04-14T09:30:24Z",
"requestMeta": {
"emailAddress": "some@email.com",
"mobileNumber": "639178902345",
"templateId": "footprintTpl-xxxxxxxxxxxxxxx",
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions",
"consentTemplateId": "ct-4604588d9502491b4c72a67cdb0a2aea"
}
}
}
}