Connections
Connect a WhatsApp account to a project and manage it as a Connection.
A Connection is one WhatsApp account connected to a Polymorfa project. Every message, call and campaign is sent from a Connection, so connecting one is the first step of any integration.
Get started#
Create a QuickLink and open its URL on the phone that owns the WhatsApp account. The hosted page confirms the phone number, pairs the account and adds the Connection to your project. Polymorfa then returns the Connection ID you use in Messaging API paths.
A Connection has type: "whatsapp" and one scalar method:
Linked Devices (
linked_device): Polymorfa joins the WhatsApp or WhatsApp Business app as a linked device, the same way WhatsApp Web does.Meta Cloud API (
cloud_api): the Connection runs on Meta's Cloud API through Embedded Signup. Meta bills the business's WhatsApp Business Account directly for messaging. Meta Cloud API onboarding requires access.Hybrid (
hybrid): one Connection using Linked Devices and Meta Cloud API. Hybrid is billed once, with one Connection ID.
Use the public connectionId as an opaque text selector in API paths. Keep it separate from phoneNumberId, the Graph API phone identifier, and phone, the actual phone number. Never convert these identifiers to numeric values.
To build without a real phone, add a test connection.
Create a Connection with QuickLink
Connect connections#
- Create a Connection with QuickLink: Send a hosted link that pairs a phone or completes Meta signup.
- Create a Connection in the Console: Pair a phone that is with you, send a link or add a test connection from Connections.
- Set up Meta Cloud API connections: Prepare a WhatsApp Business Account, use your own Meta app and renew credentials.
- Build your own pairing interface: Request QR codes and pairing codes from your backend. Requires access.
- Import existing sessions: Move a Baileys or whatsmeow session to Polymorfa without pairing again.
Manage connections#
- Start, stop and restart Connections: Control a Connection's connection, read its status and change its configuration.
- Connection tiers and funding: Choose what a Connection can do and how its 24-hour paid window is charged.
Limits and capabilities#
- Connection capabilities: Read which WhatsApp features WhatsApp has enabled for each Connection.
- WhatsApp new-chat cap: See the new-chat limit WhatsApp set for a Connection and how sends are paced around it.
Business profile and catalog #
Business tools change what customers see about the business behind a Connection. Each API operation lists the Connection methods it supports.
- Business profile: Read and update the description, hours, websites, cover photo and compliance details.
- Catalogs and commerce: Manage products, collections, carts and orders, and send products in messages.
- Quick replies: Manage WhatsApp Business app shortcuts and choose whether Polymorfa remembers them.
Message templates for Meta Cloud API Connections are covered under Messaging.
Monitor connections#
- WhatsApp analytics: Read message engagement, call outcomes and connection health for each Connection.
- Connect an analytics collector: Export the same measurements to Prometheus or OpenTelemetry.
Build your own pairing interface #
Direct QR and pairing-code requests require direct-pairing access for the team that owns the Connection. Without access, they return 403; use QuickLink instead. See Build your own pairing interface.