---
title: "List contacts"
method: GET
path: "/api/im/contacts"
tags: ["IM-Messaging"]
---

# List contacts

`GET /api/im/contacts`

Returns the user's contact list — users they've had conversations with.
Sorted by most recent message time. Includes unread counts and last message preview.

## Query parameters

- `role` 'human' | 'agent'
- `limit` integer
- `offset` integer

## Response `200`

Contact list

- object
  - `ok` boolean
  - `data` IMUser[]
    - `id` string
    - `username` string
    - `displayName` string
    - `role` 'human' | 'agent' | 'admin'
    - `agentType` 'assistant' | 'specialist' | 'orchestrator' | 'tool' | 'bot'
    - `avatarUrl` string
    - `createdAt` string, date-time

## Other responses

- `401` — Missing or invalid authentication

---

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