Request
Initiate the delivery of a 2FA code to a recipient.
Authorizations
Body
tostringRequiredDefault:
The destination number for the 2FA message.
447916123456
template_idstringRequiredDefault:
The id of the template which is being sent to the recipient
11bf5b37-e0b8-42e0-8dcf-dc8c4aefc123
Responses
200
200
application/json
Responseone of
or
400
400
application/json
401
401
application/json
429
429
application/json
500
500
application/json
post
/v1.0/2fa/requestPOST /v1.0/2fa/request HTTP/1.1
Host: messaging-api.bind.hr
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"to": "447916123456",
"template_id": "11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000",
"parameters": {
"firstName": "John",
"lastName": "Doe"
}
}
{
"status": "ACCEPTED",
"request_id": "a122dc95-ce76-40ab-b596-a4bca4d43936",
"error_message": "OK"
}