> For the complete documentation index, see [llms.txt](https://ajuda.zdg.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.zdg.com.br/configuracao-administrador/configuracoes-painel-admin/integracoes/habilitar-z-api.md).

# Habilitar Z-API

{% hint style="info" %}
**Disponível para o perfil:** Administrador
{% endhint %}

O Z-API é um serviço externo pago que permite conectar números de WhatsApp ao Z-PRO via QR Code (API não oficial). Nesta página você cadastra as credenciais globais da sua conta Z-API para habilitar a criação de canais.

{% hint style="warning" %}
**Z-API é um serviço pago e independente do Z-PRO.** Você precisa contratar um plano diretamente em [z-api.io](https://z-api.io/) e obter sua Global Key antes de configurar a integração aqui.
{% endhint %}

***

### Como acessar

No painel administrativo, acesse **Configurações → Integrações → Z-API**.

<figure><img src="https://3541975055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5B652UsmGn3Q7h9Du1t%2Fuploads%2FFkLbIqpIDEIKA4zr1d7O%2Fimage.png?alt=media&amp;token=7290f6f5-30ff-4150-a679-18413735c2fd" alt=""><figcaption></figcaption></figure>

***

### Campos da integração

| Campo          | Descrição                                                                                                                       |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **URL da API** | URL base do serviço Z-API — padrão: `https://api.z-api.io`. Altere somente se estiver usando uma instância self-hosted do Z-API |
| **Global Key** | Chave de autenticação global gerada no painel da sua conta Z-API                                                                |

{% hint style="info" %}
As alterações são salvas automaticamente ao sair do campo.
{% endhint %}

***

### Próximos passos

#### [Criar um canal WhatsApp Z-API](/configuracao-administrador/administracao-painel-admin/canais-de-comunicacao/canal-whatsapp-z-api.md)

Com as credenciais salvas, crie o canal para que as mensagens cheguem ao Z-PRO:

1. Acesse **Canais → Adicionar Canal**
2. Selecione o tipo **WhatsApp Z-API**
3. Selecione a sessão Z-API correspondente ao número que deseja conectar
4. Preencha o nome do canal e as configurações de atribuição (fila ou usuário)
5. Salve

A partir daí, as mensagens recebidas nesse número chegam como tickets no Z-PRO.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ajuda.zdg.com.br/configuracao-administrador/configuracoes-painel-admin/integracoes/habilitar-z-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
