Verify User
Validate an action (like account activation or email update) by providing the 6-digit OTP sent to the user’s email.
Endpoint
Section titled “Endpoint”POST
/user/v1/verifyRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/user/v1/verify \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"one_time_password": "123456","scope": 1}'{"one_time_password": "123456","scope": 1}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
one_time_password | Must be a 6-digit numeric string. |
scope | 1: Activation, 2: Password Reset, 3: Email Verification. |
Response Body
Section titled “Response Body”{"status": {"type": "SUCCESS","details": []}}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |