> ## Documentation Index
> Fetch the complete documentation index at: https://developer.omni.z-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Contacts

> New-API contact routes, WhatsApp Web channel only.

## Overview

New-API contact routes, under `/v1/channels/{channelId}/contacts`. Available **on the WhatsApp Web channel** (`Z_API_WHATSAPP`) **only**: list, get, photo, check numbers, and capabilities.

> [!NOTE]
>
> On a Meta channel (`META_WHATSAPP`), these routes respond `422` — the official API gives no access to the number's contacts. The [capabilities](https://developer.omni.z-api.io/en/contacts/capabilities.md) route responds `200` with an empty operations list. Telegram, Instagram and Messenger also respond `422` on these routes: contacts belong to a WhatsApp number.

> [!NOTE]
>
> Writes (add, remove, and report a contact) come in a later phase and respond `422` today.

Authentication is the [Secret Key](https://developer.omni.z-api.io/en/authentication.md). Only the `/v1/channels/{channelId}/...` path is served; the `/instances` and `/devices` prefixes respond `404`.

## Common errors

Every contact route may respond, on the **Omni API**: `401` when the Secret Key is refused ([Authentication](https://developer.omni.z-api.io/en/authentication.md)); `403` `ip_not_allowed` when the IP is off the list ([IP restriction](https://developer.omni.z-api.io/en/security/ip-restriction.md)); and `404` `{"error": "instance not found"}` when the channel does not exist.

On the data routes (list, get, photo and check), the checks run in this order: missing channel (`404`), instance not provisioned (`422` `{"error": "instance is not provisioned"}`), subscription inactive (`422` `{"error": "instance subscription is not active"}`), workspace blocked (`422` `{"error": "You are blocked, contact support."}`) and, last, operation not supported on the channel (`422` `operation not supported for this instance`). The capabilities route does not run these `422` checks.

> [!NOTE]
>
> The blocked status is cached for up to 4 hours: blocking or unblocking the workspace may take that long to apply.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.