Request

request

post

Initiate the delivery of a 2FA code to a recipient.

Authorizations
Body
tostringRequired

The destination number for the 2FA message.

Default: 447916123456
template_idstringRequired

The id of the template which is being sent to the recipient

Default: 11bf5b37-e0b8-42e0-8dcf-dc8c4aefc123
Responses
200

200

application/json
Responseone of
or
post
/v1.0/2fa/request
POST /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"
}