---
title: "Get DM conversation history"
method: GET
path: "/x/dm/{userId}/history"
tags: ["Users"]
---

# Get DM conversation history

`GET /x/dm/{userId}/history`

## Path parameters

- `userId` string, required

## Query parameters

- `account` string, required
- `cursor` string
- `maxId` string

## Response `200`

List of DM messages

- object
  - `messages` object[], required
    - `id` string, required
    - `text` string
    - `senderId` string, required
    - `receiverId` string, required
    - `createdAt` string
    - `mediaUrl` string — URL of attached media (image, GIF, or video). Omitted when the message has no media attachment.
  - `has_next_page` boolean, required
  - `next_cursor` string, required

## Other responses

- `400` — Invalid input. Either `invalid_user_id` (path user ID is empty or invalid) or `account_required` (the `account` query parameter was missing or empty).
- `401` — Unauthenticated
- `402` — Payment required. MPP reads return a problem document and `WWW-Authenticate`. Authenticated reads return balances and checkout actions. Guest keys receive only the guest top-up action. Other endpoints may use legacy errors. A failed request never creates checkout. Require user confirmation before creating one.
- `403` — DM read forbidden. Either the connected account is not a participant in this conversation (`dm_not_permitted`), the account is suspended, locked, or otherwise restricted (`account_restricted`), or the account session needs to be re-authenticated (`account_needs_reauth`).
- `404` — Connected X account not found for the authenticated user.
- `424` — Dependency unavailable, unauthorized, or rate limited. Default v1 returns 502. The best-practice response contract returns 424 for transparent dependency failures.
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.
- `502` — Dependency unavailable, unauthorized, or rate limited. Default v1 returns 502. The best-practice response contract returns 424 for transparent dependency failures.

## Changes

- **2026-08-12** `d8082b3892a2` — 96 warning
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …92 more
- **2026-08-11** `f6affe6e547e` — 4 info
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/subscription/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/GuestPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `payment_options/guest_wallet/create_checkout/provider` deprecated (media type: application/problem+json)
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/x/dm/:userId/history/get.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/d8082b3892a2/schema)
