> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useanima.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart: Email

> Send your first email from an AI agent in under 5 minutes.

# Quickstart: Email

Give your AI agent a real email address and send its first message.

## Prerequisites

* Your org's **master key** (`mk_...`) from [console.useanima.sh](https://console.useanima.sh) — creating agents is a master-key operation
* Your organization ID (`org_...`), shown in the console
* Python 3.10+ or Node.js 18+

## Python

```bash theme={null}
pip install anima-labs
```

```python theme={null}
from anima import Anima

anima = Anima(api_key="mk_...")  # master key — agent creation is admin-gated

# Create an agent with an email inbox
agent = anima.agents.create(
    org_id="org_...",  # your organization ID, from the console
    name="My First Agent",
    slug="my-first-agent",
)
print(f"Agent: {agent.id}")

# Send an email
anima.messages.send_email(
    agent_id=agent.id,
    to=["recipient@example.com"],
    subject="Hello from my AI agent",
    body="This email was sent by an AI agent powered by Anima.",
)
print("Email sent!")
```

## Node.js / TypeScript

```bash theme={null}
npm install @anima-labs/sdk
```

```ts theme={null}
import { Anima } from "@anima-labs/sdk";

const anima = new Anima({ apiKey: "mk_..." }); // master key — agent creation is admin-gated

// Create an agent with an email inbox
const agent = await anima.agents.create({
  orgId: "org_...", // your organization ID, from the console
  name: "My First Agent",
  slug: "my-first-agent",
});
console.log(`Agent: ${agent.id}`);

// Send an email
await anima.messages.sendEmail({
  agentId: agent.id,
  to: ["recipient@example.com"],
  subject: "Hello from my AI agent",
  body: "This email was sent by an AI agent powered by Anima.",
});
console.log("Email sent!");
```

## What's Next

* [Quickstart: Vault](/quickstart-vault) — Store credentials securely
* [Webhooks](/webhooks) — Get notified when emails arrive
* [Custom Domains](/custom-domains) — Use your own domain
