WASync Connections API

Discover and manage the WhatsApp connections an access token may use.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 13

GET /connections List authorized connections #
POST /connections Create a new connection #
GET /connections/{id} Get connection status #
DELETE /connections/{id} Delete a connection #
POST /connections/{id}/restart Restart a connection session #
POST /connections/{id}/logout Log out a connection #
POST /connections/{id}/pairing-code Request a pairing code (link with phone number) #
GET /connections/{id}/groups List a connection's WhatsApp groups #
GET /connections/{id}/visibility Get a connection's API visibility #
PUT /connections/{id}/visibility Limit (or restore) a connection's API visibility #
GET /grants List the app authorizations of the workspace #
GET /grants/{id}/visibility Get an app authorization's API visibility #
PUT /grants/{id}/visibility Limit (or restore) one app authorization's API visibility on a connection #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wasync-app:wasync-app-connections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wasync-app-connections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WASync WhatsApp Platform Connections API
  version: 1.0.0
  description: 'Send and receive WhatsApp from your app or AI agent — beyond Bitrix24.


    The same WhatsApp connections WASync runs inside Bitrix24 CRM are exposed here as a REST API (and a remote MCP server at `https://cloudapi.wasync.app/api/mcp`).


    **Auth — start with an API key.** Create one at https://developers.wasync.app/keys and send it as `Authorization: Bearer wsk_live_…`. That is the whole setup for a partner automating their OWN account: no redirect URI, no PKCE, no consent screen, no token refresh. Keys carry scopes and an optional IP allowlist, and are revocable from the same page.


    **OAuth 2.0 is the other path**, for an app that OTHER WASync customers install: Authorization Code with **PKCE (S256 required)**, token endpoint `client_secret_post`, discovery at `https://cloudapi.wasync.app/.well-known/oauth-authorization-server`. Use it when a third party must consent to connections they own; use a key otherwise. Both credential types are accepted on every endpoint in this spec, in the same `Authorization: Bearer` header.


    **Access gate:** only connections with an active licence / per-connection API add-on are visible and sendable. Pricing and activation: https://developers.wasync.app/billing


    **Base URL.** The canonical host is `https://developers.wasync.app/api/v1`. The older `https://cloudapi.wasync.app/api/v1` is a permanent alias for the same API and remains valid indefinitely — existing integrations pointed at it need no change. (The OAuth endpoints, the `/.well-known/…` discovery documents and the MCP server URL are protocol identifiers already registered by clients: they stay on `cloudapi.wasync.app` and are unchanged.)


    **Provisioning:** `POST /connections` (create + initial QR) → `GET /connections/{id}` (poll status/QR) → `POST /connections/{id}/pairing-code` (an 8-character code the customer types into WhatsApp instead of scanning — for the very common case where the phone running WhatsApp is the same device your flow is open on; **a code is not always available, so keep the QR flow as a fallback**) → `POST /connections/{id}/restart` (re-pair a broken session) → `POST /connections/{id}/logout` (clear credentials) → `DELETE /connections/{id}` (permanent). With an API key you can create a workspace''s very first connection over the API — nothing has to be clicked in a portal UI first. `GET /account` reports the slot quota before you provision.


    **Webhooks:** set your endpoint with `PUT /webhook` and you get a signing secret back; rotate it with `POST /webhook/rotate`. Five event types are delivered: `message.received`, `message.status`, `connection.disconnected`, `connection.connected` and `message.transcribed` (a voice note''s transcript is ready — schema `MessageTranscribedEvent`). The first four fire for **QR/WAPP connections (`provider: qr`) only** — Meta/WABA connections (`provider: cloud_api`) emit no message webhooks today; poll `GET /messages` and `GET /connections/{id}` for those. `message.transcribed` fires on every connection whose portal has voice-note transcription on. An endpoint configured before an event type existed receives it after `PUT /webhook` is called again. Disconnect detection is typically **≤ 5 minutes** (status probe) and can take **~15–20 minutes** on the restart-failure path. Full contract: https://developers.wasync.app/docs/webhooks


    Quickstart: https://developers.wasync.app/docs'
  contact:
    name: WASync Developers
    url: https://developers.wasync.app/docs
servers:
- url: https://developers.wasync.app/api/v1
  description: Production REST v1 (canonical host)
- url: https://cloudapi.wasync.app/api/v1
  description: Production REST v1 — legacy alias. Identical API, kept working indefinitely; existing integrations need no change.
security:
- apiKey: []
- oauth2:
  - whatsapp.read
tags:


# --- truncated at 32 KB (58 KB total) ---
# Full source: https://artifacts.apis.io/wasync-app/openapi/wasync-app-connections-api-openapi.yml