get https://messaging-api.veripin.net/v1.0/2fa/template
Introduction
The /template API provides the templates for the request endpoint. Fetch the available templates and use the id as the template_id.
An example response from/template is:
{
"data": [
{
"id": "065efefb-650d-4e38-9927-431db8c6ec30",
"name": "otp_simple",
"from": "YourCompany",
"text": "Your 2FA verification code is ${code}",
"ttl": 300
},
{
"id": "20891401-e79d-4061-8a3b-10342ef51c65",
"name": "otp_advanced",
"from": "YourCompany",
"text": "Hello ${firstName} ${lastName}. Please enter ${code} as your one-time pin.",
"ttl": 60
}
]
}Where:
idis the unique template idnameis the unique template namefromis the sender name which is going to be used to deliver the 2FA code to the recipienttextis the content which is going to be delivered to the recipient- Interpolates variables which should be sent as
parametersobject via request endpoint
- Interpolates variables which should be sent as
ttlis the time to live, in seconds (default: 300, maximum: 600)- if the recipient doesn't enter the 2FA code within the defined
ttlit will expire and result with validate returning HTTP STATUS 404
- if the recipient doesn't enter the 2FA code within the defined
