This is the full developer documentation for La Growth Machine API # La Growth Machine API > Campaigns, audiences, leads, enrichment, LinkedIn and email messages, inbox and real-time webhooks, from your own code or your AI agent. Get started Get your API key, authenticate and make your first call in two minutes. [Quickstart →](/guides/quickstart/) API Reference 39 endpoints with request examples, responses and an interactive console. [Browse →](/api-reference) For AI agents `llms.txt`, the raw OpenAPI file and our MCP server, so Claude, ChatGPT or Cursor can use the API. [Read →](/agents/) Debugging Every call is logged in your workspace. [See how →](/guides/debugging/) # For AI agents > Machine-readable entry points to the La Growth Machine API. This site is built to be read by agents as well as humans. | Resource | URL | Use it for | | --------------- | --------------------------------- | ----------------------------------------------------------------------------------- | | `llms.txt` | [/llms.txt](/llms.txt) | Index of the docs, in Markdown, per [llmstxt.org](https://llmstxt.org) | | `llms-full.txt` | [/llms-full.txt](/llms-full.txt) | The whole documentation in one Markdown file | | OpenAPI 3.1 | [/openapi.yaml](/openapi.yaml) | Generate a client, tools or function definitions | | MCP server | `https://mcp.lagrowthmachine.com` | Let Claude, ChatGPT or Cursor act on your workspace, see [MCP server](/agents/mcp/) | ## Prompt to give your coding agent [Section titled “Prompt to give your coding agent”](#prompt-to-give-your-coding-agent) ```text You integrate with the La Growth Machine API. Read https://developers.lagrowthmachine.com/llms-full.txt for the guides and https://developers.lagrowthmachine.com/openapi.yaml for the exact endpoints. Authenticate with "Authorization: Bearer $LGM_API_KEY" and never log the key. Respect the rate limit: 50 calls per 10 seconds, back off on 429. Enrichment spends credits: check GET /credits first and ask before calling POST /leads/enrich. ``` # MCP server > Connect an AI assistant to your workspace. The La Growth Machine MCP server exposes your campaigns, audiences, leads and inbox as tools for MCP clients (Claude, ChatGPT, Cursor…). * URL: `https://mcp.lagrowthmachine.com` * Authentication: OAuth, you sign in with your La Growth Machine account. Note Tool list and per-client setup screenshots coming soon. # Authentication > Authenticate your requests with your API key. Base URL: `https://apiv2.lagrowthmachine.com/flow` Send your API key in a header. Two forms are supported. **Authorization header (recommended)** ```bash curl -H "Authorization: Bearer YOUR_API_KEY" https://apiv2.lagrowthmachine.com/flow/members ``` **`x-api-key` header** ```bash curl -H "x-api-key: YOUR_API_KEY" https://apiv2.lagrowthmachine.com/flow/members ``` Deprecated: query string `?apikey=YOUR_API_KEY` still works for backward compatibility and for the website visitor webhooks, whose third-party dashboards only accept a URL. It exposes the key in server logs, browser history and `Referer` headers: avoid it elsewhere. Never share your API key publicly: it gives full access to your workspace data. # Debugging > Every API call is logged in your workspace. Go to [app.lagrowthmachine.com/settings/api](https://app.lagrowthmachine.com/settings/api). You’ll find the history of your API calls: * the endpoint used (e.g. *Create Lead*, *List Audiences*); * the status (success or error) and a summary of the result (e.g. “139 audiences returned”); * the timestamp, and a toggle to show only failed requests. If your integration doesn’t behave as expected, check this log first. # Quickstart > Make your first API call. 1. Open **Settings → Integrations & API** in the app: [app.lagrowthmachine.com/settings/api](https://app.lagrowthmachine.com/settings/api). The API is available from the Pro plan. 2. Copy your API key. 3. Test it on `/members`: ```bash curl -H "Authorization: Bearer YOUR_API_KEY" \ https://apiv2.lagrowthmachine.com/flow/members ``` Expected response: ```json [{ "id": "lgm-member-id", "name": "Boris T.", "label": "Boris T." }] ``` Then browse the [API Reference](/api-reference). # Rate limits > 50 calls per 10 seconds per API key. API access is limited to **50 calls per 10 seconds per API key**. Above that, requests are rejected with `429 Too Many Requests`. * Retry with exponential backoff. * Avoid polling and tight loops; prefer [inbox webhooks](/api-reference#tag/inbox). * Cache what you can.