---
title: "API reference"
description: "Find base URLs, authentication and the conventions shared by every Polymorfa API."
canonical: "https://docs.polymorfa.com/api"
---
# 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://docs.polymorfa.com/api/messaging) | `https://api.polymorfa.com/messaging` | Connect Connections and send messages with Polymorfa request and response types | `Polymorfa-Version` header |
| [Platform](https://docs.polymorfa.com/api/platform) | `https://api.polymorfa.com/platform` | Manage projects, Customers, webhooks, events and other team resources | `Polymorfa-Version` header |
| [Graph](https://docs.polymorfa.com/api/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.

```bash
curl https://api.polymorfa.com/platform/connections \
  -H "Authorization: Bearer $POLYMORFA_KEY" \
  -H "Polymorfa-Version: 2026-09-22"
```

## Conventions

| Topic | Summary |
| --- | --- |
| [Authentication](https://docs.polymorfa.com/api/authentication) | Send a team key, project token or client token as `Authorization: Bearer`. |
| [Errors](https://docs.polymorfa.com/api/errors) | Messaging and Platform failures return an `error` object with a stable `code`. Graph returns Meta's error object. |
| [Idempotent requests](https://docs.polymorfa.com/api/idempotent-requests) | Send `Idempotency-Key` to retry a write without repeating it. |
| [Pagination](https://docs.polymorfa.com/api/pagination) | List parameters belong to each method; cursor lists return `page.nextCursor`. |
| [Rate limits](https://docs.polymorfa.com/api/rate-limits) | A `429` carries `Retry-After` and `Polymorfa-RateLimit-Reason`. |
| [Request IDs](https://docs.polymorfa.com/api/errors#request-ids-and-log-links) | Every response has an `X-Request-Id`; send your own to correlate logs. |
| [Versioning](https://docs.polymorfa.com/api/versioning) | Pin `Polymorfa-Version: 2026-09-22`. |
| [Events](https://docs.polymorfa.com/api/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](https://docs.polymorfa.com/api/connections/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](https://docs.polymorfa.com/testing/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](https://docs.polymorfa.com/get-started/development-environment#install-the-typescript-sdk): typed clients, automatic retries and webhook
  verification.
- [CLI](https://docs.polymorfa.com/cli): call any endpoint with `polymorfa api` and forward events to
  your machine with `polymorfa listen`.
- OpenAPI documents: the machine-readable contracts.
  [One document](https://docs.polymorfa.com/openapi.json) covers all three APIs. Each API also has its own:
  [Messaging](https://docs.polymorfa.com/api-reference/openapi.json),
  [Platform](https://docs.polymorfa.com/api-reference/openapi.management.json) and
  [Graph](https://docs.polymorfa.com/api-reference/openapi.graph.json).

## See also

- [Developer resources](https://docs.polymorfa.com/development)
- [Handle errors](https://docs.polymorfa.com/development/error-handling)
- [Upgrade your integration](https://docs.polymorfa.com/development/upgrades)
