Sprint 347 โ API v2: RESTful API + Webhooks for External Integrations
ยท 2 min read
Pragma now ships a complete developer API โ REST endpoints, scoped API keys, real-time webhooks, and built-in documentation at /developer.
What's newโ
API v2 โ RESTful Endpointsโ
External tools and scripts can now talk directly to Pragma:
| Endpoint | Description |
|---|---|
GET /api/v2/workspace | Workspace info and stats |
GET /api/v2/signals | List signals from the inbox |
POST /api/v2/signals | Ingest a new signal |
GET /api/v2/leads | List leads (with pagination) |
GET /api/v2/leads/{id} | Get a single lead |
POST /api/v2/leads | Create a lead |
GET /api/v2/contacts | List contacts |
GET /api/v2/contacts/{id} | Get a single contact |
Granular API Key Scopesโ
Each API key gets exactly the permissions it needs:
signals:read/signals:ingestleads:read/leads:writecontacts:read/contacts:writedeals:readwebhooks:read/webhooks:write
Webhooks โ Real-time Eventsโ
When a webhook is registered, Pragma sends a POST immediately on these events:
signal.createdโ new signal in inboxlead.created/lead.updateddeal.updatedmessage.createdbilling.activated
All webhooks are HMAC-SHA256 signed (X-Pragma-Signature) and retried up to 5 times on failure.
Developer API in Settingsโ
Under Settings โ Developer API you can directly in the browser:
- Create API keys (with scope selection) and revoke them
- Register webhooks with any URL and event selection
- Securely copy new keys (shown once only)
Developer Docs at /developerโ
Full API documentation with code examples, curl snippets, and Zapier integration guide.
Why this mattersโ
API v2 is the foundation for Sprint 343 (Zapier Official App) and opens Pragma to the no-code ecosystem with 7,000+ Zapier apps and millions of Make users.