logo
AuthResolve the current access session

Resolve the current access session

curl -X GET "https://mail.haltman.io/api/auth/session" \
  -H "Content-Type: application/json"
{
  "ok": true,
  "authenticated": true,
  "user": {
    "id": 123,
    "username": "John Doe",
    "email": "user@example.com",
    "email_verified_at": "2024-12-25T10:00:00Z",
    "is_active": 42,
    "is_admin": true,
    "created_at": "2024-12-25T10:00:00Z",
    "updated_at": "2024-12-25T10:00:00Z",
    "last_login_at": "2024-12-25T10:00:00Z"
  },
  "session": {
    "session_family_id": "example_string",
    "access_expires_at": "2024-12-25T10:00:00Z",
    "refresh_expires_at": "2024-12-25T10:00:00Z"
  }
}
GET
/api/auth/session
GET
API Key (cookie: __Host-access)
__Host-accessstring
Required

Access-session cookie used for user and admin authentication.

Access-session cookie used for user and admin authentication.
Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Access-session cookie used for user and admin authentication.

Responses

okboolean
Required
authenticatedboolean
Required
userobject
Required
sessionobject
Required