Documentation
Local GTM API
The Local GTM API lets you connect your own tools, CRMs, and workflows directly to your account. You can read opportunities, pull analytics, list replies, create campaigns, and receive real-time lead notifications via webhooks.
What you can do
- Opportunities - list, create, update, and bulk update your pipeline
- Campaigns - list campaigns with status and lead counts, or create new ones
- Analytics - pull summary stats and per-campaign performance data
- Pipeline - get opportunity counts and value broken down by stage
- Replies - list incoming replies with classifications
- Webhooks - register a URL to receive a
lead.createdevent every time a new lead is added to your account - Categories - list all available client and partner categories
Interactive API reference
The full API reference is available at the link below. Every endpoint is documented with request parameters, response shapes, and examples you can run directly in your browser.
Getting an API key
- Go to Settings in your dashboard
- Click API Keys
- Click Create API key - choose read-only or read-write access
- Copy the key immediately - it is only shown once
All API requests require the key in the Authorization header:
Authorization: Bearer lgm_live_...Rate limits
- 10 requests per minute per API key
- 100 requests per minute across all keys globally
When you hit the limit you will receive a 429 response with a Retry-After header.
Webhooks
Register a webhook URL and LocalGTM will send a signed POST request every time a new lead is created in your account. Verify the signature using the X-LocalGTM-Signature header (HMAC-SHA256).
Using with Claude Code or other AI tools
The API is compatible with any MCP client. If you use Claude Code or a similar AI assistant, you can point it at your API key and let it query your pipeline, update opportunities, and pull analytics directly from a conversation.
Support
If you have questions or need help building an integration, reach out to us at [email protected].