API Reference

Learn how to access UNLOQ end points

POST /sms/approvals

Create an approval

POST https://api-authenticator.iwelcome.com/v1/sms/approvals
Headers:
   Authorization: Bearer {your application API Key}
   Content-Type: application/json
Body parameters
  • id (string, required) - The approval id.
  • template (string, optional) - The template to be used. If not provided, the default one will be used.
  • lang (string, optional) - The language of the template message. If not provided, the default one will be used.
  • ip (ip) - The IP address of
  • user_agent -
  • phone_number (international format phone number, required). The receiving number of the sms token.
  • app (string, optional) -
  • { "templatex": "asdad", "lang": "ro", "ip": "5.2.192.253", "user_agent": "Mozilla 22.33", "phone_number": "+40747048798", "app": "mobile" }
Result format (200 OK)
{
  "type": "api.application.approval.sms",
  "result": {
    "id": "5e79571b-ab99-458a-9445-1119b506f113-VPp3rbVO",
    "status": "NEW",
    "ip": "5.2.192.253",
    "user_agent": "Mozilla 22.33",
    "country": "RO",
    "region": "13",
    "expire_at": "2018-01-18T13:43:03.048Z",
    "created_at": "2018-01-18T13:42:03.000Z",
    "template_id": "0994c058cb6d4627b0776915R9JgnHg3",
    "template_message_id": "f4ef3d67e7dc4bb0a40baf3cxZHALBOA",
    "provider": {
      "id": "994e1506d0af44c3855efb7fUQyJFofi",
      "type": "TWILIO"
    }
  }
}
      

Have a question? You can always send us an email at support@unloq.io, or contact us on chat.

For security related concerns, please visit our Security page.