sessionId for validation.
A successful verification marks the session as used and prevents any further attempts.
Endpoint
Method:POSTPath:
/v1/messaging/otp/verify
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | The UUID returned from the /request endpoint. |
code | string | Yes | The 6-digit code provided by the user. |
Implementation Example
Possible Responses
VERIFIEDINVALIDEXPIREDLOCKED
Security Considerations
- Always use HTTPS.
- OTP sessions are single-use.
- Do not store
sessionIdbeyond its lifecycle. - Implement backend attempt throttling.
- Avoid exposing detailed failure reasons to end users.