Get Contact Info

Prev Next
Get
/api/v1/contacts.info
Premium tag

Get one of the authenticated user's personal contacts by ID. Returns local contacts and, when the workspace license includes the outlook-calendar module, contacts imported by the Microsoft Exchange server-to-server sync.

Without the outlook-calendar module, Outlook-synced contacts return 404. Sync-only fields (uid, externalId, folderId, lastSyncAt) are never included in the response.

Changelog

Version Description
9.1.0 Added
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Query parameters
contactId
stringRequired

Enter the contact ID.

Example690c2b2d4e7e8bcf6985b3d8
Responses
200

OK

Example 1
{
  "contact": {
    "_id": "690c2b2d4e7e8bcf6985b3d8",
    "source": "local",
    "displayName": "John Doe",
    "givenName": "John",
    "surname": "Doe",
    "emails": [
      {
        "address": "john.doe@example.com"
      }
    ],
    "phones": [],
    "_updatedAt": "2025-11-05T07:53:43.420Z"
  },
  "success": true
}
Expand All
object
contact
object (Contact)

A personal contact returned by the Contacts API. Sync-only fields (uid, externalId, folderId, lastSyncAt) are never included.

_id
string
source
string

local for contacts created in Rocket.Chat. outlook for contacts imported by Microsoft Exchange server-to-server sync.

Valid values[ "local", "outlook" ]
displayName
string
givenName
string
surname
string
companyName
string
officeLocation
string
emails
Array of object
object
address
string
label
string

Present on local contacts. Exchange imports may omit it.

phones
Array of object
object
raw
string
e164
string

E.164 form when raw includes a resolvable country code.

label
string
categories
Array of string
string
favorite
boolean
syncProvider
string

Set on Outlook-synced contacts. Either ews or graph.

Valid values[ "ews", "graph" ]
_updatedAt
string
success
boolean
400

Bad Request

Missing Contact ID
{
  "success": false,
  "error": "must have required property 'contactId' [error-invalid-params]"
}
object
success
boolean
error
string
401

Unauthorized

Authorization Error
{
  "success": false,
  "error": "You must be logged in to do this."
}
object
success
boolean
error
string
403

Forbidden

Permission Error
{
  "success": false,
  "error": "User does not have the permissions required for this action",
  "errorType": "error-forbidden"
}
object
success
boolean
error
string
errorType
string
404

Not Found

Not Found
{
  "success": false,
  "error": "Resource not found"
}
object
success
boolean
error
string