---
title: "GET /api/users/{user_id}/messages/"
method: GET
path: "/api/users/{user_id}/messages/"
tags: ["api"]
---

# GET /api/users/{user_id}/messages/

`GET /api/users/{user_id}/messages/`

## Path parameters

- `user_id` string, required

## Response `200`

- PartialMessage[]
  - `id` string, required — A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
  - `channel_id` string, required
  - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 255, required
  - `content` string, required
  - `author` PartialUser, required
    - `id` string, required — A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
    - `username` string, required
    - `discriminator` string, required
    - `global_name` string, nullable
    - `avatar` string, nullable, required
    - `avatar_decoration_data` AvatarDecorationData
      - `asset` string, required
      - `sku_id` string, required — A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
      - `expires_at` string, nullable, required
    - `collectibles` Collectibles
      - `nameplate` NameplateData, required
        - `asset` string, required
        - `sku_id` string, required — A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z ``` If we have a snowflake '266241948824764416' we can represent it as binary: 64 22 17 12 0 000000111011000111100001101001000101000000 00001 00000 000000000000 number of ms since Discord epoch worker pid increment ```
        - `label` string, required
        - `palette` string, required
        - `expires_at` integer, nullable, required
    - `display_name_styles` DisplayNameStyle
      - `font_id` integer, required
      - `effect_id` integer, required
      - `colors` integer[], required
    - `primary_guild` PrimaryGuild
      - `identity_enabled` boolean, nullable, required
      - `identity_guild_id` string, nullable, required
      - `tag` string, nullable, required
      - `badge` string, nullable, required
    - `bot` boolean
    - `system` boolean
    - `banner` string, nullable
    - `accent_color` integer, nullable
    - `public_flags` integer
  - `flags` integer
  - `application_id` string

## Other responses

- `400`

---

[API](https://skmtc.net/spacebarchat/apis/spacebar-server.md) · [All operations](https://skmtc.net/spacebarchat/apis/spacebar-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spacebarchat/spacebar-server/versions/034b4e879932/schema)
