Verifying a Verification Code
Function
Verify a verification code.
URI
POST /koodrive/ose/verify/code/validate
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Traceid | No | String | Definition: Service trace ID, which contains 58 bits. Constraints: N/A Range: The value contains 58 bits. Default Value: N/A |
| x-hw-agentName | Yes | String | Definition: Agent name. Constraints: N/A Range: N/A Default Value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| requestId | Yes | String | Request ID. |
| code | Yes | String | Verification code. |
| codeType | Yes | String | Application scenario of the verification code. 1: registration. 2: login. 3: password resetting. 4: mobile number change. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| code | String | Error Codes |
| msg | String | Error description. |
| data | data object | Response to the request for verifying a verification code. |
Example Requests
POST /koodrive/ose/verify/code/validate
{
"requestId" : "1893584627570952064",
"code" : "4719",
"codeType" : "1"
} Example Responses
Status code: 200
Response to the request for verifying a verification code.
{
"data" : {
"verified" : true,
"token" : "8VKh3YgjNs+VJqbCqo/ouhqBJaLaK/5WLEQXOzdCU3o=",
"expireAt" : "2026-02-25T08:26:31.514"
},
"code" : 0,
"msg" : "Success"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Response to the request for verifying a verification code. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot