Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
Shortcut: /, ⌘K or Ctrl+K

API reference

Find base URLs, authentication and the conventions shared by every Polymorfa API.

View as Markdown

Polymorfa has three HTTP APIs on one host. They share credentials, but each has its own paths and contract.

APIBase URLUse it toVersion
Messaginghttps://api.polymorfa.com/messagingConnect Connections and send messages with Polymorfa request and response typesPolymorfa-Version header
Platformhttps://api.polymorfa.com/platformManage projects, Customers, webhooks, events and other team resourcesPolymorfa-Version header
Graphhttps://api.polymorfa.com/graph/whatsapp/v26.0Use Meta-compatible requests with linked-device or Cloud API ConnectionsMeta-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.

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

Conventions#

TopicSummary
AuthenticationSend a team key, project token or client token as Authorization: Bearer.
ErrorsMessaging and Platform failures return an error object with a stable code. Graph returns Meta's error object.
Idempotent requestsSend Idempotency-Key to retry a write without repeating it.
PaginationList parameters belong to each method; cursor lists return page.nextCursor.
Rate limitsA 429 carries Retry-After and Polymorfa-RateLimit-Reason.
Request IDsEvery response has an X-Request-Id; send your own to correlate logs.
VersioningPin Polymorfa-Version: 2026-09-22.
EventsThe 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 api and forward events to your machine with polymorfa listen.
  • OpenAPI documents: the machine-readable contracts. One document covers all three APIs. Each API also has its own: Messaging, Platform and Graph.

See also#