---
title: "Get a list of the top dms for a user."
method: GET
path: "/api/v4/users/me/top/dms"
tags: ["insights"]
---

# Get a list of the top dms for a user.

`GET /api/v4/users/me/top/dms`

Get a list of the top dms for a given user.
##### Permissions
Must be logged in as the user.

## Query parameters

- `time_range` string, required
- `page` integer
- `per_page` integer

## Response `200`

Top dms retrieved successfully.

- 38cb7293TopDMList
  - `has_next` boolean — Indicates if there is another page of top DMs that can be fetched.
  - `items` 38cb7293TopDM[] — List of top DMs.
    - `post_count` integer
    - `outgoing_message_count` integer
    - `second_participant` 38cb7293TopDMInsightUserInformation
      - `id` string
      - `first_name` string
      - `last_name` string
      - `nickname` string
      - `username` string
      - `last_picture_update` string
      - `create_at` integer
      - `position` string

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
