---
title: "Retrieve contact"
method: GET
path: "/contacts/{id}"
tags: ["Contact"]
---

# Retrieve contact

`GET /contacts/{id}`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/contacts/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/contacts/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves details of a contact.

## Path parameters

- `id` string, required: The unique ID of the resource.

## Response `200`

OK

- object
  - `id` string: The unique ID of the resource.
  - `name` string: The name of contact.
  - `email` string: The email of contact.
  - `company` string: The company name of contact.
  - `title` string: The title of contact.
  - `business` string: The business phone number of contact.
  - `business2` string: The secondary business phone number of contact.
  - `mobile_phone` string: The mobile phone number of contact.
  - `mobile_phone2` string: The secondary mobile phone number of contact.
  - `home_phone` string: The home phone number of contact.
  - `home_phone2` string: The secondary home phone number of contact.
  - `other` string: The other phone number of contact.
  - `business_fax` string: The business fax of contact.
  - `home_fax` string: The home fax of contact.
  - `address` string: The address.
  - `notes` string: The notes of contact.
  - `sync_type` 'Microsoft 365': The synchronization method. Can be either: - `Microsoft 365`: Sync from Microsoft 365.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
