Me

Returns details about the token used in the request and the panel user it belongs to. Useful for validating a token, checking what scopes it carries, or displaying the logged-in user in a client app.

No scope required. Any valid token can call this endpoint.

Request

GET /api/v1/me

No parameters.

Response

{
    "data": {
        "token": {
            "name": "CI Pipeline",
            "prefix": "nxp_a1b2c3d4e5f6",
            "scopes": ["read:websites", "read:services"],
            "last_used_at": "2026-10-17T10:00:00Z",
            "expires_at": null,
            "created_at": "2026-10-01T09:00:00Z"
        },
        "user": {
            "id": 1,
            "username": "admin",
            "full_name": "Admin User",
            "email": "admin@example.com",
            "role": "admin"
        }
    }
}

Token object

Field Type Description
name string Token name set at creation
prefix string First 16 characters of the token
scopes array of strings Scopes the token carries
last_used_at string (RFC 3339) or null When the token was last used, or null if never used
expires_at string (RFC 3339) or null Expiry timestamp, or null if the token never expires
created_at string (RFC 3339) When the token was created

User object

Field Type Description
id integer User ID
username string Login name
full_name string Display name
email string Email address
role string admin or user

Example

curl -H "Authorization: Bearer $TOKEN" \
  https://panel.example.com/api/v1/me
Last updated: October 18, 2026