# 45 · Build an app with "Connect with Wsapme" (developer guide)

**Purpose:** for developers of a POS, CRM, course platform, shop or any system used by many businesses: let each customer connect their Wsapme workspace with one click (OAuth 2.1 with PKCE), then call the Wsapme API and receive webhooks on their behalf, without asking anyone to copy an API key.

## Before you start

- A Wsapme workspace of your own whose plan includes the developer API. You must be its owner or an admin.
- A server that can keep a secret (the flow below is for server-side apps; never put the client secret in a mobile app or a web page).
- The API reference: **Developers → API reference** (`https://v3.wsapme.com/api/v1/openapi.json`).

> The screenshots and the video use the demo workspace with Demo mode on and **Demo POS**, a made-up private app registered there for this guide, with the redirect URI `http://localhost:8080/callback` (its pages were served on the recording computer). The OAuth flow in the video is real: consent, code, tokens, `GET /api/v1/me`, refresh, introspect and revoke. The client secret and every token are hidden in every frame. No webhook was created and nothing was sent; the app was deleted afterwards.

**Watch first (5:07, Malay narration):** [Build an app with "Connect with Wsapme"](https://v3.wsapme.com/guide-media/video/45-build-an-app-with-connect-with-wsapme-malay.mp4). Registering an app (name, publisher, redirect URIs, permissions), the client ID and the one-time client secret (hidden), the logo and endpoints, Private and Submit for listing, then the OAuth flow in a terminal: PKCE and state, the Connect link, consent, the callback with `code` and `state`, the code exchange, `GET /api/v1/me`, refresh, introspect, webhooks (shown, not run), revoke, the app's Webhook and AI coding agent cards and the Request log.

## Part 1 · Register your app

1. Open **Developers → Your apps** and click **Register an app**.

   ![Developers → Your apps with no apps yet and the Register an app button](https://v3.wsapme.com/guide-media/img/partnerapps/45-01-your-apps-empty.webp)
2. Fill in: **App name**, **Publisher** (your company), a short **description**, **Website** and **Privacy policy** (https), and your **Redirect URIs**: the exact addresses Wsapme may send people back to, for example `https://pos.example.com/wsapme/callback`. They are matched character by character: no wildcards, no `#`. `http://localhost` is allowed while you build. **Open app link** (optional, https) is where **Open** and menu shortcuts in a customer's workspace take people; empty means your website. Wsapme adds `?wsapme_workspace=<workspace id>` to it (before any `#`), so you can open the right account; check it against the `workspace_id` your token gives (`GET /v1/me` or introspection), never trust it alone.

   ![Register an app: Demo POS, Demo POS Sdn Bhd, a short description, website and privacy policy](https://v3.wsapme.com/guide-media/img/partnerapps/45-02-register-form.webp)
3. Tick the **permissions the app may ask for**. They are the API key scopes (for example `contacts:read`, `messages:send`, `webhooks:write`). Ask only for what you need: people see each one in plain words and can untick them.

   ![Two redirect URIs (http://localhost:8080/callback and https://pos.example.com/wsapme/callback) and the permissions list with webhooks:write ticked](https://v3.wsapme.com/guide-media/img/partnerapps/45-03-permissions.webp)
4. Click **Register app**. Copy the **client secret** (`wsp_secret_…`) now: it is shown once. The **client ID** is `wsp_…`. **New client secret** makes a new one; the old one stops at once.

   ![Your client secret, shown once (hidden here), and the Credentials card with the client ID](https://v3.wsapme.com/guide-media/img/partnerapps/45-04-secret-once.webp)
5. Upload a **logo** (PNG, JPEG or WebP, square, up to 512 KB). The Credentials card also lists the **Endpoints** and an example **Connect with Wsapme link** for this app (your server fills in the state and PKCE values).

   ![The app with its logo, the client ID, Endpoints and the example Connect link](https://v3.wsapme.com/guide-media/img/partnerapps/45-05-credentials-endpoints.webp)

Your app starts **Private**: only your own workspace can connect it. Build and test with it. When it is ready, click **Submit for listing** (it needs a logo, website, privacy policy, publisher and https redirect URIs only). A Wsapme admin reviews it; once **Listed**, any workspace can connect it. Wsapme can also **suspend** an app, which stops all its tokens at once.

**Submit for listing** stays grey while something is missing; the Listing card says what, for example "Before you submit, add https return addresses only (remove the localhost ones)". So keep a separate private app for `localhost` testing, or remove the localhost address before you submit.

![The Listing card: Submit for listing is grey until only https return addresses are left; below it, Delete app](https://v3.wsapme.com/guide-media/img/partnerapps/45-06-submit-for-listing.webp)

The review itself happens in **Admin → Partner apps**, a page for Wsapme platform admins only (filter by status, **List**, **Reject** or **Suspend** with a note the developer sees, **Unlist**, **Unsuspend**). It is not in the video: the demo account is not a platform admin. The note from Wsapme shows on your app's page when it is rejected or suspended.

## Part 2 · The OAuth flow

| Step | Endpoint |
|---|---|
| Authorize (browser) | `GET https://v3.wsapme.com/oauth/authorize` |
| Token | `POST https://v3.wsapme.com/oauth/token` |
| Revoke (RFC 7009) | `POST https://v3.wsapme.com/oauth/revoke` |
| Introspect (RFC 7662) | `POST https://v3.wsapme.com/oauth/introspect` |
| Discovery (RFC 8414) | `GET https://v3.wsapme.com/.well-known/oauth-authorization-server` |
| API (the token's audience) | `https://v3.wsapme.com/api/v1` |

**1. Make a PKCE pair and a state**, and keep both in the user's session:

```bash
CODE_VERIFIER=$(openssl rand -base64 48 | tr -d '=+/\n' | cut -c1-64)
CODE_CHALLENGE=$(printf '%s' "$CODE_VERIFIER" | openssl dgst -sha256 -binary | openssl base64 | tr '+/' '-_' | tr -d '=\n')
STATE=$(openssl rand -hex 16)
```

**2. Send the person to Wsapme** (your "Connect with Wsapme" button is a link):

```
https://v3.wsapme.com/oauth/authorize?response_type=code
  &client_id=wsp_…
  &redirect_uri=https%3A%2F%2Fpos.example.com%2Fwsapme%2Fcallback
  &scope=contacts%3Aread%20messages%3Asend%20webhooks%3Awrite
  &state=$STATE
  &code_challenge=$CODE_CHALLENGE
  &code_challenge_method=S256
```

Rules: `code_challenge_method=S256` only, `state` is required, `scope` only lists scopes you registered (empty = all of them), `resource` may be left out (it can only be `https://v3.wsapme.com/api/v1`). The person signs in, chooses a workspace, may untick scopes or limit you to some WhatsApp numbers, and clicks **Allow**. (What the customer sees is in [44 · Connected apps](https://v3.wsapme.com/guides/connected-apps.md).) While your app is private, the page warns **Not reviewed by Wsapme**, and with a `localhost` redirect URI also **An app on this computer**.

![The consent page for Demo POS: app box, Not reviewed by Wsapme, An app on this computer, Workspace and What Demo POS may do](https://v3.wsapme.com/guide-media/img/partnerapps/45-07-consent.webp)

**3. Wsapme redirects back** to your redirect URI:

```
https://pos.example.com/wsapme/callback?code=wso_ac_…&state=…&iss=https%3A%2F%2Fv3.wsapme.com
```

Check that `state` is the one you stored (refuse the request otherwise). If the person clicked Cancel you get `error=access_denied` instead.

**4. Exchange the code** within 5 minutes (one use only), with your client ID and secret as HTTP Basic, everything in the POST body:

```
curl -s https://v3.wsapme.com/oauth/token -u "$CLIENT_ID:$CLIENT_SECRET" \
  -d grant_type=authorization_code -d code="$CODE" \
  -d redirect_uri=https://pos.example.com/wsapme/callback -d code_verifier="$CODE_VERIFIER"
```

```json
{"access_token": "wso_at_…", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "wso_rt_…", "scope": "messages:send contacts:read webhooks:write"}
```

`scope` is what the person actually allowed (and their plan includes): check it, it can be less than you asked for. Store the tokens encrypted, per workspace.

**5. Call the API** exactly like with an API key:

```
curl -s https://v3.wsapme.com/api/v1/me -H "Authorization: Bearer $ACCESS_TOKEN"
curl -s https://v3.wsapme.com/api/v1/messages -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" -d '{"to": "+60123456789", "text": "Your order has shipped!"}'
```

`GET /me` tells you the workspace (`workspace.id`). One token = one workspace. The answer describes the connection like an API key: `"object": "api_key"`, `"name": "<App> (connected app)"`, `"prefix": "oauth"`, the allowed `scopes` and `device_ids` (empty = all numbers).

Every call shows in the customer's **Developers → Request log** under the app's name, for example **Demo POS (app)**.

![Developers → Request log: GET /api/v1/me by Demo POS (app)](https://v3.wsapme.com/guide-media/img/partnerapps/45-08-request-log.webp)

## Part 3 · Refresh, revoke, introspect

Access tokens last **1 hour**. Refresh before or when you get `401 invalid_token`:

```
curl -s https://v3.wsapme.com/oauth/token -u "$CLIENT_ID:$CLIENT_SECRET" -d grant_type=refresh_token -d refresh_token="$REFRESH_TOKEN"
```

Refresh tokens **rotate**: every refresh gives a new refresh token and the old one stops. Using an old one again is treated as a leak and ends that chain of tokens, so save the new one before you use the new access token (and never refresh the same token from two servers at once). A refresh token is valid for 30 days from when it was issued.

- **Disconnect** (the customer clicked "Disconnect Wsapme" in your app): revoke the refresh token. This ends the connection in Wsapme and deletes your webhook endpoints there.
  `curl -s https://v3.wsapme.com/oauth/revoke -u "$CLIENT_ID:$CLIENT_SECRET" -d token="$REFRESH_TOKEN"` (always `200 {}`)
- **Introspect** a token of your app: `curl -s https://v3.wsapme.com/oauth/introspect -u "$CLIENT_ID:$CLIENT_SECRET" -d token="$ACCESS_TOKEN"` gives `active`, `scope`, `exp`, `workspace_id`, `device_ids` (empty = all numbers) and `sub` (the connection id). Another app's token, or a dead one, is `{"active": false}`.

The customer can also disconnect you at any time in **Settings → Connected apps**; your tokens then answer `401 invalid_token` and refreshing answers `invalid_grant`. Connect again from your app.

## Part 4 · Webhooks

Two ways: one **app webhook** for every workspace that connects your app (the **Webhook** card on your app's page, or the MCP tools below), or endpoints you create per workspace with the token.

![The Webhook card on the app's page: an optional Webhook URL and Save webhook](https://v3.wsapme.com/guide-media/img/partnerapps/45-09-app-webhook-card.webp)


With `webhooks:write`, create your own endpoint for this workspace with the token (the `secret` is in the answer once):

```
curl -s https://v3.wsapme.com/api/v1/webhook-endpoints -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" -d '{"url": "https://pos.example.com/wsapme/webhook", "events": ["message.received", "message.status"]}'
```

- Your app sees and changes **only its own endpoints** (and their deliveries), at most 5 per workspace. The workspace's other endpoints are invisible to you.
- They are **deleted when the workspace disconnects your app** (or you revoke the refresh token). Connecting again keeps them.
- Connections limited to some numbers cannot use webhooks (`403 key_limited`).

Every delivery is signed. `X-Wsapme-Signature` is `sha256=` + hex HMAC-SHA256 of `{X-Wsapme-Timestamp}.{raw body}` with the endpoint's secret. Check it on the raw body, and refuse timestamps older than 5 minutes:

```php
$ok = hash_equals('sha256='.hash_hmac('sha256', $_SERVER['HTTP_X_WSAPME_TIMESTAMP'].'.'.file_get_contents('php://input'), $secret),
    $_SERVER['HTTP_X_WSAPME_SIGNATURE'] ?? '');
```

The SDKs do it for you: `verifyWebhook()` (JavaScript) and `Wsapme\Webhook::constructEvent()` (PHP).

## Part 5 · Scopes, limits and errors

**Scopes** are the API key scopes, listed in the API reference and in the OpenAPI spec (`components.securitySchemes.oauth2`; each operation lists the scope it needs). A scope whose feature is not in the workspace's plan (for example broadcasts) is never granted.

**Rate limits**: 120 API requests a minute per connection and 600 per workspace (all keys and apps together), answered `429 rate_limited` with `Retry-After`. Token endpoint: 60 a minute per address and 300 a minute per app (`429 slow_down`). Authorize: 30 a minute per person.

| Where | Error | Meaning |
|---|---|---|
| Authorize (redirect) | `invalid_request` | No `state`, no PKCE, or not S256 |
| Authorize (redirect) | `invalid_scope` | A scope you did not register |
| Authorize (redirect) | `invalid_target` | A `resource` that is not the Wsapme API |
| Authorize (redirect) | `access_denied` | The person clicked Cancel |
| Authorize (page, no redirect) | "return address it did not register" | `redirect_uri` is not exactly one you registered |
| Token | `invalid_client` (401) | Wrong client ID or secret, or the app is suspended |
| Token | `invalid_grant` | Code expired, used twice or wrong verifier; refresh token used twice, expired or revoked |
| Token | `invalid_request` | Code, verifier, refresh token or secret sent in the URL instead of the body |
| API | `401 invalid_token` | Access token expired or revoked, or not issued for the API: refresh or connect again |
| API | `403 insufficient_scope` | The person did not allow that scope |
| API | `403 key_limited` | Workspace-wide endpoint on a connection limited to some numbers |
| API | `403 feature_not_available` | The workspace's plan does not include it |

## Part 6 · The SDKs

**JavaScript** (`npm install @wsapme/sdk`):

```js
import { Wsapme, WsapmeOAuth } from '@wsapme/sdk';

const oauth = new WsapmeOAuth({ clientId: process.env.WSAPME_CLIENT_ID, clientSecret: process.env.WSAPME_CLIENT_SECRET, redirectUri: 'https://pos.example.com/wsapme/callback' });
const { url, state, codeVerifier } = await oauth.authorizationUrl({ scopes: ['contacts:read', 'messages:send'] });
// save state + codeVerifier in the session, redirect to url … then in the callback:
const tokens = await oauth.exchangeCode({ code: req.query.code, codeVerifier, state: req.query.state, expectedState: state });
const wsapme = new Wsapme({ accessToken: tokens.access_token });
await wsapme.sendMessage({ to: '+60123456789', text: 'Your order has shipped!' });
const next = await oauth.refresh(tokens.refresh_token); // store next.refresh_token
```

**PHP** (`composer require wsapme/wsapme-php`):

```php
$oauth = new Wsapme\OAuth(getenv('WSAPME_CLIENT_ID'), getenv('WSAPME_CLIENT_SECRET'), 'https://pos.example.com/wsapme/callback');
$link = $oauth->authorizationUrl(['contacts:read', 'messages:send']); // store $link['state'] and $link['code_verifier']
$tokens = $oauth->exchangeCode($_GET['code'], $codeVerifier, $_GET['state'] ?? null, $storedState);
$wsapme = new Wsapme\Client($tokens['access_token']);
```

## Build with an AI coding agent (MCP)

Let Claude Code, Cursor or ChatGPT do the setup and the coding. The Wsapme MCP server has **developer tools** for your own apps and reads these docs for the agent, so it never needs to open this site.

Your app's page has a **Build with an AI coding agent** card with the **MCP server URL** and the Claude Code command to copy.

![Build with an AI coding agent: the MCP server URL and the claude mcp add command](https://v3.wsapme.com/guide-media/img/partnerapps/45-10-ai-coding-agent-card.webp)

1. Add the MCP server `https://v3.wsapme.com/mcp` to your agent. In Claude Code:

```
claude mcp add --transport http wsapme https://v3.wsapme.com/mcp
```

   In Cursor or ChatGPT, add a remote MCP server with the same address.
2. Sign in as an **owner or admin** of the workspace that owns the app. On the Allow page, tick **Build apps**.
3. Ask, for example: *"Register a Wsapme app called KedaiPOS with the return address http://localhost:3000/wsapme/callback and the scopes contacts:read and messages:send. Put the client secret in .env and write the OAuth callback in Express."*

| Tool | What it does |
|---|---|
| `list_developer_apps`, `get_developer_app` | Your apps, their status, endpoints and webhook settings |
| `create_developer_app`, `update_developer_app` | Register or change an app: name, logo URL, return addresses, scopes, webhook URL |
| `rotate_developer_app_secret` | A new client or webhook secret (the old one stops at once, so the agent asks you first) |
| `build_authorize_url` | A ready Connect link with `state` and PKCE, to try the sign-in |
| `create_test_connection` | **Sandbox**: tokens for your own workspace in test mode (real data, simulated sending, no other changes) |
| `list_app_connections` | Which workspaces connected the app, with scopes and number limits |
| `list_app_webhook_deliveries`, `resend_app_webhook_delivery`, `send_app_test_webhook` | Find failed webhooks, send one again, or send a test event to your endpoint |
| `introspect_app_token` | Check one of your app's tokens |
| `get_app_tools`, `refresh_app_tools`, `test_app_tool` | Your app's own tools (Part 7): the list assistants see, fetch the manifest again, send a test call |
| `get_api_reference`, `list_api_scopes`, `list_webhook_event_types`, `get_oauth_quickstart` | The API reference by tag, path or operation, scopes in plain words, webhook events with sample bodies, and server code (Node, PHP, Python) |

- **Secrets** (client secret, webhook secret, test tokens) are in the tool result once. Tell the agent to write them into `.env`, never into code or chat. Wsapme never logs them.
- **App webhook**: give the app a webhook URL and events, and every workspace that connects it with `webhooks:write` (all numbers) sends events there, signed with the app's one webhook secret. You can still create endpoints with the token as in Part 4.
- **AI features for your customers**: your app's access token also works on `https://v3.wsapme.com/mcp`, with the scopes the customer allowed. Your app can hand it to its own AI assistant.
- Scripts can do the same over the REST API at `/api/v1/developer/…` with an API key that has `developer_apps:read` and `developer_apps:write` (Developers → API keys).

## Part 7 · Your app's own tools in Claude and ChatGPT

Your customers already talk to Wsapme from Claude or ChatGPT through the Wsapme connector. Give your app a **Tools URL** and your app's own tools (for example *create a course*, *add a recipe step*, *answer a student*) appear in that same connector, for every workspace that connected your app. The customer manages your app from the chat, with one connector.

1. On your server, add one address (for example `https://kelas.example.com/wsapme/tools`) that answers:
   - a signed **GET** (empty body) with your **manifest**, the list of tools;
   - a signed **POST** with one **tool call**, by running the tool and answering JSON.
2. Open **Developers → Your apps → your app → Tools for AI assistants**, enter the **Tools URL** and a **Name prefix** (for example `kelas`), and click **Save tools**. Copy the **tools secret**: it is shown once.
3. Wsapme reads the manifest at once and shows each tool as `kelas_create_course`. Problems in the manifest are listed on the card; the last good list stays in use until you fix them. **Fetch again** after you change the manifest (Wsapme also reads it again every 6 hours while it is used).
4. The customer connects Claude or ChatGPT to Wsapme and ticks **Use connected apps** on the Allow page (owners and admins only).

The manifest:

```json
{
  "schema_version": 1,
  "tools": [
    { "name": "list_courses", "title": "List courses", "access": "read",
      "description": "The courses with their price, seats left and status. Use it before changing a course.",
      "input_schema": { "type": "object", "properties": { "status": { "type": "string", "enum": ["draft", "published"] } } } },
    { "name": "create_course", "title": "Create a course", "access": "write", "confirm": true,
      "description": "Creates a draft course. Students only see it after publish_course.",
      "input_schema": { "type": "object", "properties": { "title": { "type": "string" }, "price": { "type": "number" } }, "required": ["title", "price"] } },
    { "name": "delete_recipe", "access": "write", "destructive": true,
      "description": "Deletes a recipe and its steps for good.",
      "input_schema": { "type": "object", "properties": { "recipe_id": { "type": "string" } }, "required": ["recipe_id"] } }
  ]
}
```

- `name`: 2–48 lower-case letters, digits and `_`. Up to 50 tools, `description` 10–1000 characters, `input_schema` a JSON Schema object of up to 16 KB (local `$ref` only), the whole manifest up to 256 KB.
- `access`: `read` (only reads) or `write` (changes data). `destructive: true` (cannot be undone) and `confirm: true` make the assistant show the change and ask the user first: Wsapme adds a `confirm` argument and refuses the call until it is `true`. Only owners' and admins' connections see `write` tools; test keys never call them.

A tool call (POST body):

```json
{ "object": "tool_call", "id": "call_9f2c…", "tool": "create_course", "arguments": { "title": "Rendang 101", "price": 120 },
  "app_id": "wsp_…", "workspace": { "id": "…", "name": "Kelas Masak Aina" }, "connection_id": "…",
  "user": { "id": "…", "name": "Aina", "email": "aina@example.com", "role": "owner" }, "confirmed": true, "test": false, "created_at": "…" }
```

- Check `X-Wsapme-Signature` exactly like webhooks, with the **tools secret**: `sha256=` + hex HMAC-SHA256 of `<X-Wsapme-Timestamp>.<raw body>` (an empty body for the GET). Refuse timestamps older than 5 minutes.
- Find the customer by `workspace.id` (or `connection_id`, the `sub` of your app's tokens). Check `user.role` if only owners may do something in your app.
- `id` is the same when the call is retried: do a change once per id.
- Answer within **20 seconds**, JSON of up to **256 KB**. An error is a 4xx/5xx with `{"error": {"message": "…"}}`: the assistant shows your message to the user.

With the SDKs:

```js
import { verifyToolRequest, toolManifest, toolError } from '@wsapme/sdk';

app.all('/wsapme/tools', express.raw({ type: '*/*' }), async (req, res) => {
  const call = await verifyToolRequest({ payload: req.body?.toString() ?? '', signature: req.get('X-Wsapme-Signature'),
    timestamp: req.get('X-Wsapme-Timestamp'), secret: process.env.WSAPME_TOOLS_SECRET }).catch(() => null);
  if (!call) return res.status(401).end();
  if (req.method === 'GET') return res.json(toolManifest(TOOLS));
  if (call.tool === 'create_course') return res.json(await createCourse(call.workspace.id, call.arguments));
  res.status(404).json(toolError('Unknown tool.'));
});
```

```php
$call = Wsapme\Tools::parseRequest(file_get_contents('php://input'), $_SERVER['HTTP_X_WSAPME_SIGNATURE'] ?? '',
    $_SERVER['HTTP_X_WSAPME_TIMESTAMP'] ?? '', getenv('WSAPME_TOOLS_SECRET')); // throws on a bad signature
if ($_SERVER['REQUEST_METHOD'] === 'GET') { echo json_encode(Wsapme\Tools::manifest($tools)); exit; }
```

**Try it before your customers do.** The MCP developer tools `get_app_tools` (the list as assistants see it, problems, an example manifest), `refresh_app_tools` and `test_app_tool` (one signed call as your own workspace, with `"test": true`, showing the answer or the error an assistant would get) work from Claude Code. Set the Tools URL with `update_developer_app` (`tools_url`, `tools_prefix`). A **test connection** (`create_test_connection`) also shows your tools in your own assistant, marked as a test, read tools only. Every call is in **Developers → Request log** under your app's name. Over REST: `GET /api/v1/app-tools`, `POST /api/v1/app-tools/{name}/call` and `/api/v1/developer/apps/{id}/tools…` (API reference, tag **App tools**).

## Common problems

| Problem | What to do |
|---|---|
| The consent page says the return address is not registered | Register the exact `redirect_uri` (scheme, host, port, path, trailing slash) under **Your apps**, and send exactly that string. |
| `invalid_client` on the token endpoint | Send the client ID and secret as HTTP Basic (or `client_id` + `client_secret` in the body). If you made a new secret, the old one stopped at once. |
| `invalid_grant: The PKCE code_verifier does not match.` | Send the same verifier you made the challenge from, in the POST body. The challenge is base64url (no `=`) of SHA-256 of the verifier. |
| `invalid_grant` when refreshing | The refresh token was already used (refresh tokens rotate), expired, or the customer disconnected the app. Save the new refresh token every time; connect again if needed. |
| Customers of other workspaces see "No workspace you can connect" | Your app is still **Private**. Submit it for listing under **Your apps**. |
| `401 invalid_token` on the API | The access token expired (1 hour): refresh it. An MCP (Claude/ChatGPT) token never works on the REST API (your app's token does work on MCP). |
| `403 insufficient_scope` | The person unticked that permission, or the workspace's plan does not include it. Check `scope` in the token answer; ask them to connect again if they want to allow more. |
| `403 key_limited` when creating webhooks | The person limited your app to some WhatsApp numbers. Webhooks need a connection for all numbers. |
| `409 webhook_limit_reached` | Your app has 5 endpoints in this workspace (or the workspace has 10). Delete one you no longer use. |
| **Submit for listing** is grey | The Listing card names what is missing. Most often a `localhost` redirect URI: listed apps need https return addresses only. Keep a second private app for local testing. |
| The developer tools are missing in your AI agent | Connect again and tick **Build apps** on the Allow page. Only owners and admins can use them (`403 developer_only`). Refresh the agent's tool list after connecting. |
| A test connection answers `403 test_mode` | Test connections only read and simulate sending. Use the live connection (Connect with Wsapme) to change data. |
| Customers cannot add your app to their menu | **Add to menu** needs a Website or an **Open app link**. A customer's own link must be https on the same host as one of those two. |
| Your app's tools are missing in Claude or ChatGPT | The customer ticks **Use connected apps** when connecting (owners, admins), then refreshes the tool list. Fix any problem on the Tools card. |
