# Contacts

> List, search, write and photo-download contacts across Google, Microsoft 365 and CardDAV.

URL: https://docs.workwae.com/reference/contacts

Guides: [Contacts](/guides/contacts).

| Method | Path | Operation | Scope |
| --- | --- | --- | --- |
| `GET` | `/v1/accounts/{accountId}/contacts` | [List or search contacts, by name](#list-or-search-contacts-by-name) | `read` |
| `POST` | `/v1/accounts/{accountId}/contacts` | [Create a contact](#create-a-contact) | `write` |
| `GET` | `/v1/accounts/{accountId}/contacts/{contactId}` | [Get a contact](#get-a-contact) | `read` |
| `PATCH` | `/v1/accounts/{accountId}/contacts/{contactId}` | [Change a contact](#change-a-contact) | `write` |
| `DELETE` | `/v1/accounts/{accountId}/contacts/{contactId}` | [Delete a contact](#delete-a-contact) | `write` |
| `GET` | `/v1/accounts/{accountId}/contacts/{contactId}/photo` | [Download a contact's photo](#download-a-contacts-photo) | `read` |
| `GET` | `/v1/accounts/{accountId}/contact-folders` | [List contact folders](#list-contact-folders) | `read` |

## List or search contacts, by name

`GET /v1/accounts/{accountId}/contacts`

TypeScript SDK method: `workwae.contacts.list()`

Reads the index. q matches part of any name, the organization or any email address, case-insensitively.

Required scope: `read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `q` | query | string | no | 1 to 200 characters. Example `"invoice"`. |
| `folderId` | query | string (uuid) | no | Example `"708b432e-9495-4168-82e1-0cf52a8ef66f"`. |
| `limit` | query | integer | no | 1 to 500. Default `100`. |
| `cursor` | query | string | no | 1 to 512 characters. Example `"eyJ0eG5pZCI6IjQyIiwiaWQiOjEwMDF9"`. |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | object[] | yes |  |
| `items[].id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `items[].folderId` | string (uuid) \| null | yes | Example `"708b432e-9495-4168-82e1-0cf52a8ef66f"`. |
| `items[].displayName` | string \| null | yes |  |
| `items[].givenName` | string \| null | yes |  |
| `items[].middleName` | string \| null | yes |  |
| `items[].familyName` | string \| null | yes |  |
| `items[].nickname` | string \| null | yes |  |
| `items[].emails` | object[] | yes |  |
| `items[].emails[].address` | string | yes | Example `"ada@example.com"`. |
| `items[].emails[].type` | "home" \| "work" \| "other" \| null | yes |  |
| `items[].phones` | object[] | yes |  |
| `items[].phones[].number` | string | yes |  |
| `items[].phones[].type` | "mobile" \| "home" \| "work" \| "other" \| null | yes |  |
| `items[].organization` | string \| null | yes |  |
| `items[].jobTitle` | string \| null | yes |  |
| `items[].department` | string \| null | yes |  |
| `items[].birthday` | string \| null | yes |  |
| `items[].notes` | string \| null | yes |  |
| `items[].hasPhoto` | boolean \| null | yes |  |
| `items[].updatedAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `nextCursor` | string \| null | yes | Example `"eyJ0eG5pZCI6IjQyIiwiaWQiOjEwMDF9"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `invalid_cursor`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`, `unknown_contact_folder`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Create a contact

`POST /v1/accounts/{accountId}/contacts`

TypeScript SDK method: `workwae.contacts.create()`

Written to the provider, then to the index, so it is listed at once.

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |

### Request body

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folderId` | string (uuid) | no | Example `"708b432e-9495-4168-82e1-0cf52a8ef66f"`. |
| `displayName` | string | no | 1 to 256 characters. |
| `givenName` | string | no | 1 to 256 characters. |
| `middleName` | string | no | 1 to 256 characters. |
| `familyName` | string | no | 1 to 256 characters. |
| `nickname` | string | no | 1 to 256 characters. |
| `emails` | object[] | no | At most 20 items. |
| `emails[].address` | string (email) | yes | At most 320 characters. Example `"ada@example.com"`. |
| `emails[].type` | "home" \| "work" \| "other" | no |  |
| `phones` | object[] | no | At most 20 items. |
| `phones[].number` | string | yes | 1 to 64 characters. |
| `phones[].type` | "mobile" \| "home" \| "work" \| "other" | no |  |
| `organization` | string | no | 1 to 256 characters. |
| `jobTitle` | string | no | 1 to 256 characters. |
| `department` | string | no | 1 to 256 characters. |
| `birthday` | string | no |  |
| `notes` | string | no | At most 10000 characters. |

### Responses

- **201** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `folderId` | string (uuid) \| null | yes | Example `"708b432e-9495-4168-82e1-0cf52a8ef66f"`. |
| `displayName` | string \| null | yes |  |
| `givenName` | string \| null | yes |  |
| `middleName` | string \| null | yes |  |
| `familyName` | string \| null | yes |  |
| `nickname` | string \| null | yes |  |
| `emails` | object[] | yes |  |
| `emails[].address` | string | yes | Example `"ada@example.com"`. |
| `emails[].type` | "home" \| "work" \| "other" \| null | yes |  |
| `phones` | object[] | yes |  |
| `phones[].number` | string | yes |  |
| `phones[].type` | "mobile" \| "home" \| "work" \| "other" \| null | yes |  |
| `organization` | string \| null | yes |  |
| `jobTitle` | string \| null | yes |  |
| `department` | string \| null | yes |  |
| `birthday` | string \| null | yes |  |
| `notes` | string \| null | yes |  |
| `hasPhoto` | boolean \| null | yes |  |
| `updatedAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `provider_rejected`, `contact_unidentifiable`, `provider_unsupported`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`, `provider_forbidden`
  - 404: `account_not_found`, `provider_not_found`, `contact_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`, `account_paused`, `account_disabled`, `account_reauth_required`, `account_misconfigured`, `provider_conflict`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`, `unknown_contact_folder`
  - 429: `rate_limited`, `too_many_requests`, `provider_throttled`
  - 500: `internal_error`
  - 502: `provider_unavailable`
  - 503: `overloaded`

## Get a contact

`GET /v1/accounts/{accountId}/contacts/{contactId}`

TypeScript SDK method: `workwae.contacts.get()`

Reads the index.

Required scope: `read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `contactId` | path | string (uuid) | yes | Example `"6181f81d-cf41-4ce3-b932-5cbe6b7d01c5"`. |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `folderId` | string (uuid) \| null | yes | Example `"708b432e-9495-4168-82e1-0cf52a8ef66f"`. |
| `displayName` | string \| null | yes |  |
| `givenName` | string \| null | yes |  |
| `middleName` | string \| null | yes |  |
| `familyName` | string \| null | yes |  |
| `nickname` | string \| null | yes |  |
| `emails` | object[] | yes |  |
| `emails[].address` | string | yes | Example `"ada@example.com"`. |
| `emails[].type` | "home" \| "work" \| "other" \| null | yes |  |
| `phones` | object[] | yes |  |
| `phones[].number` | string | yes |  |
| `phones[].type` | "mobile" \| "home" \| "work" \| "other" \| null | yes |  |
| `organization` | string \| null | yes |  |
| `jobTitle` | string \| null | yes |  |
| `department` | string \| null | yes |  |
| `birthday` | string \| null | yes |  |
| `notes` | string \| null | yes |  |
| `hasPhoto` | boolean \| null | yes |  |
| `updatedAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`, `contact_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Change a contact

`PATCH /v1/accounts/{accountId}/contacts/{contactId}`

TypeScript SDK method: `workwae.contacts.update()`

Fields present change (null clears); emails and phones replace the whole list.

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `contactId` | path | string (uuid) | yes | Example `"6181f81d-cf41-4ce3-b932-5cbe6b7d01c5"`. |

### Request body

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `displayName` | string \| null | no |  |
| `givenName` | string \| null | no |  |
| `middleName` | string \| null | no |  |
| `familyName` | string \| null | no |  |
| `nickname` | string \| null | no |  |
| `emails` | object[] | no | At most 20 items. |
| `emails[].address` | string (email) | yes | At most 320 characters. Example `"ada@example.com"`. |
| `emails[].type` | "home" \| "work" \| "other" | no |  |
| `phones` | object[] | no | At most 20 items. |
| `phones[].number` | string | yes | 1 to 64 characters. |
| `phones[].type` | "mobile" \| "home" \| "work" \| "other" | no |  |
| `organization` | string \| null | no |  |
| `jobTitle` | string \| null | no |  |
| `department` | string \| null | no |  |
| `birthday` | string \| null | no |  |
| `notes` | string \| null | no |  |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `folderId` | string (uuid) \| null | yes | Example `"708b432e-9495-4168-82e1-0cf52a8ef66f"`. |
| `displayName` | string \| null | yes |  |
| `givenName` | string \| null | yes |  |
| `middleName` | string \| null | yes |  |
| `familyName` | string \| null | yes |  |
| `nickname` | string \| null | yes |  |
| `emails` | object[] | yes |  |
| `emails[].address` | string | yes | Example `"ada@example.com"`. |
| `emails[].type` | "home" \| "work" \| "other" \| null | yes |  |
| `phones` | object[] | yes |  |
| `phones[].number` | string | yes |  |
| `phones[].type` | "mobile" \| "home" \| "work" \| "other" \| null | yes |  |
| `organization` | string \| null | yes |  |
| `jobTitle` | string \| null | yes |  |
| `department` | string \| null | yes |  |
| `birthday` | string \| null | yes |  |
| `notes` | string \| null | yes |  |
| `hasPhoto` | boolean \| null | yes |  |
| `updatedAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `provider_rejected`, `contact_unidentifiable`, `provider_unsupported`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`, `provider_forbidden`
  - 404: `account_not_found`, `contact_not_found`, `provider_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`, `account_paused`, `account_disabled`, `account_reauth_required`, `account_misconfigured`, `provider_conflict`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`, `provider_throttled`
  - 500: `internal_error`
  - 502: `provider_unavailable`
  - 503: `overloaded`

## Delete a contact

`DELETE /v1/accounts/{accountId}/contacts/{contactId}`

TypeScript SDK method: `workwae.contacts.delete()`

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `contactId` | path | string (uuid) | yes | Example `"6181f81d-cf41-4ce3-b932-5cbe6b7d01c5"`. |

### Responses

- **204** OK (application/json, any)
- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `provider_rejected`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`, `provider_forbidden`
  - 404: `account_not_found`, `contact_not_found`, `provider_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`, `account_paused`, `account_disabled`, `account_reauth_required`, `account_misconfigured`, `provider_conflict`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`, `provider_throttled`
  - 500: `internal_error`
  - 502: `provider_unavailable`
  - 503: `overloaded`

## Download a contact's photo

`GET /v1/accounts/{accountId}/contacts/{contactId}/photo`

TypeScript SDK method: `workwae.contacts.photo()`

Fetched from the provider on first request and cached until the photo changes.

Required scope: `read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `contactId` | path | string (uuid) | yes | Example `"6181f81d-cf41-4ce3-b932-5cbe6b7d01c5"`. |

### Responses

- **200** The photo as the provider stores it (image/jpeg, image/png, ...) (image/*, string)
- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `provider_rejected`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`, `provider_forbidden`
  - 404: `account_not_found`, `contact_not_found`, `provider_not_found`, `photo_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`, `account_paused`, `account_disabled`, `account_reauth_required`, `account_misconfigured`, `provider_conflict`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`, `provider_throttled`
  - 500: `internal_error`
  - 502: `provider_unavailable`
  - 503: `overloaded`

## List contact folders

`GET /v1/accounts/{accountId}/contact-folders`

TypeScript SDK method: `workwae.contactFolders.list()`

Microsoft 365 contact folders, the default folder first; empty for Google accounts.

Required scope: `read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | object[] | yes |  |
| `items[].id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `items[].name` | string | yes |  |
| `items[].isDefault` | boolean | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`
  - 409: `idempotency_key_in_progress`, `contacts_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`
