Go to account

OTP

Revoke OTP

Immediately invalidate an active one-time password. Use this when a user requests a new OTP, logs out, or you need to cancel an in-flight verification flow. A revoked OTP cannot be verified.

POST

/v1/otp/revoke

Authorization

Header

X-Emisri-Api-Key: your_secret_key

Required

yes

Request body

application/json

FieldTypeRequiredDescription
otpIdstringyesThe unique ID of the OTP to revoke. Returned in the response when the OTP was created via the Request OTP endpoint.

Response · 200 OK

application/json

FieldTypeRequiredDescription
successbooleantrue when the OTP was revoked successfully.
dataobjectThe response payload.
metaobjectRequest metadata.