Signin
Authenticate a user
Request
Definition
POST /api/v1/signin
Headers
-
Content-Typerequiredapplication/json
Request body
{
"password": "password",
"username": "username"
}
Response
Status codes
| Status code | Message |
|---|---|
| 200 | "You are successfully logged in" |
| 401 | "Invalid username or password" |
Response body
- Attributes
- Example
-
data.tokenstringAuthentication token.
-
data.user.idstringUser ID.
-
data.user.usernamestringUsername.
-
data.user.first_namestringUser's first name.
-
data.user.last_namestringUser's last name.
-
data.user.auth_typestringAuthentication type used by user.
-
data.user.is_first_accessbooleanIndicates whether it is the user's first access.
-
data.user.is_disabledbooleanIndicates whether the user is disabled.
-
data.user.password_updated_atstringDate of the last password update.
-
data.user.attrs_updated_atstringDate of last attributes update.
-
data.user.emailstringUser's email.
-
data.user.groupsarray<object>List of Groups which the user belongs to.
-
data.user.inserted_atstringDate of the user insertion.
{
"data": {
"token": "3IA-gbhGfw-MX3_JyHcCgMpmDHZwv1Tc43fwdbguUPM",
"user": {
"access_limits": null,
"attrs_updated_at": "2024-01-17T13:11:22Z",
"auth_type": "basic",
"email": "user@seerbox",
"first_name": null,
"id": "64b16bad-cc5c-4654-bdcf-cc36fdd6a160",
"inserted_at": "2024-01-17T13:11:22Z",
"is_first_access": true,
"last_name": null,
"password_updated_at": "2024-01-17T13:11:22Z",
"permissions": [],
"username": "username"
}
},
"message": "You are successfully logged in",
"status": "ok"
}