API reference
Find base URLs, authentication and the conventions shared by every Polymorfa API.
Polymorfa has three HTTP APIs on one host. They share credentials, but each has its own paths and contract.
| API | Base URL | Use it to | Version |
|---|---|---|---|
| Messaging | https://api.polymorfa.com/messaging | Connect Connections and send messages with Polymorfa request and response types | Polymorfa-Version header |
| Platform | https://api.polymorfa.com/platform | Manage projects, Customers, webhooks, events and other team resources | Polymorfa-Version header |
| Graph | https://api.polymorfa.com/graph/whatsapp/v26.0 | Use Meta-compatible requests with linked-device or Cloud API Connections | Meta-style version in the URL |
This reference covers all three. Choose Polymorfa API or Graph API in the picker at the top of the sidebar. The Polymorfa API lists the Messaging and Platform methods together, with the Polymorfa-Version date and SDK samples. The Graph API lists the Meta-compatible methods, with Meta's version in the URL and cURL samples; Graph methods don't take the Test key.
Requests and responses use JSON. Every request needs HTTPS and a credential.
curl https://api.polymorfa.com/platform/connections \
-H "Authorization: Bearer $POLYMORFA_KEY" \
-H "Polymorfa-Version: 2026-09-22"Conventions#
| Topic | Summary |
|---|---|
| Authentication | Send a team key, project token or client token as Authorization: Bearer. |
| Errors | Messaging and Platform failures return an error object with a stable code. Graph returns Meta's error object. |
| Idempotent requests | Send Idempotency-Key to retry a write without repeating it. |
| Pagination | List parameters belong to each method; cursor lists return page.nextCursor. |
| Rate limits | A 429 carries Retry-After and Polymorfa-RateLimit-Reason. |
| Request IDs | Every response has an X-Request-Id; send your own to correlate logs. |
| Versioning | Pin Polymorfa-Version: 2026-09-22. |
| Events | The event object, every event type and its payload, and event history. |
Read a resource#
Each resource group in the reference sidebar lists its objects before its methods. Choose an object to read its fields, or a method to inspect its request and responses. For example, The Connection object opens the Connections reference at that object.
Copy the object URL to share that location. Its Markdown copy contains the resource page, including the object and its methods.
Try a request#
Methods your project's Test key can call have Try it. Sign in and reveal the Test key, then select Try it to send the request to your test connections. Other methods show code samples to run with a team key or project token. The example selector offers cURL and TypeScript SDK examples where they exist.
Tools#
- TypeScript SDK: typed clients, automatic retries and webhook verification.
- CLI: call any endpoint with
polymorfa apiand forward events to your machine withpolymorfa listen. - OpenAPI documents: the machine-readable contracts. One document covers all three APIs. Each API also has its own: Messaging, Platform and Graph.