Need help?
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
| Field | Type | Required | Description |
|---|---|---|---|
| otpId | string | yes | The 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
| Field | Type | Required | Description |
|---|---|---|---|
| success | boolean | — | true when the OTP was revoked successfully. |
| data | object | — | The response payload. |
| meta | object | — | Request metadata. |