# Automation by Meir API Documentation

Official developer reference for the **ABM — Automation by Meir** REST API v1 (`/api/v1`), Model Context Protocol Streamable HTTP server (`/mcp` & `/api/v1/mcp`), SDK/CLI usage (`/sdk`), and in-page WebMCP tools.

- **HTML Docs:** https://www.automationbymeir.com/docs
- **OpenAPI 3.1 Schema:** https://www.automationbymeir.com/openapi.json
- **MCP Server Page:** https://www.automationbymeir.com/mcp
- **MCP Server Card (SEP-2127):** https://www.automationbymeir.com/.well-known/mcp/server-card.json
- **SDK & CLI Guide:** https://www.automationbymeir.com/sdk
- **GitHub Organization:** https://github.com/automationbymeir

## 1. Authentication & Base URL

- **Base URL:** `https://www.automationbymeir.com/api/v1`
- **Authentication:** Public unauthenticated access for slot discovery, consultation booking, brief submission, and MCP tools.
- **Idempotency:** Pass `Idempotency-Key: <uuid>` on any `POST` request for safe 24-hour replay protection.

## 2. Versioning & Deprecation Policy

- Major versions are pinned in the URL path (`/api/v1/*`) and echoed via `API-Version: 2026-11-30` and `X-API-Version: v1`.
- Deprecated routes emit RFC 9745 `Deprecation`, RFC 8594 `Sunset`, and `Link: <...>; rel="successor-version"` headers at least **180 days** prior to retirement.

## 3. Typed JSON Error Model (RFC 9457)

All `4xx` and `5xx` API responses return `Content-Type: application/problem+json; charset=utf-8` with `type`, `title`, `status`, `code`, `message`, `detail`, `hint`, and `instance`.

## 4. Endpoints

### `GET /api/v1/schedule/slots`
```bash
curl -sS https://www.automationbymeir.com/api/v1/schedule/slots
```

### `POST /api/v1/schedule/book`
```bash
curl -sS -X POST https://www.automationbymeir.com/api/v1/schedule/book \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -d '{"name":"Alex Morgan","email":"alex@example.com","dateTime":"2026-12-02T10:00:00.000+02:00","details":"ERP automation"}'
```

### `POST /api/v1/schedule/brief`
```bash
curl -sS -X POST https://www.automationbymeir.com/api/v1/schedule/brief \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7" \
  -d '{"name":"Alex Morgan","email":"alex@example.com","brief":"Automate invoice intake into Priority ERP"}'
```

### `POST /api/v1/mcp` (Streamable HTTP MCP)
```bash
curl -sS -X POST https://www.automationbymeir.com/api/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
```
