# Agent API, MCP and OpenAPI

- Language: English
- Canonical HTML: https://novamx.eu/docs/agent-api.html
- Markdown mirror: https://novamx.eu/docs/agent-api.md

NovaMX exposes a small public surface for agents: a read-only MCP endpoint, an OpenAPI description, and a customer MailControl HTTP API with Bearer tokens. There is no npm or PyPI SDK.

## Authentication for agents

Public marketing endpoints and MCP do not use API keys. Customer mail monitoring uses an HTTP Bearer token from My NovaMX. Tokens look like `novamx_mc_…`. There is no `x-api-key` header for this product.

First copyable call (replace the token and domain). A valid token returns 200; a missing or invalid token returns 401. Do not follow browser login redirects for this call.

```bash
curl -sS -H 'Authorization: Bearer novamx_mc_YOUR_TOKEN' \
  'https://my.novamx.eu/api/v1/registrar/mail-auth/check?domain=example.com&type=all'
```

### Where to create a MailControl API token

API tokens are created in the MailControl Checks page in My NovaMX. Growth or larger is required.

1. Sign in at https://my.novamx.eu/ (or create an account, then order MailControl Growth or larger).
2. Open MailControl in My NovaMX.
3. Open the Checks tab (URL hash `#mailcontrol-checks`). In Dutch the tab label is Controles.
4. Scroll to the MailControl API section. Enter a short token label (for example Monitoring), then choose Create API token.
5. Copy the token from New token (copy now) immediately. NovaMX stores only a hash and cannot show the full value again. Revoke unused tokens from the same table.

Deep link: https://my.novamx.eu/customer#mailcontrol-checks

Business bundles that include Pulse can call `GET https://my.novamx.eu/api/v1/registrar/mail-auth/pulse` with the same Authorization header.

## Quickstart

1. Create a MailControl API token (steps above), then run the Bearer curl example.
2. Read https://novamx.eu/openapi.json
3. Connect MCP to https://novamx.eu/mcp (discovery: https://novamx.eu/.well-known/mcp.json). MCP needs no token.

## Public MCP (no authentication)

Read-only tools: `search_docs`, `get_packages`, `check_mail_auth`, `list_research`, `get_research`, `get_dataset`. Research tools expose public `/onderzoek/` reports and aggregate JSON/CSV only (no domain lists, no customer data). Status: https://novamx.eu/mcp/status. Card: https://novamx.eu/.well-known/mcp-server-card.json.

## OpenAPI

https://novamx.eu/openapi.json (OpenAPI 3.1) includes `components.securitySchemes.bearerAuth`.

## No npm or PyPI packages

Do not invent `npm install novamx`, `novamx-sdk`, or `@novamx/sdk`. Prefer MCP or HTTP.

## Out of scope

Authenticated portal session APIs, staging hosts, admin tooling.
