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

# Quickstart

> Create an API key, make your first call and connect an MCP client.

**1. Create an API key**

In Avazal, open **Settings → API keys** and choose **Create an API key**. Give it a name, pick when it expires (30 days, 90 days or 1 year) and choose what it can do in each area: messages, tasks, documents, events, people, automations, settings and search. New keys start with read access everywhere.

The key starts with `avz_` and is shown once. Copy it somewhere safe. The dialog also shows a ready-made MCP config and a `curl` command for it.

**2. Make your first call**

`me.get` works with any key. It says who the key acts for and which scopes it carries.

```bash theme={null}
curl -X POST https://api.avazal.com/v1/me.get \
  -H "Authorization: Bearer $AVAZAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

```json theme={null}
{
  "userId": "…",
  "organizationId": "…",
  "role": "member",
  "key": { "id": "…", "name": "Claude Code", "scopes": ["messages:read", "tasks:read"] },
  "identity": null
}
```

Then try a real read, such as the email threads that need a reply:

```bash theme={null}
curl -X POST https://api.avazal.com/v1/conversations.list \
  -H "Authorization: Bearer $AVAZAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source": "gmail", "tab": "needs_reply", "limit": 10}'
```

**3. Connect an MCP client**

If your client supports sign-in, add `https://api.avazal.com/mcp` by URL, sign in to Avazal and approve access. You don't need a key. See [Add the server by URL and sign in](https://docs.avazal.com/connect.md#add-the-server-by-url-and-sign-in).

Otherwise, point any MCP client that speaks streamable HTTP at `https://api.avazal.com/mcp` and send the key as a bearer token:

```json theme={null} theme={null}
{
  "mcpServers": {
    "avazal": {
      "type": "http",
      "url": "https://api.avazal.com/mcp",
      "headers": {
        "Authorization": "Bearer avz_…"
      }
    }
  }
}
```

Claude Code, Codex and Cursor each have their own format:

```bash Claude Code theme={null} theme={null}
claude mcp add --transport http avazal https://api.avazal.com/mcp \
  --header "Authorization: Bearer $AVAZAL_API_KEY"
```

```toml Codex (~/.codex/config.toml) theme={null} theme={null}
[mcp_servers.avazal]
url = "https://api.avazal.com/mcp"
bearer_token_env_var = "AVAZAL_API_KEY"
```

```json Cursor (~/.cursor/mcp.json) theme={null} theme={null}
{
  "mcpServers": {
    "avazal": {
      "url": "https://api.avazal.com/mcp",
      "headers": {
        "Authorization": "Bearer avz_…"
      }
    }
  }
}
```

If you use the Avazal desktop app, you don't need a key for agents on your computer. See [Local MCP](https://docs.avazal.com/connect.md#local-mcp-through-the-desktop-app).

## Use the CLI

The [Avazal CLI](https://docs.avazal.com/cli.md) ships with the macOS app. Use it to make the same authenticated calls from your terminal.

## Next

* [Authentication and scopes](https://docs.avazal.com/authentication.md) explains what a key can do and how risky calls behave.
* [Concepts](https://docs.avazal.com/concepts/ids.md) covers ids, pages, links and errors.
* The guides walk through each area, starting with [Messages and conversations](https://docs.avazal.com/guides/messages.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.