> For the complete documentation index, see [llms.txt](https://zaptoinc.gitbook.io/discord-lu-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zaptoinc.gitbook.io/discord-lu-api/master.md).

# Get User Object

## Get User Object

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

This endpoint gives the info of a user from Discord.\
A token is not required but it's recommended (not providing a token will use the "public" tokens, so it can be ratelimited.)

#### Path Parameters

| Name | Type   | Description                                |
| ---- | ------ | ------------------------------------------ |
| id   | string | ID of the cake to get, for free of course. |

#### Query Parameters

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

{% tabs %}
{% tab title="200 Returns a discord user object" %}

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

{% endtab %}

{% tab title="500 Return a 500: Internal Server Error if the request failed 5 times" %}

```
Failed.
```

{% endtab %}
{% endtabs %}
