Verify an account
Using this endpoint the user will be able to verify his email and after that he will be logged in (and the token will be returned).
info
This operation does not require authentication.
HTTP Request
POST /api/v2/account/verify/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
validation_code | body | string | true | found in the email generated by Create an account endpoint |
Example Request
- JavaScript
- Bash
const inputBody = '{
"validation_code": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/api/v2/account/verify/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X POST /api/v2/account/verify/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
-d '{
"validation_code": "string"
}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Inline |
Response Schema
Status Code 200
Name | Type | Restrictions | Description |
---|---|---|---|
token | Token | none | Token fields |
Example responses
- 200
{
"token": {
"access_token": "string",
"expires_in": "integer",
"token_type": "string",
"refresh_token": "string",
"client_id": "string",
"scope": "string"
}
}