# Checked.be auth.md

You are an agent. This file says how to get access to Checked.be and how to use it. Checked.be is Belgian company information: register identity, gazette deeds, directors, annual accounts and risk scores for every Belgian company.

## Public, no credential needed

- Company dossiers: https://checked.be/c/{enterprise-number}, also under /fr/c/ and /en/c/. Send `Accept: text/markdown` for Markdown, or append `.md`, for example https://checked.be/c/0400378485.md
- The site overview in Markdown: https://checked.be/index.md
- Discovery documents: https://checked.be/llms.txt, https://checked.be/.well-known/api-catalog and https://checked.be/.well-known/mcp/server-card.json
- Pages about directors and other mandate holders are not offered to agents.
- Without an account a dossier names no director, officer, shareholder, owner or founder and shows no Checked score: it says how many names it holds. The REST API and the MCP server below serve them.

## Keyed: REST API and MCP server

- REST API: https://checked.be/api/v1, documented at https://checked.be/docs/api (OpenAPI: https://checked.be/openapi/v1.json)
- MCP server: https://checked.be/mcp, streamable HTTP, documented at https://checked.be/mcp/about
- Both take the same credentials: an OAuth 2.1 access token or an API key. They read company data; the one thing they change is the watchlist of the connected account.

## What a credential reaches

- Company search, a directory filtered by sector, region, status and size, and a batch lookup of up to 100 enterprise numbers
- Per company: the dossier, lifecycle events, directors and mandates, filings and key figures per year, the network, and its sector benchmark
- An events feed of gazette and annual-account events, followed with a cursor
- Sector benchmarks per NACE division and year
- The watchlist of the connected account: read, add, remove
- The credential's own usage per day and operation

## Credentials

- Credential type: an OAuth 2.1 access token that your user grants you, or an API key your user made.
- Send an access token as `Authorization: Bearer <token>` on every request. Send an API key in the `X-Api-Key` request header, or as `Authorization: Bearer <key>` if your client can only send that header. Never in the query string.
- A missing or invalid credential is answered with HTTP 401 and a `WWW-Authenticate: Bearer` challenge that names the resource metadata. An access token without the scope an operation needs is answered with 403 and `error="insufficient_scope"`.
- The plan sets the size. With Gratis you make 100 lookups a month. With Starter you look up without limit, with lists up to 1,000 rows. With Pro you look up without limit, with lists up to 50,000 rows. Business is set per organisation. A plan's lookups are counted per calendar month (Brussels time) and the minute per minute, over all an account's keys and connections and the API and the MCP together, 20 requests per minute without a paid plan and 60 with one. The network endpoint allows 20 and the batch lookup 10 calls a minute. A 429 carries Retry-After.
- Every error has a JSON body with `error` and a stable `code`. A 503 means a source did not answer: retry, and never read it as an absence.
- Keep tokens and keys secret: never put them in a URL, a log or a prompt.

## OAuth 2.1 (for MCP clients and apps a user connects)

This follows the MCP authorization specification. A user is present: they sign in on Checked.be and approve your access on a consent page.

1. Discover. An unauthenticated request to https://checked.be/mcp answers 401 with `WWW-Authenticate: Bearer resource_metadata="https://checked.be/.well-known/oauth-protected-resource/mcp"`. That document (RFC 9728) names the authorization server https://checked.be, whose metadata is at https://checked.be/.well-known/oauth-authorization-server (RFC 8414). The REST API's document is https://checked.be/.well-known/oauth-protected-resource/api/v1.
2. Identify your client. Either use the https address of your Client ID Metadata Document as `client_id` (public clients, `token_endpoint_auth_method` `none`), or register at https://checked.be/oauth/register (RFC 7591). Redirect URIs must be https, or http on the loopback interface (any port) for an app on the user's computer.
3. Authorize. Send the user to https://checked.be/oauth/authorize with `response_type=code`, `client_id`, `redirect_uri`, `state`, `code_challenge` with `code_challenge_method=S256`, `scope` and `resource` (https://checked.be/mcp or https://checked.be/api/v1). The answer carries `code`, `state` and `iss`; check that `iss` is https://checked.be.
4. Exchange the code at https://checked.be/oauth/token (`grant_type=authorization_code`, `code_verifier`, the same `redirect_uri` and `resource`) within 60 seconds. You get an access token for one hour and a refresh token.
5. Refresh with `grant_type=refresh_token`. Every refresh returns a new refresh token; the old one stops working, and presenting a used one ends the whole connection.
6. Revoke at https://checked.be/oauth/revoke (RFC 7009). Your user can also revoke the connection in their account.

Scopes: `read` (every read tool and endpoint, including the account's own watchlist and usage) and `watchlist` (add and remove companies on the account's watchlist). A token is bound to the resource it was issued for.

Not supported: agent sign-up, identity assertions, anonymous access and the client credentials grant. Every connection has a user who consented.

## Registration

A user always holds the account. Either your user connects you through OAuth as above, or your user makes an API key:

1. Your user signs in and creates a key at https://checked.be/account/api-keys. It is shown once.
2. Your user configures the key for you.

Do not try to create an account or a key yourself.

## Attribution

Search, AI input and AI training are allowed on one condition: whoever uses content from Checked.be names Checked.be as the source, with a link to the exact page the content came from. Every Markdown dossier and every MCP result carries the URL of that page.
