# Get User Object

## Get user Object

<mark style="color:blue;">`GET`</mark> `https://api.discord.wf/v1/users/:id`

This endpoint gives the public info of a user from Discord.\
A token is not required but it's recommended (not providing a token will uses the "public" tokens, so it can be ratelimited.)\
\
A user get cached for 12 hours, and get refreshed for the next request.

#### Path Parameters

| Name | Type    | Description               |
| ---- | ------- | ------------------------- |
| id   | integer | ID of the requested user. |

#### Query Parameters

| Name  | Type   | Description                                                |
| ----- | ------ | ---------------------------------------------------------- |
| token | string | Uses your own Discord bot token if the user is not cached. |

{% tabs %}
{% tab title="200 " %}

```
{
    "id":"181482416748232705",
    "username":"Zapto",
    "avatar":"a_1fe4a3209e9bdd3e2c452a2d79200999",
    "discriminator":"0001",
    "public_flags":131712
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
Failed.
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zaptoinc.gitbook.io/discord-archive/api-v1/users/get-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
