Skip to main content
Connected apps are outside programs, such as a partner integration or an AI assistant, that someone in the workspace authorized to use the account without handing over a password or the Secret Key. They all live in Administration → Connected apps. A connected app comes in through one of two doors, and each door has its own access rules:
  • Through the app itself: the app (for example, a partner integration) opens the Omni Z-API sign-in and uses the API with the authorized permissions, which can include sending messages. That door is a separate topic and is not covered on this page.
  • Through an AI, via MCP: an AI assistant uses the workspace through the Omni Z-API MCP (Model Context Protocol) server. The AI is a connected app like any other, with the same sign-in and the same consent, and it follows the MCP access rules.
This page covers the MCP door. The AI never gets your Secret Key: you sign in with your account, choose the workspace and authorize the access, which you can revoke at any time.

Server address

Use this address in any AI client that supports a remote MCP server, such as Claude, Claude Code, ChatGPT, Cursor, VS Code or n8n. Authentication goes through your account sign-in (OAuth), with no key to copy. In the dashboard, the Connect AI button, in Connected apps, shows this address and the steps for each client.

How the connection works

  1. You add the address to the AI client.
  2. The client opens the Omni Z-API sign-in page. Sign in with your account.
  3. Choose the workspace.
  4. Check what the AI will be able to do.
  5. Click to authorize.
  6. If the workspace requires approval for new connections and you are not the Owner, the AI only starts working after the Owner approves the request. The Owner sees the requests on the Connected apps page, in the notice about access requests waiting for approval: just click See requests.
The access shows up in the Administration → Connected apps list, along with who authorized it. After you authorize, the AI renews the access on its own, without asking you to sign in again, until the Access validity in the MCP rules runs out.
The AI acts with the permissions of the person who authorized it and disconnects when that person leaves the workspace.

Connect your AI client

  1. Add a custom connector with the address https://mcp.omni.z-api.io/mcp.
  2. When you connect, Claude opens the Omni Z-API sign-in. Follow the flow above.
Cursor, n8n and other clients that register themselves when they connect only get in if the MCP rules are set to Verified and self-registered, the default, or if the client is checked under Chosen only. With Verified only, they don’t get in, not even Cursor with the badge. See MCP access rules below.

What the AI can do

The AI can do what the Maximum permissions through the MCP allow: it never gets a permission that isn’t checked there. By default, only See channels and their status, See templates and See flows are checked. New operations will be added to MCP, always within those permissions. In this version, the AI can use the tools below. The validation tools check a template or a flow and return the errors, without creating, sending or syncing anything. The tools that make changes:
  • templates_create creates a WhatsApp template, which then goes through Meta’s review.
  • templates_update edits a template that is not approved yet, for example a rejected or paused one. It also needs See templates.
  • templates_media_upload uploads a template’s header media to Meta, from a public https URL.
  • flows_create creates a flow as a draft, and flows_update edits the name, the categories or the JSON of a flow. MCP never publishes a flow: publishing is done in the dashboard.
  • templates_sync and flows_sync sync the templates or the flows of a WhatsApp account with Meta.
Without See billing and plans, for example, the AI doesn’t look up billing or plans. MCP doesn’t send messages: in the rules, Send messages and templates shows the notice MCP doesn’t request this permission yet. Every AI call is recorded in the Audit log, with the Connected AI actor.

Who can change templates and flows

Checking Create and edit templates or Create and edit flows (draft) is not enough. The AI only makes changes when all the conditions below hold: An existing connection only gets the change permission when the person authorizes again. The conditions are checked again on every use: if one stops holding, the AI stops making changes.

MCP access rules

In Administration → Connected apps, click Access rules and open the MCP tab. The Third-party apps tab has the rules for the other door: one changes nothing in the other. Everyone in the workspace sees the rules, and only the Owner changes them.

IP list

The workspace doesn’t check the IP the AI calls from: an AI’s requests usually come from its provider’s servers, not from your network. With an IP list, the Serve the MCP outside the workspace IP list option decides:
  • Off, the default: the workspace refuses every AI call through MCP, both reads and changes.
  • On: the AI reads normally, but changes nothing.
For the AI to create and edit templates and flows, the workspace can’t have an IP list.

Revoke

  • One AI: in the Connected apps list, open the app’s menu and click Revoke access. It only comes back if someone authorizes it again. Each person revokes the access they authorized, and the Owner revokes anyone’s.
  • One AI, for the whole workspace: the Owner clicks Block app. Everyone’s access is revoked, and nobody connects that app again until someone unblocks it.
  • Every AI: turn off Allow connections through the MCP in the MCP rules. The connections stay paused, without being revoked, until the option is turned on again.