---
title: "Fetches information about a specific user."
method: POST
path: "/fetchUserInfo"
---

# Fetches information about a specific user.

`POST /fetchUserInfo`

This function retrieves detailed information about a user based on their user ID. It returns a Promise that resolves to a user object containing data such as username, avatar, and discriminator. The function is part of a Discord SDK and is useful for obtaining user-specific information in Discord-related applications.

## Request body

- object
  - `body` object — Body of the fetchUserInfo sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/discord

## Response `200`

Successful response

- object
  - `id` string, required — The user's ID
  - `username` string, required — The user's username
  - `avatar` string — The user's avatar URL
  - `discriminator` string — The user's discriminator

## Other responses

- `400` — Bad request - Invalid user ID provided
- `404` — User not found
- `500` — Internal server error

## Changes

- **2025-05-29** `2deb154b9766` — 2 warning, 7 info
  - removed the optional property `data` from the response with the `200` status
  - removed the optional property `success` from the response with the `200` status
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `500`
  - …5 more
- **2025-05-28** `d03e8c66c195` — 4 breaking, 2 warning, 3 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `500`
  - removed the required property `id` from the response with the `200` status
  - removed the required property `username` from the response with the `200` status
  - …5 more

[Change history](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/changes/fetchUserInfo/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/microfox-discord-sdk-api/revisions/7cb5b64ae924/schema)
