Me
Location
| Attribute | Value |
|---|---|
| URL | /Credentials/Me |
| Method | GET |
Cookies
Optional PHPSESSID cookie.
Request header
| Heaader name | Value |
|---|---|
| Accept | application/json |
Request body
No request body is necessary
Response
| Code | Message |
|---|---|
| 200 | - |
| 401 | UNAUTHORIZED |
Body:
Contains a CSRF token and logged in user data. If the user is not logged in, an Unauthorzed exception is thrown.
Success example
{
"csrf_token": "d2cf396a69c9efa0d47f0336372a02fc4f34a71e394bbb6b1feacd3df690c7ac",
"user": {
"id": 1,
"first_name": "Admin",
"last_name": "Adminson",
"email": "admin1@hacardo.com",
"type": 2
}
}