---
title: "Get a list of private messages for a user"
method: GET
path: "/topics/private-messages/{username}.json"
tags: ["Private Messages"]
---

# Get a list of private messages for a user

`GET /topics/private-messages/{username}.json`

## Path parameters

- `username` string, required

## Response `200`

private messages

- object
  - `users` object[]
    - `id` integer
    - `username` string
    - `name` string
    - `avatar_template` string
  - `primary_groups` unknown[]
    - unknown
  - `topic_list` object
    - `can_create_topic` boolean
    - `draft` string, nullable
    - `draft_key` string
    - `draft_sequence` integer
    - `per_page` integer
    - `topics` object[]
      - `id` integer
      - `title` string
      - `fancy_title` string
      - `slug` string
      - `posts_count` integer
      - `reply_count` integer
      - `highest_post_number` integer
      - `image_url` string, nullable
      - `created_at` string
      - `last_posted_at` string
      - `bumped` boolean
      - `bumped_at` string
      - `archetype` string
      - `unseen` boolean
      - `last_read_post_number` integer
      - `unread_posts` integer
      - `pinned` boolean
      - `unpinned` string, nullable
      - `visible` boolean
      - `closed` boolean
      - `archived` boolean
      - `notification_level` integer
      - `bookmarked` boolean
      - `liked` boolean
      - `views` integer
      - `like_count` integer
      - `has_summary` boolean
      - `last_poster_username` string
      - `category_id` string, nullable
      - `pinned_globally` boolean
      - `featured_link` string, nullable
      - `allowed_user_count` integer
      - `posters` object[]
        - `extras` string
        - `description` string
        - `user_id` integer
        - `primary_group_id` integer, nullable
      - `participants` object[]
        - `extras` string
        - `description` string, nullable
        - `user_id` integer
        - `primary_group_id` integer, nullable

---

[API](https://skmtc.net/discourse/apis/discourse-api-documentation.md) · [All operations](https://skmtc.net/discourse/apis/discourse-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/discourse/discourse-api-documentation/versions/fb966f5bb63e/schema)
