API

Drive your Wexio inbox from your own backend - send and receive across WhatsApp, Telegram, Viber, Instagram and Web with a scoped API key

The Wexio API lets you run your inbox from your own code. Mint an Org API key, give it the scopes it needs, and call the same GraphQL operations the dashboard uses: send and receive messages, triage conversations, sync contacts, connect channels, manage your team.

This section is for engineers. If you are an operator replying to conversations in the dashboard, see the main Documentation tab.

Two Ways to Use It

As a single organization. Your org, your key, your inbox. You mint a key, scope it, and automate your own conversations - a CRM sync, an escalation bot, a nightly export.

As a tech provider. Your organisation is of kind TECH_PROVIDER - you serve your own customers through Wexio's API, as a headless channel engine. You provision an isolated Wexio org per customer with PARTNER_ADMIN, and your key acts on any of them by naming it in X-Wexio-Org. Onboarding a client - org, channels, widget, help centre - is entirely headless. Your customers never see Wexio.

The API is the same in both cases. A tech provider is a superset: child-org targeting plus wholesale billing.

Concepts

TermMeaning
Org API keyA server-to-server credential, wx_<keyId>_<secret>, belonging to one org and carrying an explicit scope list.
ScopeA permission on the key, such as MESSAGES_SEND. A call without the required scope is refused.
Tech providerAn org of kind TECH_PROVIDER: it may provision and act on managed client orgs, and is billed by usage.
Client orgAn isolated org a tech provider provisions and manages (partnerRelation: MANAGED). Its usage rolls up to the provider.
X-Wexio-OrgHeader naming a managed child org to act on. Tech-provider keys only.
PARTNER_ADMINThe tech-provider scope. It, partnerUsageSummary, registerPartnerWebhook and partnerRelation: MANAGED all name the tech-provider model.
ConversationThe inbox row for a contact.
Chat (thread)One channel thread inside a conversation. Most operations take a chatId.

Two Auth Surfaces

SurfaceCredentialUsed for
MachineAuthorization: Bearer wx_...Everything in this reference: messaging, inbox, contacts, channels, team
DashboardMember loginMinting and revoking keys, and everything the API deliberately excludes

Key management cannot be done with a key - a leaked key can't mint more. Everything else, including partner provisioning, is available to a sufficiently scoped key. See Authentication.

What You Can Do

CapabilityScopeWhere
Send, edit, delete messages; react; upload mediaMESSAGES_SENDMessaging
Read conversations, messages, search, mediaMESSAGES_READReading the inbox
Triage: read state, close, assign, block, labelsCONVERSATIONS_MANAGEManaging the inbox
Read and write contacts and custom fieldsCONTACTS_READ / CONTACTS_MANAGEContacts
Connect channels, hosted Meta connect, manage the web widgetCHANNELS_MANAGEChannels
Publish Help articles and News posts, manage AI knowledge documentsCONTENT_READ / CONTENT_MANAGEContent
List and manage team membersTEAM_READ / TEAM_MANAGETeam
Receive live events over HTTP-Webhooks
Let AI agents work your inbox, contacts, channels and knowledge documents over MCPPer tool, see the scope tableMCP
Provision client orgs, fan-out webhook, usage (tech providers)PARTNER_ADMINClient orgs

Read What the API does not cover before you design around it.

Start Here

  1. Mint a key with the right scopes.
  2. Learn the auth model - scopes, PII masking, child orgs.
  3. Register a webhook to receive messages, then reply with sendMessage.
  4. Check the channel constraints before building first-touch messaging.

Was this page helpful?

On this page