> ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # List Contacts >
Premium tag
List the authenticated user's personal contacts. Returns local contacts created in Rocket.Chat. When the workspace license includes the `outlook-calendar` module, the response also includes contacts imported by the Microsoft Exchange server-to-server sync and reports their count in `syncedTotal`. Without the `outlook-calendar` module, Outlook-synced contacts are omitted and `syncedTotal` is `0`. Sortable fields: `displayName`, `emails.address`, `phones.raw`, `categories`, `companyName`, `officeLocation`, `favorite`. ### Changelog | Version | Description | | ------- | ----------- | | 9.1.0 | Added | ## OpenAPI ````json GET /api/v1/contacts.list { "openapi": "3.0.0", "info": { "version": "1.0.0", "title": "Miscellaneous" }, "servers": [ { "url": "https://apiexplorer.support.rocket.chat" } ], "tags": [ { "name": "Commands" }, { "name": "Email Inbox" }, { "name": "Licenses" }, { "name": "Mailer" }, { "name": "Calendar Events" }, { "name": "Exchange" }, { "name": "Contacts" }, { "name": "WhatsApp" }, { "name": "Rasa App" }, { "name": "Jitsi App" } ], "paths": { "/api/v1/contacts.list": { "get": { "summary": "List Contacts", "tags": [ "Contacts" ], "operationId": "get-api-v1-contacts.list", "description": "
\"Premium
\n\nList the authenticated user's personal contacts. Returns local contacts created in Rocket.Chat. When the workspace license includes the `outlook-calendar` module, the response also includes contacts imported by the Microsoft Exchange server-to-server sync and reports their count in `syncedTotal`.\n\nWithout the `outlook-calendar` module, Outlook-synced contacts are omitted and `syncedTotal` is `0`.\n\nSortable fields: `displayName`, `emails.address`, `phones.raw`, `categories`, `companyName`, `officeLocation`, `favorite`.\n\n### Changelog\n| Version | Description |\n| ------- | ----------- |\n| 9.1.0 | Added |", "parameters": [ { "$ref": "#/components/parameters/Auth-Token" }, { "$ref": "#/components/parameters/UserId" }, { "$ref": "#/components/parameters/offset" }, { "$ref": "#/components/parameters/count" }, { "$ref": "#/components/parameters/sort" }, { "schema": { "type": "string" }, "in": "query", "name": "text", "description": "Filter contacts by free-text search.", "required": false }, { "schema": { "type": "boolean" }, "in": "query", "name": "favorite", "description": "When `true`, return only favorite contacts. When `false`, return only contacts that are not favorites.", "required": false } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Contact" } }, "count": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" }, "syncedTotal": { "type": "integer", "description": "Number of Outlook-synced contacts owned by the caller. `0` without the `outlook-calendar` license." }, "success": { "type": "boolean" } } }, "examples": { "Example 1": { "value": { "items": [ { "_id": "690c2b2d4e7e8bcf6985b3d8", "source": "local", "displayName": "John Doe", "givenName": "John", "surname": "Doe", "emails": [ { "address": "john.doe@example.com", "label": "work" } ], "phones": [ { "raw": "+1 555 0100", "e164": "+15550100", "label": "mobile" } ], "favorite": true, "_updatedAt": "2025-11-05T07:53:43.42Z" } ], "count": 1, "offset": 0, "total": 1, "syncedTotal": 0, "success": true } } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "error": { "type": "string" } } }, "examples": { "Invalid Sort Keys": { "value": { "success": false, "error": "error-invalid-sort-keys" } } } } } }, "401": { "$ref": "#/components/responses/authorizationError" }, "403": { "$ref": "#/components/responses/forbiddenError" } } } } }, "components": { "parameters": { "Auth-Token": { "name": "X-Auth-Token", "in": "header", "description": "The `authToken` of the authenticated user.", "required": true, "schema": { "type": "string" }, "example": "RScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f" }, "UserId": { "name": "X-User-Id", "in": "header", "description": "The `userId` of the authenticated user.", "required": true, "schema": { "type": "string" }, "example": "rbAXPnMktTFbNpwtJ" }, "offset": { "name": "offset", "in": "query", "description": "Number of items to \"skip\" in the query, i.e. requests return count items, skipping the first offset items. Refer to the [official documentation](https://developer.rocket.chat/apidocs/query-parameters#pagination) to learn more.", "required": false, "schema": { "type": "integer" }, "example": 50 }, "count": { "name": "count", "in": "query", "description": "The number of items to return. Refer to the [official documentation](https://developer.rocket.chat/apidocs/query-parameters#pagination) to learn more.", "required": false, "schema": { "type": "integer" }, "example": 50 }, "sort": { "name": "sort", "in": "query", "description": "List of fields to order by, and in which direction. This is a JSON object, with properties listed in desired order, with values of 1 for ascending, or -1 for descending. For example, {\"value\": -1, \"_id\": 1}. Refer to the [official documentation](https://developer.rocket.chat/apidocs/query-parameters#pagination) to learn more.", "required": false, "schema": {} } }, "schemas": { "Contact": { "type": "object", "description": "A personal contact returned by the Contacts API. Sync-only fields (`uid`, `externalId`, `folderId`, `lastSyncAt`) are never included.", "properties": { "_id": { "type": "string" }, "source": { "type": "string", "description": "`local` for contacts created in Rocket.Chat. `outlook` for contacts imported by Microsoft Exchange server-to-server sync.", "enum": [ "local", "outlook" ] }, "displayName": { "type": "string" }, "givenName": { "type": "string" }, "surname": { "type": "string" }, "companyName": { "type": "string" }, "officeLocation": { "type": "string" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "address": { "type": "string" }, "label": { "type": "string", "description": "Present on local contacts. Exchange imports may omit it." } } } }, "phones": { "type": "array", "items": { "type": "object", "properties": { "raw": { "type": "string" }, "e164": { "type": "string", "description": "E.164 form when `raw` includes a resolvable country code." }, "label": { "type": "string" } } } }, "categories": { "type": "array", "items": { "type": "string" } }, "favorite": { "type": "boolean" }, "syncProvider": { "type": "string", "description": "Set on Outlook-synced contacts. Either `ews` or `graph`.", "enum": [ "ews", "graph" ] }, "_updatedAt": { "type": "string" } } } }, "responses": { "authorizationError": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "error": { "type": "string" } } }, "examples": { "Authorization Error": { "value": { "success": false, "error": "You must be logged in to do this." } } } } } }, "forbiddenError": { "description": "Forbidden", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "error": { "type": "string" }, "errorType": { "type": "string" } } }, "examples": { "Permission Error": { "value": { "success": false, "error": "User does not have the permissions required for this action", "errorType": "error-forbidden" } } } } } } } } } ````