Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
48 lines (32 loc) · 690 Bytes

get-user-mini.md

File metadata and controls

48 lines (32 loc) · 690 Bytes

GET /api/users/:userId?/mini

Description

Get your profile or another user's mini profile.

Request

Parameters

  • userId: ID of the user to get. (optional - included in path)

Body

None

Headers

  • cookie: token=... (required if userId is not included in path)

Response

{
  "success": true,
  "message": "User found",
  "data": {
    "id": "number",
    "avatar": "string",
    "name": "string",
    "createdAt": "timestamp"
  }
}

Response Codes

Example:

Code Description
200 Success
404 Not Found.
500 Internal Server Error.

Cookies

None