Skip to main content
The Popcorn API lets your own systems send approved WhatsApp template messages through your connected WhatsApp number and receive delivery status updates back. It is meant for developers integrating an order system, CRM, or automation tool with Popcorn. Everything else, from campaigns to inbox triage, is done in the dashboard or through AI assistants.

What the API covers

Base URL: https://api.trypopcorn.ai

Before you start

  • A WhatsApp number connected under Integrations and at least one template approved by Meta. See Connect a WhatsApp number and Templates.
  • A role that can manage API keys. By default the Owner and Admin roles can create and revoke keys; the Manager role can only view the list. See Team and roles.

Create an API key

1

Open the developer settings

Go to Settings → API keys and webhooks (in the Developer group). The API keys panel reads “Use a key when your own server calls Popcorn AI.”
2

Create the key

Click Create API key (with no keys yet the page reads No API keys yet, with the same button), enter a Name (optional) such as Production, and click Create key. You see API key created. A key with no name is called Default.
3

Copy it now

Copy your API key shows the full key once: “You won’t see this key again. Store it somewhere safe.” Click Copy, then Done. The dialog closes only with Done. After that the list shows only a masked form, such as sk-...abcd.
Keys start with sk-. The table shows each key’s Name, Created date, Last used date (or Never used), and Status (Active or Revoked). To remove a key, click Revoke, then Revoke key on “Revoke name?” (“Apps using this key lose access right away. This can’t be undone.”). You see API key revoked; the key cannot be restored, and revoked keys stay in the list.
Keep API keys for backend integrations, where your own server calls Popcorn. To let ChatGPT, Claude, or Codex work in your workspace, use AI assistants instead; that connection needs no API key.

Authenticate requests

Send the key in the POPCORN-API-KEY header on every request:
The /api/v2 endpoints also accept Authorization: Bearer sk-your_popcorn_api_key. The /template endpoints accept only POPCORN-API-KEY. Each key belongs to one workspace, the one you were in when you created it. Requests act on that workspace’s templates, WhatsApp numbers, and Inbox; you cannot address another workspace with a key.

Authentication errors

Choosing between the API and AI assistants

Send a template

Request and response formats for both send endpoints, and how to list templates.

Message status webhooks

Configure the webhook URL, token, and events, and read the payload.

Templates

Create templates and get them approved by Meta before sending.

AI assistants

Run your workspace from ChatGPT, Claude, or Codex without an API key.