What the API covers
Base URL:
https://api.trypopcorn.ai
Before you start
- A WhatsApp number connected under Channels and at least one template approved by Meta. See 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 & Webhooks (in the Developer group).
2
Create the key
Click Create New API Key, enter a Key Description (optional) such as
Production, and click Generate API Key.3
Copy it now
The full key is shown once, in a banner with a Copy button. After you dismiss the banner, the list only shows the last four characters.
sk-. The table shows each key’s Description, Created date, Last Used date (or Never used), and Status (Active or Revoked). Click Revoke and confirm (“Are you sure you want to revoke this API key? This action cannot be undone.”); any application using it loses access immediately and the key cannot be restored. Revoked keys stay in the list.
The settings page describes these as manual keys that “bypass OAuth consent”, so keep them for backend integrations. 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 thePOPCORN-API-KEY header on every request:
/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. 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
Related
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.