After registration a verification email will be send to the user containing a url. This url contains a hash and user's uuid. Provide these tweo in the POST-request below from your application to verify the corresponding account.
Method | Uri | Auth | Permissions |
---|---|---|---|
POST |
/v1/auth/email/verify/{hash}/{id} |
None | none |
The API requires a header Accept
to be submitted with the request:
{
"Accept": "application/json"
}
Condition : All required data provided is valid and added to the request body.
Code : 201 Created
Content example : Response will reflect back the created message':
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M...",
"token_type": "bearer",
"expires_in": 3600
}
Condition : If provided data is invalid or not added to the request body.
Code : 422 Unprocessable Entity
Content example :
{
"message": "The given data was invalid.",
"errors": {
"email": [
"The email has already been taken."
]
}
}