Appearance
Verify register code
About 179 wordsLess than 1 minute
apiUsersRegister
2025-05-19
MethodPOST
Request URL
/plugin/datafor-auth/api/user/verifyRegisterCodeAuthorization
Authentication is not required to use this API.
Content Typeapplication/x-www-form-urlencoded
Description
This API verifies whether a given registration code is valid for the provided email address. The registration code is typically sent to the user's email during the signup process.
Request Example
{
"email": "a@a.com",
"code": "037173"
}Request Schema
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
email | body | string | Yes | The email address used for registration. |
code | body | string | Yes | The registration verification code sent to the email. |
Response Examples
Successful Response (HTTP 200)
{
"success": true
}Failure Response (HTTP 200)
{
"msg": "Email already existed",
"code": 409,
"success": false
}HTTP Responses
| HTTP Status Code | Meaning | Description | Data Schema |
|---|---|---|---|
| 200 | OK | Request was successful | Inline |
Response Data Schema (HTTP 200)
| Name | Type | Required | Description |
|---|---|---|---|
msg | string | No | Response message (only present when the request fails). |
success | boolean | Yes | Indicates whether the verification was successful. |