Resend One Time Password (OTP)
API URL
URL used to send HTTP requests:
https://portal.bulkgate.com/api/1.0/otp/resend
POST /api/1.0/otp/resend HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
Cache-Control: no-cache
Parameters table
PARAMETER NAME | VALUE | MANDATORY | DEFAULT VALUE |
---|---|---|---|
application_id | Application ID | Yes | - |
application_token | Application token | Yes | - |
id | Id received by sending one time password | Yes | - |
Example of full request
POST /api/1.0/otp/resend HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "APPLICATION_ID",
"application_token": "APPLICATION_TOKEN",
"id": "opt-id"
}
Response to this command may be:
In case of success:
{
"data": {
"id": "otp-65cca8b4b6a6a2.24308291"
"nessage": {
"status": "accepted",
"message_id": "cascade-xjyjzh7thor3",
"part_id": [
"cascade-xjyjzh7thor3"
],
"number": "420777777777",
"channel": "whatsapp"
}
}
}
In case of error:
{
"type": "invalid_id_provided",
"code": 400,
"error": "Invalid id provided",
"detail": null
}
{
"type": "unknown_identity",
"code": 400,
"error": "Unknown identity",
"detail": null
}
{
"type": "invalid_input_parameters",
"code": 400,
"error": "Invalid input parameters",
"detail": null
}