Skip to main content

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

NameInTypeRequiredDescription
validation_codebodystringtruefound in the email generated by Create an account endpoint

Example Request

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);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRestrictionsDescription
tokenTokennoneToken fields

Example responses

{
"token": {
"access_token": "string",
"expires_in": "integer",
"token_type": "string",
"refresh_token": "string",
"client_id": "string",
"scope": "string"
}
}