# Overview

> Trigger calls, send events, sync contacts and records, send transactional email and WhatsApp templates with the Lemu AI REST API

URL: https://docs.lemuai.com/api-reference/overview

The Lemu AI REST API covers a small, stable set of tasks:

| Task | Endpoint |
|---|---|
| Place an outbound call with a voice agent | [Trigger an outbound call](https://docs.lemuai.com/api-reference/calls/trigger) |
| Start journeys when something happens in your system | [Send an event](https://docs.lemuai.com/api-reference/events/trigger) |
| Look up your voice agents | [List agents](https://docs.lemuai.com/api-reference/agents/list) |
| See the calls a voice agent has made | [List calls](https://docs.lemuai.com/api-reference/agents/runs/list) |
| See your campaigns | [List campaigns](https://docs.lemuai.com/api-reference/campaigns/list) |
| Keep contacts in sync with your CRM | [Contacts](https://docs.lemuai.com/api-reference/contacts/overview) |
| Record a person's opt-in or opt-out for email, SMS, WhatsApp or voice | [Contact consent](https://docs.lemuai.com/api-reference/contacts/consents) |
| See everything a person did, or every message and call they got | [Contact activity](https://docs.lemuai.com/api-reference/contacts/activity) and [Contact messages](https://docs.lemuai.com/api-reference/contacts/messages) |
| Send orders, subscriptions or bookings to use in journeys and segments | [Custom records](https://docs.lemuai.com/api-reference/records/overview) |
| Send an order, shipping or account email | [Send a transactional email](https://docs.lemuai.com/api-reference/email/send) |
| Send a WhatsApp template (order update, reminder, login code, offer) to one number | [Send a WhatsApp template](https://docs.lemuai.com/api-reference/whatsapp/send-template) |
| See whether a WhatsApp message was delivered and read | [Get a WhatsApp message](https://docs.lemuai.com/api-reference/whatsapp/get-message) |
| Check which events reached LemuAI | [List events](https://docs.lemuai.com/api-reference/events/list) |

Events, contacts and records find the right person by phone number, `external_id` (your own customer ID) or email, so a contact without a phone number can still be matched. See [how the contact is found](https://docs.lemuai.com/api-reference/events/trigger#how-the-contact-is-found).

Everything else (building agents and journeys, running campaigns, recordings and transcripts) is done in the Lemu AI dashboard.

## Base URL

All requests go to:
```
https://app.lemuai.com/api/v1
```

The version (`v1`) is part of the path.

## Authentication

Every request needs an API key from your organization in the `X-API-Key` header. See [Authentication](https://docs.lemuai.com/api-reference/authentication).

**cURL**

```bash
curl https://app.lemuai.com/api/v1/workflow/fetch \
  -H "X-API-Key: lemu_your_api_key"
```

**JavaScript**

```js
const res = await fetch("https://app.lemuai.com/api/v1/workflow/fetch", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.LEMU_API_KEY,
  },
});
if (!res.ok) throw new Error(`LemuAI API ${res.status}: ${await res.text()}`);
const data = await res.json();
console.log(data);
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.lemuai.com/api/v1/workflow/fetch",
    headers={
        "X-API-Key": os.environ["LEMU_API_KEY"],
    },
    timeout=30,
)
response.raise_for_status()
print(response.json())
```

## Request and response format

Send request bodies as JSON with the `Content-Type: application/json` header. Responses are JSON. Errors return a `detail` field; see [Errors](https://docs.lemuai.com/api-reference/errors).

## Getting call results

The recommended way to receive the outcome of a call (what was said, what the agent captured, how it ended) is to add a [Webhook node](https://docs.lemuai.com/voice-agent/webhook) to your agent. Lemu AI then posts the result to your system when the call finishes, so you don't need to poll.

**Note:** Connecting an AI assistant such as Claude or Cursor? Use the [MCP server](https://docs.lemuai.com/mcp/overview) instead of this REST API. It lets an assistant list your agents and place calls on your behalf, with permissions you approve.
