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

# Agents API

> Create, configure, and interact with agents programmatically.

# Agents API

## List Agents

```bash theme={null}
GET /api/agents
```

## Create Agent

```bash theme={null}
POST /api/agents
```

```json theme={null}
{
  "name": "Research Assistant",
  "model": "gpt-4o",
  "tools": ["browser", "file_system"],
  "system_prompt": "You are a research assistant..."
}
```

## Send Message

```bash theme={null}
POST /api/agents/:id/messages
```

```json theme={null}
{
  "content": "Research the AI agent market in 2026"
}
```

## Get Conversation History

```bash theme={null}
GET /api/agents/:id/messages
```
