Skip to main content
The MEGA public CRM Lead API lets your systems integrate with your MEGA CRM:
  • Pull — list and search your leads, with cursor pagination for incremental polling.
  • Push — create leads one at a time, or import up to 500 at once.
  • Webhooks — get notified in real time when a new lead is created, with HMAC-signed deliveries.

Base URL

All endpoints live under:
https://app.gomega.ai

Server-to-server only

These are secret-key endpoints. Call them from your backend — never from a browser or mobile app, and never embed your key in client-side code. There is no browser CORS access for the lead endpoints.

Authentication in one line

Every request needs two things: your Personal Access Token and your customer id.
curl https://app.gomega.ai/api/agents/crm/leads \
  -H "Authorization: Bearer mega_your_token_here" \
  -H "x-customer-id: 00000000-0000-0000-0000-000000000000"
See Authentication for how to get a key and which scopes each endpoint needs.

What’s here

Quickstart

Make your first request in a couple of minutes.

Pull leads

List, search, filter, and paginate leads.

Push leads

Create single leads or bulk-import them.

Webhooks

Receive & verify lead.created events.

Rate limits

Limits, headers, and 429 handling.

Errors

The consistent error envelope.