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

# Events API

> MAP event bus endpoints

## GET /api/events

Query recent events.

```bash theme={null}
curl "http://localhost:4360/api/events?limit=20&pattern=eval:*" \
  -H "Authorization: Bearer $TOKEN"
```

### Query Parameters

| Param     | Description                                            |
| --------- | ------------------------------------------------------ |
| `limit`   | Max events to return (default: 20)                     |
| `pattern` | Filter by event type prefix (e.g., `eval:`, `kanban:`) |

## POST /api/events

Publish an event.

```bash theme={null}
curl -X POST http://localhost:4360/api/events \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"type": "custom:my-event", "data": {"key": "value"}}'
```
