Authorization API
User
Field name | Type | Description |
---|---|---|
id | number* | The unique ID of the user |
username | RoleEnum* | |
email | string* | Email of the user to whom the account is registered. |
role | string* | The role of the user reflects the level of access to change the content. |
is_active | boolean* | Flag indicating whether the user has confirmed his email |
User details
{
"username": "string",
"email": "user@example.com",
"id": number,
"is_active": boolean,
"role": "admin" | "moderator" | "viewer"
}
Authorizatrion response
Field name | Type | Description |
---|---|---|
user | User* | The unique ID of the user |
access_token | string* | A unique access token issued to the user |
refresh_token | string* | Email of the user to whom the account is registered. |
User details
{
"access_token": "string",
"refresh_token": "string",
"user": {
"username": "string",
"email": "user@example.com",
"id": number,
"is_active": boolean,
"role": "admin" | "moderator" | "viewer"
}
}