Phone Verification
Fetch Verification

Get OTP Details

If you did not provide a webhook for your verification request, or you need to immediately check the status of your request, you may use this endpoint to fetch the verification by its id.


GET https://api.zamry.com/v1/otp/{id} (opens in a new tab)

Query Params

ParametertypeRequiredDescription
idstringtrueThe id of the verification you want to fetch

Request

Get otp details [GET]
curl --location 'https://api.zamry.com/v1/otp/e0f5d430-22bb-439b-bf00-96aa9aea337b' \
--header 'Authorization: Bearer {{ auth-key}}'
'

Responses

🟢 200 - Result example
{
  "status": true,
  "message": "otp fetched successfully",
  "data": {
      "id": "cecf04d6-f60b-4aa9-9348-352fc3d791df",
      "createdAt": "2024-07-17T13:11:05.129Z",
      "updatedAt": "2024-07-17T13:11:05.129Z",
      "otp": "buhari sun I am tree",
      "phoneNumber": "+233249024564",
      "country": "+233",
      "countryCode": "+233",
      "counter": 0,
      "pairedNumber": "053690457",
      "type": "SMS",
      "status": "PENDING",
      "webhookUrl": "https://webhook.site/a7724520-f45b-4ac6-b57c-1003d2fb4462"
  }
}