---
title: "Get public user information"
method: GET
path: "/api/v1/users/{userId}"
tags: ["users"]
---

# Get public user information

`GET /api/v1/users/{userId}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/users/{userId}`
- Auth: HTTP bearer

Get public user information

## Path parameters

- `userId` string, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `discordId` string
    - `username` string
    - `nickname` string, nullable
    - `image` string, nullable
    - `farmName` string, nullable
    - `topRole` string, nullable
    - `roles` object[]
      - `id` string
      - `name` string
      - `color` string, nullable
      - `position` number
    - `color` string, nullable
    - `createdAt` string, nullable
    - `lastLogin` string, nullable
    - `fmHistory` object[], nullable
      - `status` string
      - `serverId` number
      - `farmName` string
      - `startDate` union
        - number
        - string
      - `endDate` union
        - number
        - string
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
