TextPro Docs

Verify OTP

Validate end-user OTP codes.

POST /api/verify/otp

Verify an OTP

POST /api/verify/otp validates submitted codes.

Request

POST
/api/verify/otp
curl -X POST https://textpro.co.uk/api/verify/otp \
  -H "X-API-KEY: tp_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"to":"+447000000000","code":"123456"}'

Response

200
OK
{
  "success": true
}