On this page
Guides / For platforms, SaaS and apps

For platforms, SaaS and apps

If your product has its own customers, give each one their WhatsApp with a Met that answers, without leaving your product. Where to start.

Updated View .md

Who it is for: you build a platform, a SaaS or an app with many customers —merchants, clinics, shops, real estate agencies— and you want each of them to have WhatsApp and an AI agent (a Met) that answers, inside your product.

What you can build today:

AI agents for SaaS tells the same story for whoever decides in your company, without the technical detail.

Two paths, depending on who owns the account

Your casePathHow you authenticate
You create and operate your customers' accountsTech Partner programPartner API key
Your customers already have a Meteor account and grant you accessOAuth appThe token each customer authorizes

Creating accounts, connecting WhatsApp and embedding the inbox are capabilities of approved Tech Partners. Their permissions only exist on partner keys, and none of them works with a test key (met_test_), because they create accounts and connect real numbers. Tech Partner is not bought: you apply through the Tech Partner program telling us what you build, the team reviews it and, once approved, it is enabled.

You don't need to wait for approval to start: your own trial account includes API access, and a test partner key lets you check that your backend handles every error along the way before you have the live key.

The path, in six steps

  1. Try the API on your account. Issue a key in Settings → Developers and run your first Met. See Authentication and Run Mets.
  2. Walk through Meteor inside. The four steps end to end —create the account, connect WhatsApp, confirm by webhook and mount the inbox—, with the minimal code for each one and a reference app. See Meteor inside.
  3. Create your customers' accounts. Idempotent sign-up, Energy, plan, monthly quotas and closure, which is in pilot. See Account provisioning.
  4. Connect their WhatsApp and show them their inbox. The connection link, the line notifications, the embedded inbox and what you can customize in it. See WhatsApp for platforms.
  5. Find out what happens without polling. Subscribe to events, verify the signature and watch the channel health of all your accounts. See Webhooks, Events and Channel status.
  6. If your customers already use Meteor, connect your app with OAuth and PKCE instead of asking for their API key. See Third-party OAuth apps.

Your own partner business —attributed customers, commissions, opportunities, projects and tickets— has its own API: Partners API.

Minimal example

From your backend, with the partner key: create a customer's account and request the link so they connect their WhatsApp from your page.

import Met from '@meteor.ia/sdk';

const met = new Met(process.env.MET_PARTNER_KEY!);

// 1. The customer's account: it is born attributed to you and without Energy
const account = await met.workspaces.create(
  { business_name: 'Restaurante La Esquina', owner_email: 'owner@laesquina.co', owner_name: 'Carlos Ruiz' },
  { idempotencyKey: `signup-${customer.id}` }, // a retry returns the same account
);
// Load Energy before their first message: met.workspaces.recharge(...)

// 2. The single-use link to connect their WhatsApp
const session = await met.workspaces.whatsappConnectSession(account.id, {
  return_origin: 'https://app.yourplatform.com', // an origin registered for your partner
});
// session.connect_url → open it on the customer's click; don't store it, it works once.
// The line confirmation arrives through the channel.line.connected webhook.

What it does not cover