OTP

Verify OTP

Check a code.

Succeeds once per request. A wrong, expired, used or unknown code all answer 422 invalid_code; 5 wrong codes end the request.

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
otp_id?string
Formatuuid
identifier?string
purpose?string
code*string
curl -X POST 'https://v3.ghala.io/v1/otp/verify' \  -H 'Content-Type: application/json' \  -d '{  "code": "string"}'
{  "otp_id": "54bb07c0-6b6d-4331-9eba-71e1c890eb14",  "verified": true,  "purpose": "string",  "identifier": "string",  "channel": "whatsapp",  "verified_at": "2019-08-24T14:15:22Z"}