- The
sessionIdreturned from the OTP request - The OTP code received by the user
Endpoint
Authentication
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | OTP session identifier returned during OTP creation. |
code | string | Yes | OTP code received by the user. |
Example Request
Successful Verification
HTTP 200Response Fields
| Field | Type | Description |
|---|---|---|
sessionId | string | OTP session identifier. |
status | string | Verification status. |
verified | boolean | Indicates whether verification succeeded. |
message | string | Human-readable verification result. |
Verification Statuses
| Status | HTTP Status | Description |
|---|---|---|
APPROVED | 200 | OTP verified successfully. |
INVALID | 400 | Incorrect OTP code supplied. |
EXPIRED | 410 | OTP validity period has expired. |
MAX_ATTEMPTS_REACHED | 423 | Verification attempt limit exceeded. |
ALREADY_USED | 409 | OTP has already been successfully verified. |
NOT_FOUND | 404 | OTP session could not be found. |
Invalid OTP
HTTP 400Expired OTP
HTTP 410Maximum Attempts Reached
HTTP 423OTP Already Used
HTTP 409Session Not Found
HTTP 404Security Considerations
- Always use HTTPS.
- OTP sessions are single-use.
- Successfully verified OTPs cannot be reused.
- Verification attempts are limited.
- Expired OTPs must be re-requested.
- Store API credentials securely.
Workspace Isolation
OTP sessions are isolated by workspace. A workspace can only verify OTP sessions generated within that same workspace. Cross-workspace verification is not permitted.Related Resources
OTP Service Overview
Learn how the OTP service works.
Request OTP
Generate and deliver an OTP.