Reference

/api/auth

Retrieve info about the logged in user

GET: /api/auth

Query parameters

Parameter Example Description
pretty ?pretty=true Pretty prints the result. Only useful for debugging.
select ?select=name,permissions Defines the fields that will be returned for the role.

Example response

GET: /api/auth
{
    "code": 200,
    "data": {
        "description": "The admin has all rights",
        "name": "admin",
        "title": "Admin"
    },
    "status": "ok",
    "type": "model"
}