OTP

Resend OTP

Send the open code again.

A new code on each channel of the number's open request, which keeps its otp_id, expiry and attempts. 30 seconds apart per channel.

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

Request Body

application/json
  1. body
identifier?string
otp_id?string
Formatuuid
purpose?string
channels?array<>
Itemsitems <= 2
curl -X POST 'https://v3.ghala.io/v1/otp/resend' \  -H 'Content-Type: application/json' \  -d '{}'
{  "otp_id": "54bb07c0-6b6d-4331-9eba-71e1c890eb14",  "expires_at": "2019-08-24T14:15:22Z",  "channels": [    {      "channel": "whatsapp",      "status": "queued",      "code": "string",      "reason": "string"    }  ]}