Documentation
Users

Get current user

Return the authenticated user profile.

GET
/api/users/@me

Authorization

bearer
AuthorizationBearer token

User session token. Obtained from POST /api/auth/login.

In: header

Response Body

application/json

application/json

curl -X GET "https://loading/api/users/@me"
{
  "data": {
    "id": 1,
    "username": "johndoe",
    "display": "John Doe",
    "bio": "Full-stack developer",
    "pronoun": "he/him",
    "server": "my-server.com",
    "tags": [],
    "thumbnail": "https://cdn.my-server.com/thumb.png",
    "banner": null,
    "links": [
      {
        "label": "GitHub",
        "value": "https://github.com/johndoe"
      }
    ],
    "relations": {
      "out": "follow",
      "in": null
    },
    "public": "MCow...==",
    "followers": 42,
    "following": 17,
    "presence": {
      "status": "online",
      "text": null
    },
    "alias": [
      {
        "key": "iid",
        "value": "1@my-server.com"
      }
    ],
    "email": "john@example.com",
    "email_verified": false,
    "created_at": 1680000000000,
    "home": null,
    "avatar": null,
    "twofa_enabled": false
  },
  "error": null,
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}