Docs

Verify an OTP

POST https://api.telrioz.com/api/v1/otp/verify

Checks the code the person typed against the OTP you sent. A wrong, expired or used code still answers 200, with verified false and the reason. With a Gateway key, only that Gateway's OTPs verify: any other id answers 404 not_found.

Authentication

Send your key in the header Authorization: Bearer YOUR_API_KEY. See Authentication.

Request body (JSON)
NameTypeDescription
idrequiredstring

The id POST /otp returned, with a key of the same account (a Gateway key: of the same Gateway).

coderequiredstring

The digits the person received.

Limits

See Limits.

Responses