---
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

---

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