Responses

  • 200 application/json

    Logged-in user response

    Hide response attributes Show response attributes object
    • error boolean
    • timestamp string(date-time)
    • uniqueId string | null
    • message object
      Hide message attributes Show message attributes object
      • id integer
      • username string
      • email string(email)
      • role string

        Values are OWNER, ADMIN, USER, or TESTER.

      • apiKey object
        Hide apiKey attributes Show apiKey attributes object
        • id integer
        • keyCode string
        • maxUploadSize integer

          Default value is -1.

      • avatar string | null
      • invitedBy object
        Hide invitedBy attributes Show invitedBy attributes object
        • uid integer
        • username string
        • role string

          Values are OWNER, ADMIN, USER, or TESTER.

        • avatar string | null
        • createdAt string(date-time)
      • createdAt string(date-time)
  • 401 application/json

    Unauthorized or invalid API key/cookie

    Hide response attributes Show response attributes object
    • error boolean
    • timestamp string(date-time)
    • uniqueId string | null
GET /auth/me
curl \
 --request GET 'https://call.xap3y.space/v1/auth/me' \
 --cookie "session_token=$API_KEY"
Response examples (200)
{
  "error": true,
  "timestamp": "2025-05-04T09:42:00Z",
  "uniqueId": "string",
  "message": {
    "id": 42,
    "username": "string",
    "email": "hello@example.com",
    "role": "OWNER",
    "apiKey": {
      "id": 42,
      "keyCode": "string",
      "maxUploadSize": -1
    },
    "avatar": "string",
    "invitedBy": {
      "uid": 42,
      "username": "string",
      "role": "OWNER",
      "avatar": "string",
      "createdAt": "2025-05-04T09:42:00Z"
    },
    "createdAt": "2025-05-04T09:42:00Z"
  }
}
Response examples (401)
{
  "error": true,
  "timestamp": "2025-05-04T09:42:00Z",
  "uniqueId": "string"
}