---
title: "TopicsPrivateMessagesByUsername (Discourse)"
description: "Private Messages by Username"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/discourse/Discourse.PrivateMessages.TopicsPrivateMessagesByUsername
original: https://documentation.invantive.eu/en/datamodels/discourse/Discourse.PrivateMessages.TopicsPrivateMessagesByUsername
updated: 2026-11-01T16:08:49Z
license: https://documentation.invantive.eu/en/
---

# TopicsPrivateMessagesByUsername: Discourse Private Messages by Username

`read only` `REST`

- Catalog: `Discourse`
- Schema: `PrivateMessages`
- Label: Private Messages by Username

Get a list of private messages for a user

Can only retrieve data.

## Summary

Get a list of private messages for a user

## API Source

- Endpoint: `/topics/private-messages/{username}.json`
- Operation: `get /topics/private-messages/{username}.json`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 243 |
| Write rows per minute | 219 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `username` | `` | [x] |  |  |

## Table Columns

The columns of the table `TopicsPrivateMessagesByUsername` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `can_create_topic` | `char` | Can Create Topic | [ ] | filters on the platform, writable, `can_create_topic` |  |
| `draft_key` | `varchar2` | Draft Key | [ ] | filters on the platform, writable, `draft_key` |  |
| `draft_sequence` | `decimal` | Draft Sequence | [ ] | filters on the platform, writable, `draft_sequence` |  |
| `per_page` | `decimal` | Per Page | [ ] | filters on the platform, writable, `per_page` |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Discourse](/en/release-notes/drivers?driver=discourse)

### Changes of This Table, 26.0 to 27.0

<a id="DCE-27.0-D337"></a><a id="DCE-27.0-D338"></a><a id="DCE-27.0-D339"></a><a id="DCE-27.0-D340"></a><a id="DCE-27.0-D1538"></a><a id="DCE-27.0-D1539"></a><a id="DCE-27.0-D1540"></a><a id="DCE-27.0-D1541"></a><a id="DCE-27.0-D1542"></a>

- `-` `can_create_topic`
- `-` `draft_key`
- `-` `draft_sequence`
- `-` `per_page`
- `+` `topic_list_can_create_topic` (`char`)
- `+` `topic_list_draft` (`varchar2`)
- `+` `topic_list_draft_key` (`varchar2`)
- `+` `topic_list_draft_sequence` (`int64`)
- `+` `topic_list_per_page` (`int64`)

[All changes of the driver, 26.0 to 27.0](/en/release-notes/drivers?driver=discourse&step=26.0-to-27.0#discourse-26.0-to-27.0)

