# Obsidian developer documentation

> The whole Obsidian developer documentation (MCP server and REST API) as one Markdown file, for AI agents. Each section is one page of https://obsidianri.com/docs, in reading order.

<!-- page: https://obsidianri.com/docs -->

# Obsidian developer documentation

Obsidian gives your AI assistant and your systems the same thing you see when you sign in: **your own regulatory database** and **the news of your monitoring watches**, each item with its status, its dates and its official source.

- [MCP server](https://obsidianri.com/docs/mcp): Connect Claude, ChatGPT, Gemini, Cursor and other assistants. No code.
- [REST API](https://obsidianri.com/docs/api): Read the same views from your own backend with an API key.
- [Quickstart](https://obsidianri.com/docs/quickstart): MCP in two minutes, the API in one call.

## What Obsidian exposes

Both ways read the views of one Obsidian account, built for that account and nothing wider:

- **Your regulatory database.** The same list as the Database page of your account: the regulations selected for your account and the acts your entities are subject to, within your jurisdictions. Each regulation carries its status, key dates, next step, the recent changes of the law, the entities it applies to and its official source. It is part of your access when the **Regulatory Database** module is part of your account.
- **The news of your watches.** The same feed as the News page of your account: the official news, new texts, opinions, decisions and consultations your watches detected, newest first, each with its official link. It is part of your access when the **Regulatory Monitoring** module is part of your account.

A regulation outside your database is not returned. You can ask for it from the Database page of your account (*Missing a regulation?*).

## Two ways in

|  | MCP server | REST API |
| --- | --- | --- |
| **For** | AI assistants and agents | Your backend, feeds, pipelines |
| **Address** | `https://mcp.obsidianri.com/mcp` | `https://api.obsidianri.com` |
| **Sign-in** | OAuth 2.1 with your Obsidian account | `X-API-Key` header |
| **Reads** | 5 tools | 5 `GET` endpoints |
| **Returns** | Text written for the model, with the official links | JSON |

The five MCP tools and the five endpoints are the same reads: [`monitoring_news`](https://obsidianri.com/docs/mcp/tools/monitoring_news) is [`GET /v1/monitoring/news`](https://obsidianri.com/docs/api/monitoring-news), [`database_search`](https://obsidianri.com/docs/mcp/tools/database_search) is [`GET /v1/database/search`](https://obsidianri.com/docs/api/database-search), and so on.

## Access

The MCP server and the REST API are the **API and MCP** module of an Obsidian account. It is opened on request: [tell us what you want to connect](https://obsidianri.com/contact) and we switch it on for your account. Then:

- connect an MCP client with your Obsidian sign-in ([Connect your client](https://obsidianri.com/docs/mcp));
- create an API key at [app.obsidianri.com/account#api](https://app.obsidianri.com/account#api) ([Authentication](https://obsidianri.com/docs/authentication)).

Every MCP tool call and every API request is counted against the allowance of your account: see [Errors and limits](https://obsidianri.com/docs/errors).

## For AI agents

Every page has a **Copy page** button that copies it as Markdown. The whole documentation is one Markdown file at [`/docs/llms-full.txt`](https://obsidianri.com/docs/llms-full.txt), and the API is described by its OpenAPI document at [`api.obsidianri.com/openapi.json`](https://api.obsidianri.com/openapi.json).

Source: https://obsidianri.com/docs

---

<!-- page: https://obsidianri.com/docs/quickstart -->

# Quickstart

The MCP server in two minutes, or the REST API in one call. Both read your own Obsidian account: your regulatory database and the news of your watches.

> Your account needs the **API and MCP** module. It is opened on request: [ask for it here](https://obsidianri.com/contact).

## MCP in two minutes

### 1. Add the server

In your assistant, add a custom MCP server (some apps call it a connector) with this URL:

```text
https://mcp.obsidianri.com/mcp
```

In Claude: **Customize → Connectors → + Add → Add custom connector**, paste the URL, **Add**. In Claude Code, one command:

```bash
claude mcp add --transport http obsidian https://mcp.obsidianri.com/mcp
```

Every other client is on [Connect your client](https://obsidianri.com/docs/mcp).

### 2. Sign in

The client opens the Obsidian sign-in. Sign in with your Obsidian account, then **Allow**. There is no key to copy.

### 3. Ask

```text
Which regulations in our Obsidian database have a deadline in the next six months?
```

The assistant calls [`database_search`](https://obsidianri.com/docs/mcp/tools/database_search) (for a deadline question, typically with `sort` set to `next`: the nearest coming step first) and answers from your database, with the official source of each regulation.

## The API in one call

### 1. Create a key

Open [app.obsidianri.com/account#api](https://app.obsidianri.com/account#api) and create a key. It starts with `obsidian_sk_` and is shown once: copy it then.

### 2. Call the API

```bash
export OBSIDIAN_API_KEY="obsidian_sk_..."

curl -G https://api.obsidianri.com/v1/database/search \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "q=packaging" \
  --data-urlencode "jurisdiction=EU" \
  --data-urlencode "limit=5"
```

The answer is JSON: `total` (the size of your database), `matched`, the `items` of the page and the `next` cursor. Every field is on [Search the database](https://obsidianri.com/docs/api/database-search).

## Next steps

- [MCP tools](https://obsidianri.com/docs/mcp/tools): Every tool, its parameters and what it returns.
- [REST API](https://obsidianri.com/docs/api): Base URL, pagination and the five endpoints.
- [Authentication](https://obsidianri.com/docs/authentication): OAuth for the MCP server, keys for the API.

Source: https://obsidianri.com/docs/quickstart

---

<!-- page: https://obsidianri.com/docs/authentication -->

# Authentication

The MCP server signs in a person with OAuth 2.1: no key to copy. The REST API authenticates each request with an API key. Both reach the same views of the same account.

## Who can connect

The MCP server and the REST API are the **API and MCP** module of an Obsidian account, opened on request ([ask for it](https://obsidianri.com/contact)). Inside it, each family follows its own module: the news of your watches with **Regulatory Monitoring**, your regulatory database with **Regulatory Database**. A member of an organization reads the access of the organization.

## MCP: OAuth 2.1

The server at `https://mcp.obsidianri.com/mcp` is an OAuth 2.1 protected resource. Your MCP client does the whole flow on its own: you only sign in and click **Allow**.

1. The client calls the server without a token and gets `401` with a `WWW-Authenticate` header naming the resource metadata.
2. It reads the metadata, then registers itself (dynamic client registration) as a **public client**: no client secret.
3. It opens the Obsidian sign-in in your browser with a **PKCE** challenge (`S256`). You sign in with your Obsidian account and allow the access.
4. It exchanges the code for an access token and sends it as `Authorization: Bearer` on every MCP request.

### The metadata

| Document | URL |
| --- | --- |
| Protected resource (RFC 9728) | `https://mcp.obsidianri.com/.well-known/oauth-protected-resource` |
| Authorization server (RFC 8414) | `https://obsidianri.com/.well-known/oauth-authorization-server` |

```bash
curl -i -X POST https://mcp.obsidianri.com/mcp
# HTTP/2 401
# www-authenticate: Bearer resource_metadata="https://mcp.obsidianri.com/.well-known/oauth-protected-resource"

curl https://mcp.obsidianri.com/.well-known/oauth-protected-resource
# {"resource": "https://mcp.obsidianri.com", "authorization_servers": ["https://obsidianri.com"], "bearer_methods_supported": ["header"]}
```

### The authorization server

| Setting | Value |
| --- | --- |
| Issuer | `https://obsidianri.com` |
| Authorization endpoint | `https://obsidianri.com/oauth/authorize` |
| Token endpoint | `https://obsidianri.com/oauth/token` |
| Registration endpoint (RFC 7591) | `https://obsidianri.com/oauth/register` |
| Response type | `code` |
| Grant types | `authorization_code`, `refresh_token` |
| PKCE | Required, `S256` |
| Client authentication | `none`: public clients |
| Scope | `mcp:read` |

### Tokens

- **Authorization code**: valid 10 minutes.
- **Access token**: valid 1 hour (`expires_in` 3600). The client sends it as `Authorization: Bearer <token>`.
- **Refresh token**: valid 60 days. The client uses it to get a new access token without asking you to sign in again.

Access is checked again at every token and refresh: when the API and MCP module of the account is switched off, no new token is issued, and every tool call is refused within a minute (see [MCP errors](https://obsidianri.com/docs/errors#mcp-errors)). The MCP server does not accept an API key: it only takes an Obsidian OAuth token.

> Clients that need a static OAuth client with a client secret (the admin connectors of Gemini Enterprise and Microsoft 365 Copilot) are not self-serve: [contact us](https://obsidianri.com/contact).

## REST API: API keys

Every request to `https://api.obsidianri.com` carries an API key. A key belongs to one person and reads that person's own views, exactly as they see them in Obsidian and through their MCP connection.

### Create a key

1. Open [app.obsidianri.com/account#api](https://app.obsidianri.com/account#api) (**Account → API**).
2. Create a key. It looks like `obsidian_sk_` followed by 40 hexadecimal characters.
3. Copy it at once: it is shown only at creation. Obsidian keeps a fingerprint of it, never the key itself.

### Send the key

Send it in the `X-API-Key` header. `Authorization: Bearer` is accepted too.

```bash
curl https://api.obsidianri.com/v1/database/overview \
  -H "X-API-Key: $OBSIDIAN_API_KEY"

# also accepted
curl https://api.obsidianri.com/v1/database/overview \
  -H "Authorization: Bearer $OBSIDIAN_API_KEY"
```

### Keep keys safe

- Keep keys on your servers: never in a browser page or a mobile app.
- **Rotate**: create a new key, move your integration to it, then revoke the old one at [Account → API](https://app.obsidianri.com/account#api). A revoked key stops working at once.
- A key follows its account: a change to your database or your watches shows at once, with nothing to do on the key.

A missing key returns `401` with `Missing API key. Provide via X-API-Key header or Authorization: Bearer <key>`; an unknown or revoked key returns `401` with `Invalid or expired API key`. Every code is on [Errors and limits](https://obsidianri.com/docs/errors).

Source: https://obsidianri.com/docs/authentication

---

<!-- page: https://obsidianri.com/docs/mcp -->

# Connect the MCP server

Add the Obsidian MCP server to your assistant once: it then reads your regulatory database and the news of your watches in every conversation, and cites the official source of each answer.

## Server

| **URL** | `https://mcp.obsidianri.com/mcp` |
| --- | --- |
| **Transport** | Streamable HTTP (the legacy SSE transport is retired) |
| **Sign-in** | OAuth 2.1 with your Obsidian account, dynamic client registration, PKCE ([Authentication](https://obsidianri.com/docs/authentication)) |
| **Tools** | [5 read-only tools](https://obsidianri.com/docs/mcp/tools) |

```text
https://mcp.obsidianri.com/mcp
```

> The first time, the client opens the Obsidian sign-in: sign in with your Obsidian account, then **Allow**. Your account needs the **API and MCP** module, opened on request ([ask for it](https://obsidianri.com/contact)).

## Claude

On claude.ai and the Claude apps, every plan including Free:

1. **Customize → Connectors → + Add → Add custom connector**.
2. Paste `https://mcp.obsidianri.com/mcp`, then **Add**.
3. Sign in with your Obsidian account, then **Allow**.

### Claude Code

```bash
claude mcp add --transport http obsidian https://mcp.obsidianri.com/mcp
```

Then run `/mcp` in Claude Code to sign in.

## ChatGPT

ChatGPT Business, Enterprise and Edu, on the web:

1. Open **Plugins** (`chatgpt.com/plugins`) → **+ Add custom MCP server**.
2. Connection URL: `https://mcp.obsidianri.com/mcp`. Authentication: **OAuth**.
3. Tick **I understand and want to continue**, then **Create as a plugin**.
4. Sign in with your Obsidian account, then **Allow**.
5. In a chat, call it with `@Obsidian`.

## Gemini

### Gemini on the web (Developer Mode)

1. **Settings → Gemini Apps Developer Mode**.
2. **Choose an app → + Create new**.
3. MCP Server URL: `https://mcp.obsidianri.com/mcp`, then **Next**.
4. Tick the confirmation, then **Connect** and sign in.

### Gemini CLI

```bash
gemini mcp add --transport http --scope user obsidian https://mcp.obsidianri.com/mcp
```

Then, in Gemini CLI:

```text
/mcp auth obsidian
```

## Grok

1. Open `grok.com/connectors` → **New Connector → Custom**.
2. URL: `https://mcp.obsidianri.com/mcp`.
3. Sign in with your Obsidian account.

## Perplexity

Perplexity Pro, Max and Enterprise:

1. **Settings → Connectors** → add a custom remote connector.
2. URL: `https://mcp.obsidianri.com/mcp`. Authentication: **OAuth**.
3. Sign in with your Obsidian account.

## Le Chat (Mistral)

1. **Connectors → + Add Connector → Custom MCP Connector**.
2. Name: `obsidian`. Server URL: `https://mcp.obsidianri.com/mcp`.
3. **Connect**, then sign in.

## Microsoft Copilot Studio

1. In your agent: **Tools → Add a tool → New tool → Model Context Protocol**.
2. Server URL: `https://mcp.obsidianri.com/mcp`.
3. Authentication: **OAuth 2.0**, type **Dynamic discovery**, then **Create**.
4. **Create a new connection**, sign in, then **Add to agent**.

## Cursor

In `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "obsidian": {
      "url": "https://mcp.obsidianri.com/mcp"
    }
  }
}
```

Cursor asks you to sign in the first time it uses the server.

## VS Code (GitHub Copilot)

In agent mode: run **MCP: Add Server** from the command palette, choose **HTTP** and paste the URL. Or in `mcp.json`:

```json
{
  "servers": {
    "obsidian": {
      "type": "http",
      "url": "https://mcp.obsidianri.com/mcp"
    }
  }
}
```

## Windsurf and Devin Desktop

```bash
devin mcp add obsidian https://mcp.obsidianri.com/mcp
devin mcp login obsidian
```

## Kimi Code

In `~/.kimi-code/mcp.json`:

```json
{
  "mcpServers": {
    "obsidian": {
      "url": "https://mcp.obsidianri.com/mcp"
    }
  }
}
```

Then sign in:

```text
/mcp-config login obsidian
```

## Qwen Code

```bash
qwen mcp add --transport http obsidian https://mcp.obsidianri.com/mcp
```

Then run `/mcp` in Qwen Code to sign in.

## Other MCP clients

Any client that supports a remote MCP server over **Streamable HTTP** with OAuth works: point it at `https://mcp.obsidianri.com/mcp`. If it asks for a transport, choose Streamable HTTP (or HTTP), not SSE. If it asks for a client id or secret, leave them empty: the client registers itself.

Not self-serve: the admin connectors of **Gemini Enterprise** and **Microsoft 365 Copilot** need a static OAuth client with a client secret. [Contact us](https://obsidianri.com/contact) to set one up.

## Check the connection

Ask:

```text
What does my Obsidian regulatory database hold?
```

The assistant calls [`database_overview`](https://obsidianri.com/docs/mcp/tools/database_overview) and lists your jurisdictions, industries and statuses with their counts. If nothing happens, check that the connector is on in this conversation and that you signed in. If a tool answers that it is not part of your access, the matching module is not part of your account ([MCP errors](https://obsidianri.com/docs/errors#mcp-errors)).

Source: https://obsidianri.com/docs/mcp

---

<!-- page: https://obsidianri.com/docs/mcp/tools -->

# MCP tools

The Obsidian MCP server has five read-only tools. Your assistant picks them on its own when a question touches your regulations or your watches: you ask in plain words, it builds the calls.

## The tools

| Tool | Module | What it reads | REST equivalent |
| --- | --- | --- | --- |
| [`monitoring_news`](https://obsidianri.com/docs/mcp/tools/monitoring_news) | Regulatory Monitoring | The news of your watches, newest first: the same feed as the News page of your account, each news with its official source link. | [`GET /v1/monitoring/news`](https://obsidianri.com/docs/api/monitoring-news) |
| [`my_watches`](https://obsidianri.com/docs/mcp/tools/my_watches) | Regulatory Monitoring | Your watches: what each one follows, its jurisdictions, how often it is checked and how many news it found. | [`GET /v1/monitoring/watches`](https://obsidianri.com/docs/api/monitoring-watches) |
| [`database_search`](https://obsidianri.com/docs/mcp/tools/database_search) | Regulatory Database | Searches and lists the regulations of your regulatory database, the same list as its Database page, with their status, key dates and official links. | [`GET /v1/database/search`](https://obsidianri.com/docs/api/database-search) |
| [`database_overview`](https://obsidianri.com/docs/mcp/tools/database_overview) | Regulatory Database | What your regulatory database holds: its jurisdictions, industries, frameworks, statuses and entities, with their counts and ids. | [`GET /v1/database/overview`](https://obsidianri.com/docs/api/database-overview) |
| [`database_regulation`](https://obsidianri.com/docs/mcp/tools/database_regulation) | Regulatory Database | One regulation of your regulatory database in full: summary, timeline, recent changes of the law, the entities it applies to and its official source. | [`GET /v1/database/regulation`](https://obsidianri.com/docs/api/database-regulation) |

## How results are scoped

The tools read exactly what you see when you sign in to Obsidian, built for your account on the server: never a parameter can widen it. Each family is part of your MCP access when its module is part of your account: **Regulatory Monitoring** for `monitoring_news` and `my_watches`, **Regulatory Database** for `database_search`, `database_overview` and `database_regulation`. When a family is not part of your access, its tools answer so, and the server tells the model not to call them again in the conversation.

## What the tools return

Each tool returns a Markdown text written for the model: one section per news or regulation with its official source link, then a line asking the model to cite it. When more results exist, the last lines give the `cursor` of the next page. Each tool page shows the exact output for an example.

## What the model is told

With the tools, the server gives the model its rules: answer from the data the tools return, cite the official source of every regulation and news, pass the jurisdiction as a filter when the question names one, state the status and never present a proposal as binding law, and say when a regulation is not in your database instead of answering from other sources.

## Example prompts

```text
Which regulations in our database apply to our Swiss entity?
What deadlines are coming in the next six months?
What changed in the packaging regulation recently?
Any new news on my PFAS watch this week?
```

## Usage

Each tool call counts as one request against the MCP allowance of your account. Over the allowance, the tool returns a message the model relays to you instead of results: see [Errors and limits](https://obsidianri.com/docs/errors#usage-limits).

Source: https://obsidianri.com/docs/mcp/tools

---

<!-- page: https://obsidianri.com/docs/mcp/tools/monitoring_news -->

# monitoring_news

The news of your watches, newest first: the same feed as the News page of your account, each news with its official source link.

- **Server** `https://mcp.obsidianri.com/mcp`
- **Module** Regulatory Monitoring
- **REST equivalent** [`GET /v1/monitoring/news`](https://obsidianri.com/docs/api/monitoring-news)

## Description

The description the model reads, as the server declares it:

> The news of the signed-in user's OWN Obsidian watches : exactly their monitoring feed (the News page of their account), newest first. Each item is an official news, new text, opinion, decision or consultation one of their watches detected, with its official source link. Use it for "what's new", "latest news on my watch", "any new ECHA / EFSA / ANSES item", "news since <date>", or to search their feed for a subject.

## Parameters

| Argument | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | optional | Optional search words, every word required (e.g. "PFAS restriction", "glyphosate", "OECD test guideline"). |
| `jurisdiction` | string | optional | Optional comma list of jurisdiction ids, e.g. "EU", "FR" or "EU,FR". "GLOBAL" = international bodies (OECD...). |
| `watch_id` | string | optional | Optional : the news of ONE watch only (ids from my_watches). |
| `since` | string | optional | Optional date YYYY-MM-DD : only news published that day or later. |
| `cursor` | string | optional | The `next cursor` printed at the end of a previous call, to read the following page. |
| `limit` | integer | optional | Items per page (default 20, max 50). |

## Returns

A Markdown text for the model: one section per news, newest first, with its date, jurisdiction, source, kind, the date it announces (when any), its official source link and its description. When more news exist, the last lines give the `cursor` of the next page. Without a match, a sentence says so and suggests wider filters.

## Example

### Prompt

```text
Any new news on my PFAS watch this month?
```

### Tool call

The `tools/call` request the client sends (JSON-RPC over Streamable HTTP):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "monitoring_news",
    "arguments": {
      "query": "PFAS",
      "jurisdiction": "EU",
      "since": "2026-11-01",
      "limit": 2
    }
  }
}
```

### Output

The text the tool returns for this call, on example data (generic values, not real records):

```markdown
2 news from the user's Obsidian monitoring feed matching "PFAS", newest first:

### Example: consultation opened on a draft PFAS restriction
- 2026-11-20  |  EU  |  Example Agency  |  consultation
- Milestone: consultation_end 2027-02-20
- Official source: https://www.example.org/official/news/2026-11-20-consultation
- Example description of the news, as shown on the News page of the account.

### Example: guidance updated on substance registration
- 2026-11-12  |  EU  |  Example Agency  |  guidance
- Official source: https://www.example.org/official/news/2026-11-12-guidance

More news exist : call monitoring_news again with cursor="1762905600.000~f6g7h8i9j0" and the same filters.

Cite the official source link of every news you use.
```

To build it, the server sends this query to [`GET /v1/monitoring/news`](https://obsidianri.com/docs/api/monitoring-news): `q=PFAS`, `jurisdiction=EU`, `since=2026-11-01`, `limit=2`.

## Errors

A tool never fails with a protocol error for an account problem: it returns a message for the model to relay (over the allowance, too many requests, a module not part of your access, a regulation outside your database). Every message is on [Errors and limits](https://obsidianri.com/docs/errors#mcp-errors).

Source: https://obsidianri.com/docs/mcp/tools/monitoring_news

---

<!-- page: https://obsidianri.com/docs/mcp/tools/my_watches -->

# my_watches

Your watches: what each one follows, its jurisdictions, how often it is checked and how many news it found.

- **Server** `https://mcp.obsidianri.com/mcp`
- **Module** Regulatory Monitoring
- **REST equivalent** [`GET /v1/monitoring/watches`](https://obsidianri.com/docs/api/monitoring-watches)

## Description

The description the model reads, as the server declares it:

> The signed-in user's Obsidian watches : name, id, jurisdictions, check frequency, number of news, and what each watch follows. Use it to understand the user's monitoring scope, or to get a watch_id for monitoring_news.

## Parameters

None. Call it with empty arguments: `{}`.

## Returns

A Markdown text: one section per watch with its id, jurisdictions, check frequency, number of news, `paused` when it is paused, and what it follows. Without any watch, a sentence says so.

## Example

### Prompt

```text
What do my Obsidian watches follow?
```

### Tool call

The `tools/call` request the client sends (JSON-RPC over Streamable HTTP):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "my_watches",
    "arguments": {}
  }
}
```

### Output

The text the tool returns for this call, on example data (generic values, not real records):

```markdown
1 Obsidian watch(es):

### Example: PFAS restrictions
- id: w_example01  |  jurisdictions: EU, FR  |  checked: daily  |  news: 42
- Follows: Example: restrictions, consultations and guidance on PFAS in the EU and France.
```

## Errors

A tool never fails with a protocol error for an account problem: it returns a message for the model to relay (over the allowance, too many requests, a module not part of your access, a regulation outside your database). Every message is on [Errors and limits](https://obsidianri.com/docs/errors#mcp-errors).

Source: https://obsidianri.com/docs/mcp/tools/my_watches

---

<!-- page: https://obsidianri.com/docs/mcp/tools/database_search -->

# database_search

Searches and lists the regulations of your regulatory database, the same list as its Database page, with their status, key dates and official links.

- **Server** `https://mcp.obsidianri.com/mcp`
- **Module** Regulatory Database
- **REST equivalent** [`GET /v1/database/search`](https://obsidianri.com/docs/api/database-search)

## Description

The description the model reads, as the server declares it:

> Search and list the regulations of the signed-in user's OWN Obsidian regulatory database: exactly the list of the Database page of their account (the regulations selected for their account and the acts their entities are subject to, within their jurisdictions). Each result has its status, key date, next step, the law's last change, frameworks, the user's entities it applies to, authorities and official source link. Use it for obligations, deadlines, "what applies to us", "what is coming", "what changed", or to find a regulation by name or reference.

## Parameters

| Argument | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | optional | Optional search words, every word required, matched on the title, short title, reference, jurisdiction, authorities, industries, frameworks and entity names (e.g. "packaging waste", "2014/40", "REACH"). |
| `jurisdiction` | string | optional | Optional comma list of jurisdiction ids or names, e.g. "EU", "CH" or "EU,US". |
| `industry` | string | optional | Optional comma list of industry ids or names (see database_overview). |
| `framework` | string | optional | Optional comma list of framework ids or names (see database_overview). |
| `status` | string | optional | Optional comma list among in_force, adopted, proposed, consultation, expected, repealed, withdrawn. |
| `entity` | string | optional | Optional comma list of the user's entity ids or names: only the regulations that apply to them. |
| `sort` | string | optional | Optional. "title" (default), "updated" (the law's most recent change first) or "next" (the nearest coming step first, for deadlines). |
| `cursor` | string | optional | The `next cursor` printed at the end of a previous call, to read the following page. |
| `limit` | integer | optional | Results per page (default 20, max 50). |

## Returns

A Markdown text: how many of the regulations of the database match, then one section per regulation with its id, jurisdiction, status, reference, key date, next step, the law's last change, frameworks, industries, the entities it applies to, authorities, official source and Obsidian link. When more results exist, the last lines give the `cursor` of the next page. A query on a topic Obsidian excludes returns the exclusion notice instead of results.

## Example

### Prompt

```text
Which regulations in our database have a deadline in the next six months?
```

### Tool call

The `tools/call` request the client sends (JSON-RPC over Streamable HTTP):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "database_search",
    "arguments": {
      "query": "packaging",
      "jurisdiction": "EU",
      "sort": "next",
      "limit": 1
    }
  }
}
```

### Output

The text the tool returns for this call, on example data (generic values, not real records):

```markdown
3 of the 148 regulations of the user's Obsidian regulatory database match "packaging"; showing 1:

### Example: Regulation on packaging and packaging waste
- id: EU/example-packaging-regulation  |  Jurisdiction: European Union  |  Status: In force
- Short title: Example PPR
- Reference: Regulation (EU) 2025/0000
- Applies from: 2026-08-12
- Next step: Labelling obligations apply on 2027-01-01
- Law last changed: 2026-10-03
- Frameworks: Example circular economy framework
- Industries: Packaging
- Applies to the user's entities: Example Europe GmbH (Applies)
- Authorities: European Commission
- Official source: https://www.example.org/official/text/2025-0000
- In Obsidian: https://app.obsidianri.com/database/EU/example-packaging-regulation

More regulations match: call database_search again with cursor="1" and the same filters.

Cite the official source link of every regulation you use. For the full detail of one regulation (summary, timeline, recent changes, why it applies), call database_regulation with its id.
```

To build it, the server sends this query to [`GET /v1/database/search`](https://obsidianri.com/docs/api/database-search): `q=packaging`, `jurisdiction=EU`, `sort=next`, `limit=1`.

## Errors

A tool never fails with a protocol error for an account problem: it returns a message for the model to relay (over the allowance, too many requests, a module not part of your access, a regulation outside your database). Every message is on [Errors and limits](https://obsidianri.com/docs/errors#mcp-errors).

Source: https://obsidianri.com/docs/mcp/tools/database_search

---

<!-- page: https://obsidianri.com/docs/mcp/tools/database_overview -->

# database_overview

What your regulatory database holds: its jurisdictions, industries, frameworks, statuses and entities, with their counts and ids.

- **Server** `https://mcp.obsidianri.com/mcp`
- **Module** Regulatory Database
- **REST equivalent** [`GET /v1/database/overview`](https://obsidianri.com/docs/api/database-overview)

## Description

The description the model reads, as the server declares it:

> What the signed-in user's OWN Obsidian regulatory database holds: the number of regulations, and its jurisdictions, industries, frameworks, statuses and entities with their counts and ids (the values database_search filters on), plus the rules of the selection made for their account. Use it to describe the user's regulatory perimeter or before filtering a search.

## Parameters

None. Call it with empty arguments: `{}`.

## Returns

A Markdown text: the number of regulations (from the selection and from the entities), then the jurisdictions, industries, frameworks, statuses and entities with their ids and counts, the account's jurisdictions and the rules of the selection.

## Example

### Prompt

```text
Describe our regulatory perimeter in Obsidian.
```

### Tool call

The `tools/call` request the client sends (JSON-RPC over Streamable HTTP):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "database_overview",
    "arguments": {}
  }
}
```

### Output

The text the tool returns for this call, on example data (generic values, not real records):

```markdown
The user's Obsidian regulatory database holds 148 regulations (120 selected for the account, 41 held by their entities; a regulation can be both).

Jurisdictions:
- European Union (id EU): 96
- France (id FR): 52

Industries:
- Packaging (id packaging): 37

Frameworks:
- Example circular economy framework (id example-framework): 12

Statuses:
- In force (id in_force): 110
- Proposed (id proposed): 21

The user's entities (regulations that apply to each):
- Example Europe GmbH (id example-europe-gmbh): 41

The account's jurisdictions: European Union (EU), France (FR)

Selection made for the account:
- Industry: Packaging (all of the account's)
```

## Errors

A tool never fails with a protocol error for an account problem: it returns a message for the model to relay (over the allowance, too many requests, a module not part of your access, a regulation outside your database). Every message is on [Errors and limits](https://obsidianri.com/docs/errors#mcp-errors).

Source: https://obsidianri.com/docs/mcp/tools/database_overview

---

<!-- page: https://obsidianri.com/docs/mcp/tools/database_regulation -->

# database_regulation

One regulation of your regulatory database in full: summary, timeline, recent changes of the law, the entities it applies to and its official source.

- **Server** `https://mcp.obsidianri.com/mcp`
- **Module** Regulatory Database
- **REST equivalent** [`GET /v1/database/regulation`](https://obsidianri.com/docs/api/database-regulation)

## Description

The description the model reads, as the server declares it:

> ONE regulation of the signed-in user's OWN Obsidian regulatory database, in full: summary, scope, status, reference, frameworks, authorities, key dates, timeline, the law's recent changes, related news, why it is in the user's database, which of their entities it applies to, and its official source. Use it after database_search, with the id it returned.

## Parameters

| Argument | Type | Required | Description |
| --- | --- | --- | --- |
| `regulation_id` | string | required | The id exactly as database_search returned it: JURISDICTION/record id, e.g. "EU/eu-reach-regulation-1907-2006". |

## Returns

A Markdown text: the regulation's id, jurisdiction, status, reference, type, frameworks, authorities, next step, official source and the day it was checked, then its summary, scope, key dates, timeline, recent changes of the law, the entities it applies to, why it is in the database and the related news. A regulation outside the database returns a sentence saying so.

## Example

### Prompt

```text
What changed recently in the packaging regulation, and which of our entities does it apply to?
```

### Tool call

The `tools/call` request the client sends (JSON-RPC over Streamable HTTP):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "database_regulation",
    "arguments": {
      "regulation_id": "EU/example-packaging-regulation"
    }
  }
}
```

### Output

The text the tool returns for this call, on example data (generic values, not real records):

```markdown
## Example: Regulation on packaging and packaging waste
- id: EU/example-packaging-regulation  |  Jurisdiction: European Union  |  Status: In force
- Short title: Example PPR
- Reference: Regulation (EU) 2025/0000
- Type: regulation
- Frameworks: Example circular economy framework
- Authorities: European Commission
- Next step: Labelling obligations apply on 2027-01-01
- Official source: https://www.example.org/official/text/2025-0000
- Checked against the official text on: 2026-11-02
- In Obsidian: https://app.obsidianri.com/database/EU/example-packaging-regulation

Summary: Example summary of the regulation, as shown on its page in Obsidian.

Scope: Example scope: packaging placed on the EU market.

Key dates:
- Entry into force: 2025-02-11
- Applies from: 2026-08-12

Timeline (oldest first):
- 2025-01-22: Published in the Official Journal, https://www.example.org/official/text/2025-0000
- 2027-01-01: Labelling obligations apply (coming)

Recent changes of the law (newest first):
- 2026-10-03: Date moved, effective 2027-01-01. Example: the labelling date moved to 1 January 2027.

Applies to the user's entities: Example Europe GmbH (Applies)

Why it is in the user's database: Industry: Packaging

Related news:
- 2026-10-03: Example: Commission publishes the labelling act, https://www.example.org/official/news/2026-10-03

Cite the official source link above. If this single regulation answers the question, add the short 'How to find it yourself' trail (rule 7) from its authority, official source and reference.
```

To build it, the server sends this query to [`GET /v1/database/regulation`](https://obsidianri.com/docs/api/database-regulation): `id=EU/example-packaging-regulation`.

## Errors

A tool never fails with a protocol error for an account problem: it returns a message for the model to relay (over the allowance, too many requests, a module not part of your access, a regulation outside your database). Every message is on [Errors and limits](https://obsidianri.com/docs/errors#mcp-errors).

Source: https://obsidianri.com/docs/mcp/tools/database_regulation

---

<!-- page: https://obsidianri.com/docs/api -->

# REST API overview

The REST API gives your own systems the views of your Obsidian account, the same as the app and the MCP server: your regulatory database (`/v1/database`) and the news of your watches (`/v1/monitoring`). Read-only, JSON, one API key.

## Base URL

```text
https://api.obsidianri.com
```

HTTPS only. Every endpoint is a `GET` with its parameters in the query string, and answers JSON. The OpenAPI document is at [`https://api.obsidianri.com/openapi.json`](https://api.obsidianri.com/openapi.json) (version 1.0.0).

## Authentication

Send your API key in the `X-API-Key` header (`Authorization: Bearer` is accepted too). Keys are created at [app.obsidianri.com/account#api](https://app.obsidianri.com/account#api): see [Authentication](https://obsidianri.com/docs/authentication#rest-api-api-keys).

```bash
curl https://api.obsidianri.com/v1/database/overview \
  -H "X-API-Key: $OBSIDIAN_API_KEY"
```

## Endpoints

| Endpoint | Module | What it returns |
| --- | --- | --- |
| [GET`/v1/monitoring/news`](https://obsidianri.com/docs/api/monitoring-news) | Regulatory Monitoring | List monitoring news |
| [GET`/v1/monitoring/watches`](https://obsidianri.com/docs/api/monitoring-watches) | Regulatory Monitoring | List watches |
| [GET`/v1/database/search`](https://obsidianri.com/docs/api/database-search) | Regulatory Database | Search the database |
| [GET`/v1/database/overview`](https://obsidianri.com/docs/api/database-overview) | Regulatory Database | Database overview |
| [GET`/v1/database/regulation`](https://obsidianri.com/docs/api/database-regulation) | Regulatory Database | Get a regulation |

A key reaches a family when its module is part of the account: **Regulatory Database** for `/v1/database`, **Regulatory Monitoring** for `/v1/monitoring`. Any other path answers `403`.

## Pagination

The two list endpoints, [Search the database](https://obsidianri.com/docs/api/database-search) and [List monitoring news](https://obsidianri.com/docs/api/monitoring-news), return one page at a time:

- `limit`: items per page, from 1 to 50, default 20;
- `next` in the response: the cursor of the next page, `null` on the last page;
- `after`: send that cursor, with the same filters, to read the next page.

```bash
# first page
curl -G https://api.obsidianri.com/v1/database/search \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "jurisdiction=EU" --data-urlencode "limit=50"

# next page : the "next" value of the previous answer
curl -G https://api.obsidianri.com/v1/database/search \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "jurisdiction=EU" --data-urlencode "limit=50" \
  --data-urlencode "after=50"
```

A cursor is opaque: send it back as it came, never build it.

## Filters

Most filters take a comma list. Inside one list the values combine with OR, and the filters combine with AND: `jurisdiction=EU,FR&status=in_force` is the regulations in force in the EU or in France. Search words (`q`) are all required.

## Errors

An error answers a standard HTTP status with a JSON body whose `detail` says what happened:

```json
{
  "detail": "Invalid or expired API key"
}
```

| Status | Meaning |
| --- | --- |
| `400` | A parameter has a bad value (a cursor, a date, an id). |
| `401` | The API key is missing, unknown or revoked. |
| `402` | The API credits of the account are spent. |
| `403` | The API, or this family, is not part of the account's access. |
| `404` | The regulation is not in your database, or the watch is not yours. |
| `422` | A parameter is missing or out of its bounds. |
| `429` | Too many requests for this key: retry after 60 seconds. |
| `503` | Temporarily unavailable: retry in a moment. |

Every message and the rate limit headers are on [Errors and limits](https://obsidianri.com/docs/errors).

Source: https://obsidianri.com/docs/api

---

<!-- page: https://obsidianri.com/docs/api/monitoring-news -->

# List monitoring news

GET`https://api.obsidianri.com/v1/monitoring/news`

The news of your watches: the same feed as the News page of your account, newest first. Each item is an official news, new text, opinion, decision or consultation one of your watches detected, with its official source link. Filters combine with AND; the values inside one comma list combine with OR.

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | optional | Search words. Every word is required. Up to 200 characters. |
| `jurisdiction` | string | optional | Comma list of jurisdiction ids, e.g. `EU,FR`. `GLOBAL` is the international bodies. Up to 200 characters. |
| `topic` | string | optional | Comma list of topic ids: only the news tagged with one of them. Up to 400 characters. |
| `kind` | string | optional | Comma list of news kinds: recall, sanction, sanctions_list, list_change, adopted_text, proposal, guidance, consultation, postponement, reporting_threshold, divergence, court_decision, analysis_report, announcement. Up to 200 characters. |
| `watch` | string | optional | One watch id, from List watches: only the news of that watch. Up to 200 characters. |
| `since` | string | optional | `YYYY-MM-DD`: only the news published that day or later. Up to 10 characters. |
| `after` | string | optional | The `next` cursor of the previous page. Up to 300 characters. |
| `limit` | integer | optional | Items per page. Default `20`. From `1` to `50`. |

## Request

```bash
curl -G https://api.obsidianri.com/v1/monitoring/news \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "q=PFAS" \
  --data-urlencode "jurisdiction=EU" \
  --data-urlencode "since=2026-11-01" \
  --data-urlencode "limit=2"
```

## Response

`200` with a JSON object:

| Field | Type | Description |
| --- | --- | --- |
| `items` | array of objects | The news of this page, newest first. Empty fields are left out of an item. |
| `items[].news_id` | string | The id of the news. |
| `items[].title` | string | The title of the news. |
| `items[].description` | string | A short description, up to 280 characters. |
| `items[].url` | string | The official source link. |
| `items[].pub_date` | string | The publication date, `YYYY-MM-DD`. |
| `items[].jurisdiction_id` | string | The jurisdiction id, e.g. `EU`. |
| `items[].source_name` | string | The official source that published it. |
| `items[].news_kind` | string | The kind of news (see the `kind` parameter). |
| `items[].milestone_type` | string | The kind of date the news announces, when it announces one. |
| `items[].milestone_date` | string | That date, `YYYY-MM-DD`. |
| `items[].topic_ids` | array of strings | The topics the news is tagged with. |
| `items[].category` | string | The industry id of the news. |
| `next` | string or null | The cursor of the next page, to send as `after`. `null` on the last page. |
| `watch` | string | The watch id the page is filtered on, empty when none. |

### Example response

Generic values that show the shape, not real records:

```json
{
  "items": [
    {
      "news_id": "a1b2c3d4e5",
      "title": "Example: consultation opened on a draft PFAS restriction",
      "description": "Example description of the news, as shown on the News page of the account.",
      "url": "https://www.example.org/official/news/2026-11-20-consultation",
      "pub_date": "2026-11-20",
      "jurisdiction_id": "EU",
      "source_name": "Example Agency",
      "news_kind": "consultation",
      "milestone_type": "consultation_end",
      "milestone_date": "2027-02-20",
      "topic_ids": [
        "pfas"
      ],
      "category": "chemicals"
    },
    {
      "news_id": "f6g7h8i9j0",
      "title": "Example: guidance updated on substance registration",
      "url": "https://www.example.org/official/news/2026-11-12-guidance",
      "pub_date": "2026-11-12",
      "jurisdiction_id": "EU",
      "source_name": "Example Agency",
      "news_kind": "guidance",
      "topic_ids": [
        "pfas"
      ],
      "category": "chemicals"
    }
  ],
  "next": "1762905600.000~f6g7h8i9j0",
  "watch": ""
}
```

## Errors

| Status | When |
| --- | --- |
| `400` | `since` is not a `YYYY-MM-DD` date (detail: `since must be YYYY-MM-DD`), or `after` is not a cursor this endpoint returned (detail: `bad_cursor`). |
| `403` | The monitoring news are not part of the API and MCP access of the account. |
| `404` | `watch` is not one of the account's watches (detail: `No watch with this id on this account.`). |
| `401`, `402`, `429`, `503` | As for every endpoint: see [Errors and limits](https://obsidianri.com/docs/errors). |

## In the MCP server

The same read is the MCP tool [`monitoring_news`](https://obsidianri.com/docs/mcp/tools/monitoring_news).

Source: https://obsidianri.com/docs/api/monitoring-news

---

<!-- page: https://obsidianri.com/docs/api/monitoring-watches -->

# List watches

GET`https://api.obsidianri.com/v1/monitoring/watches`

Your watches: what each one follows, its jurisdictions, how often it is checked and how many news it found. Active watches come first, then by name. Use an `id` as the `watch` filter of List monitoring news.

## Query parameters

None.

## Request

```bash
curl -G https://api.obsidianri.com/v1/monitoring/watches \
  -H "X-API-Key: $OBSIDIAN_API_KEY"
```

## Response

`200` with a JSON object:

| Field | Type | Description |
| --- | --- | --- |
| `watches` | array of objects | The watches of the account. |
| `watches[].id` | string | The id of the watch. |
| `watches[].name` | string | Its name. |
| `watches[].jurisdictions` | array of strings | The jurisdiction ids it follows. |
| `watches[].frequency` | string | How often it is checked. |
| `watches[].status` | string | Its status. |
| `watches[].enabled` | boolean | `false` when the watch is paused. |
| `watches[].news_count` | integer | The number of news it found. |
| `watches[].instructions` | string | What the watch follows, in words, up to 1,500 characters. |

### Example response

Generic values that show the shape, not real records:

```json
{
  "watches": [
    {
      "id": "w_example01",
      "name": "Example: PFAS restrictions",
      "jurisdictions": [
        "EU",
        "FR"
      ],
      "frequency": "daily",
      "status": "active",
      "enabled": true,
      "news_count": 42,
      "instructions": "Example: restrictions, consultations and guidance on PFAS in the EU and France."
    }
  ]
}
```

## Errors

| Status | When |
| --- | --- |
| `403` | The monitoring news are not part of the API and MCP access of the account. |
| `401`, `402`, `429`, `503` | As for every endpoint: see [Errors and limits](https://obsidianri.com/docs/errors). |

## In the MCP server

The same read is the MCP tool [`my_watches`](https://obsidianri.com/docs/mcp/tools/my_watches).

Source: https://obsidianri.com/docs/api/monitoring-watches

---

<!-- page: https://obsidianri.com/docs/api/database-search -->

# Search the database

GET`https://api.obsidianri.com/v1/database/search`

The regulations of your regulatory database, the same list as its Database page, filtered, sorted and paged. Your database holds the regulations selected for your account and the acts your entities are subject to, within your jurisdictions. Filters combine with AND; the values inside one comma list combine with OR.

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | optional | Search words. Every word is required, matched on the title, short title, reference, jurisdiction, authorities, industries, frameworks and entity names. Up to 200 characters. |
| `jurisdiction` | string | optional | Comma list of jurisdiction ids or names, e.g. `EU,US`. Up to 300 characters. |
| `industry` | string | optional | Comma list of industry ids or names (see Database overview). Up to 400 characters. |
| `framework` | string | optional | Comma list of framework ids or names (see Database overview). Up to 400 characters. |
| `status` | string | optional | Comma list among `in_force`, `adopted`, `proposed`, `consultation`, `expected`, `repealed`, `withdrawn`. Up to 200 characters. |
| `entity` | string | optional | Comma list of your entity ids or names: only the regulations that apply to them. Up to 400 characters. |
| `sort` | string | optional | `title` (default), `updated` (the most recent change of the law first) or `next` (the nearest coming step first). Up to 10 characters. |
| `after` | string | optional | The `next` cursor of the previous page. Up to 12 characters. |
| `limit` | integer | optional | Results per page. Default `20`. From `1` to `50`. |

## Request

```bash
curl -G https://api.obsidianri.com/v1/database/search \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "q=packaging" \
  --data-urlencode "jurisdiction=EU" \
  --data-urlencode "sort=next" \
  --data-urlencode "limit=1"
```

## Response

`200` with a JSON object:

| Field | Type | Description |
| --- | --- | --- |
| `total` | integer | The number of regulations in your database. |
| `matched` | integer | The number of regulations that match the filters. |
| `items` | array of objects | The regulations of this page. Empty fields are left out of an item. |
| `items[].id` | string | The regulation id, `JURISDICTION/record id`: the `id` of Get a regulation. |
| `items[].jurisdiction` | string | The jurisdiction id. |
| `items[].jurisdiction_label` | string | The jurisdiction name. |
| `items[].title` | string | The title. |
| `items[].short_title` | string | The short title. |
| `items[].reference` | string | The official reference. |
| `items[].status` | string | The status id (see the `status` parameter). |
| `items[].status_label` | string | The status name, e.g. `In force`. |
| `items[].key_date` | object | The key date: `label`, `date` and `precision`. |
| `items[].next_step` | object | The next coming step: `date`, `what` and `precision`. |
| `items[].law_last_changed` | string | The date of the last change of the law. |
| `items[].industries` | array of strings | Its industries. |
| `items[].frameworks` | array of strings | Its frameworks. |
| `items[].entities` | array of objects | Your entities it concerns: `name` and `verdict`. |
| `items[].authorities` | array of strings | The authorities. |
| `items[].official_url` | string | The official source link. |
| `items[].obsidian_url` | string | The regulation page in Obsidian. |
| `next` | string or null | The cursor of the next page, to send as `after`. `null` on the last page. |

### Example response

Generic values that show the shape, not real records:

```json
{
  "total": 148,
  "matched": 3,
  "items": [
    {
      "id": "EU/example-packaging-regulation",
      "jurisdiction": "EU",
      "jurisdiction_label": "European Union",
      "title": "Example: Regulation on packaging and packaging waste",
      "short_title": "Example PPR",
      "reference": "Regulation (EU) 2025/0000",
      "status": "in_force",
      "status_label": "In force",
      "key_date": {
        "label": "Applies from",
        "date": "2026-08-12",
        "precision": "day"
      },
      "next_step": {
        "date": "2027-01-01",
        "what": "Labelling obligations apply",
        "precision": "day"
      },
      "law_last_changed": "2026-10-03",
      "industries": [
        "Packaging"
      ],
      "frameworks": [
        "Example circular economy framework"
      ],
      "entities": [
        {
          "name": "Example Europe GmbH",
          "verdict": "Applies"
        }
      ],
      "authorities": [
        "European Commission"
      ],
      "official_url": "https://www.example.org/official/text/2025-0000",
      "obsidian_url": "https://app.obsidianri.com/database/EU/example-packaging-regulation"
    }
  ],
  "next": "1"
}
```

## Errors

| Status | When |
| --- | --- |
| `400` | `after` is not a cursor this endpoint returned (detail: `bad_cursor`). |
| `403` | The regulatory database is not part of the API and MCP access of the account. |
| `401`, `402`, `429`, `503` | As for every endpoint: see [Errors and limits](https://obsidianri.com/docs/errors). |

## In the MCP server

The same read is the MCP tool [`database_search`](https://obsidianri.com/docs/mcp/tools/database_search).

Source: https://obsidianri.com/docs/api/database-search

---

<!-- page: https://obsidianri.com/docs/api/database-overview -->

# Database overview

GET`https://api.obsidianri.com/v1/database/overview`

What your regulatory database holds: its counts, and its jurisdictions, industries, frameworks, statuses and entities with their counts and ids (the values Search the database filters on), your account's jurisdictions and the rules of the selection made for your account.

## Query parameters

None.

## Request

```bash
curl -G https://api.obsidianri.com/v1/database/overview \
  -H "X-API-Key: $OBSIDIAN_API_KEY"
```

## Response

`200` with a JSON object:

| Field | Type | Description |
| --- | --- | --- |
| `total` | integer | The number of regulations in your database. |
| `from_selection` | integer | How many come from the selection made for your account. |
| `from_entities` | integer | How many your entities hold. A regulation can be in both. |
| `jurisdictions` | array of objects | `id`, `label` and `count` of each jurisdiction. |
| `industries` | array of objects | `id`, `label` and `count` of each industry. |
| `frameworks` | array of objects | `id`, `label` and `count` of each framework. |
| `statuses` | array of objects | `id`, `label` and `count` of each status. |
| `entities` | array of objects | `id`, `label` and `count` of each of your entities. |
| `account_jurisdictions` | array of objects | Your account's jurisdictions: `id` and `label`. |
| `selection_rules` | array of objects | The rules of the selection: `kind`, `label`, and `jurisdiction` (one regulation) or `jurisdictions`. |
| `entity_feed` | boolean | `true` when the acts of your entities feed the database. |
| `computed_at` | string | When the view was computed, ISO 8601 UTC. |

### Example response

Generic values that show the shape, not real records:

```json
{
  "total": 148,
  "from_selection": 120,
  "from_entities": 41,
  "jurisdictions": [
    {
      "id": "EU",
      "label": "European Union",
      "count": 96
    },
    {
      "id": "FR",
      "label": "France",
      "count": 52
    }
  ],
  "industries": [
    {
      "id": "packaging",
      "label": "Packaging",
      "count": 37
    }
  ],
  "frameworks": [
    {
      "id": "example-framework",
      "label": "Example circular economy framework",
      "count": 12
    }
  ],
  "statuses": [
    {
      "id": "in_force",
      "label": "In force",
      "count": 110
    },
    {
      "id": "proposed",
      "label": "Proposed",
      "count": 21
    }
  ],
  "entities": [
    {
      "id": "example-europe-gmbh",
      "label": "Example Europe GmbH",
      "count": 41
    }
  ],
  "account_jurisdictions": [
    {
      "id": "EU",
      "label": "European Union"
    },
    {
      "id": "FR",
      "label": "France"
    }
  ],
  "selection_rules": [
    {
      "kind": "Industry",
      "label": "Packaging",
      "jurisdictions": "all of the account's"
    }
  ],
  "entity_feed": true,
  "computed_at": "2026-11-24T08:00:00Z"
}
```

## Errors

| Status | When |
| --- | --- |
| `403` | The regulatory database is not part of the API and MCP access of the account. |
| `401`, `402`, `429`, `503` | As for every endpoint: see [Errors and limits](https://obsidianri.com/docs/errors). |

## In the MCP server

The same read is the MCP tool [`database_overview`](https://obsidianri.com/docs/mcp/tools/database_overview).

Source: https://obsidianri.com/docs/api/database-overview

---

<!-- page: https://obsidianri.com/docs/api/database-regulation -->

# Get a regulation

GET`https://api.obsidianri.com/v1/database/regulation`

One regulation of your regulatory database in full: summary, scope, status, reference, key dates, timeline, the recent changes of the law, related news, why it is in your database, the entities it applies to and its official source. A regulation outside your database returns `404`.

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required | The regulation id exactly as Search the database returns it, `JURISDICTION/record id`, e.g. `EU/eu-reach-regulation-1907-2006`. Up to 260 characters. |

## Request

```bash
curl -G https://api.obsidianri.com/v1/database/regulation \
  -H "X-API-Key: $OBSIDIAN_API_KEY" \
  --data-urlencode "id=EU/example-packaging-regulation"
```

## Response

`200` with a JSON object:

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The regulation id. |
| `jurisdiction` | string | The jurisdiction id. |
| `jurisdiction_label` | string | The jurisdiction name. |
| `title` | string | The title. |
| `short_title` | string | The short title. |
| `reference` | string | The official reference. |
| `document_type` | string | The type of act. |
| `status` | string | The status id. |
| `status_label` | string | The status name. |
| `summary` | string | The summary. |
| `scope` | string | Who and what it covers. |
| `frameworks` | array of strings | Its frameworks. |
| `authorities` | array of strings | The authorities. |
| `key_dates` | array of objects | The key dates, oldest first: `label`, `date`, `precision`. |
| `next_step` | object | The next coming step: `date`, `what`, `precision`. |
| `timeline` | array of objects | The steps: `date`, `precision`, `label`, `url`, `upcoming`. |
| `recent_changes` | array of objects | Up to 10 recent changes of the law: `date`, `effective_date`, `kind_label`, `certainty_label`, `summary`. |
| `news` | array of objects | Up to 8 related news: `date`, `title`, `url`. |
| `why_in_database` | array of objects | Why it is in your database: `kind` (Industry, Framework, Regulation or Entity) and `label`. |
| `entities` | array of objects | Your entities it concerns: `name` and `verdict`. |
| `industries` | array of strings | Its industries. |
| `official_source` | object | The official source: `url`, `label`, and `verified_on` (the day it was checked against the official text). |
| `obsidian_url` | string | The regulation page in Obsidian. |

### Example response

Generic values that show the shape, not real records:

```json
{
  "id": "EU/example-packaging-regulation",
  "jurisdiction": "EU",
  "jurisdiction_label": "European Union",
  "title": "Example: Regulation on packaging and packaging waste",
  "short_title": "Example PPR",
  "reference": "Regulation (EU) 2025/0000",
  "document_type": "regulation",
  "status": "in_force",
  "status_label": "In force",
  "summary": "Example summary of the regulation, as shown on its page in Obsidian.",
  "scope": "Example scope: packaging placed on the EU market.",
  "frameworks": [
    "Example circular economy framework"
  ],
  "authorities": [
    "European Commission"
  ],
  "key_dates": [
    {
      "label": "Entry into force",
      "date": "2025-02-11"
    },
    {
      "label": "Applies from",
      "date": "2026-08-12"
    }
  ],
  "next_step": {
    "date": "2027-01-01",
    "what": "Labelling obligations apply",
    "precision": "day"
  },
  "timeline": [
    {
      "date": "2025-01-22",
      "label": "Published in the Official Journal",
      "url": "https://www.example.org/official/text/2025-0000"
    },
    {
      "date": "2027-01-01",
      "label": "Labelling obligations apply",
      "upcoming": true
    }
  ],
  "recent_changes": [
    {
      "date": "2026-10-03",
      "kind_label": "Date moved",
      "effective_date": "2027-01-01",
      "summary": "Example: the labelling date moved to 1 January 2027."
    }
  ],
  "news": [
    {
      "date": "2026-10-03",
      "title": "Example: Commission publishes the labelling act",
      "url": "https://www.example.org/official/news/2026-10-03"
    }
  ],
  "why_in_database": [
    {
      "kind": "Industry",
      "label": "Packaging"
    }
  ],
  "entities": [
    {
      "name": "Example Europe GmbH",
      "verdict": "Applies"
    }
  ],
  "industries": [
    "Packaging"
  ],
  "official_source": {
    "url": "https://www.example.org/official/text/2025-0000",
    "label": "EUR-Lex",
    "verified_on": "2026-11-02"
  },
  "obsidian_url": "https://app.obsidianri.com/database/EU/example-packaging-regulation"
}
```

## Errors

| Status | When |
| --- | --- |
| `400` | `id` is not `JURISDICTION/record id` (detail: `id must be JURISDICTION/record id, as database_search returns it (e.g. EU/eu-reach).`). |
| `403` | The regulatory database is not part of the API and MCP access of the account. |
| `404` | The regulation is not in your database (detail: `This regulation is not in the user's Obsidian regulatory database.`). |
| `422` | `id` is missing or shorter than 3 characters. |
| `401`, `402`, `429`, `503` | As for every endpoint: see [Errors and limits](https://obsidianri.com/docs/errors). |

## In the MCP server

The same read is the MCP tool [`database_regulation`](https://obsidianri.com/docs/mcp/tools/database_regulation).

Source: https://obsidianri.com/docs/api/database-regulation

---

<!-- page: https://obsidianri.com/docs/errors -->

# Errors and limits

The HTTP status codes of the REST API with the messages it actually returns, the errors of the MCP server, and the usage and rate limits of both.

## REST API errors

An error answers a standard HTTP status with a JSON body. `detail` is a sentence; some errors add fields.

| Status | `detail` | What to do |
| --- | --- | --- |
| `400` | The value of a parameter, from the endpoint: `bad_cursor`, `since must be YYYY-MM-DD`, or `id must be JURISDICTION/record id, as database_search returns it (e.g. EU/eu-reach).` | Fix the parameter. Send a cursor back exactly as `next` gave it. |
| `401` | `Missing API key. Provide via X-API-Key header or Authorization: Bearer <key>` | Send the key in `X-API-Key`. |
| `401` | `Invalid or expired API key` | The key is unknown, revoked or expired: create a new one. |
| `402` | `API credit limit reached. Purchase additional credits to continue.` | The API credits of the account are spent: see [Usage limits](https://obsidianri.com/docs/errors#usage-limits). |
| `403` | `The Enterprise API is not active for this account. Contact support@obsidianri.com to switch it back on.` | The API and MCP module is off for the account. |
| `403` | `The regulatory database is not part of this account's Obsidian API and MCP access.` (or `The monitoring news are ...`), with `"code": "api_surface_off"` | This family is not part of the account's access. Use the other family. |
| `403` | `This endpoint is not part of the Obsidian API. A key reads its account's own views : /v1/database (search, overview, regulation) and /v1/monitoring (news, watches).` | Use one of the [five endpoints](https://obsidianri.com/docs/api). |
| `403` | `This API key is not attached to an Obsidian account.` | Contact support@obsidianri.com. |
| `404` | `This regulation is not in the user's Obsidian regulatory database.` or `No watch with this id on this account.` | Search the database, or list your watches, for a valid id. |
| `422` | A list of validation errors (FastAPI): `loc`, `msg`, `type` for each. | A required parameter is missing, or a value is out of its bounds (e.g. `limit` over 50). |
| `429` | `Rate limit exceeded` | Wait for `Retry-After` (60 seconds) and retry. |
| `503` | A sentence that ends with *Retry in a moment.* or says the service is temporarily unavailable. | Retry after a short wait. |

### The 402 body

```json
{
  "detail": "API credit limit reached. Purchase additional credits to continue.",
  "credits_remaining": 0,
  "monthly_limit": 1000,
  "monthly_used": 1000,
  "topup_url": "https://app.obsidianri.com/account#api"
}
```

### The 422 body

```json
{
  "detail": [
    {
      "type": "less_than_equal",
      "loc": ["query", "limit"],
      "msg": "Input should be less than or equal to 50",
      "input": "80",
      "ctx": {"le": 50}
    }
  ]
}
```

## MCP errors

### Sign-in

Without a valid Obsidian OAuth token, the server answers `401` with a `WWW-Authenticate` header; MCP clients read it and start the sign-in on their own ([Authentication](https://obsidianri.com/docs/authentication)).

```json
{
  "error": "unauthorized",
  "error_description": "Authentication required. Connect your Obsidian account."
}
```

At the token endpoint, the OAuth errors are standard (`invalid_grant`, `invalid_request`, `unsupported_grant_type`, `invalid_client_metadata`). Two of them concern the account: `invalid_grant` with `mailbox not confirmed` (confirm your email address first) and `invalid_grant` with `MCP access is not enabled for this account`. In the browser, an account without the API and MCP module sees *MCP access is not enabled* with a link to ask for it.

### Tool calls

An account problem never breaks a tool call: the tool returns a message for the model to relay, as its text result.

| Case | What the tool returns |
| --- | --- |
| Over the monthly allowance | That the plan limit is reached (with the requests used this month), and that you can upgrade or turn on pay-as-you-go at `app.obsidianri.com/account#mcp`. |
| Over the allowance and the pay-as-you-go balance | That both are used up, and to raise the monthly pay-as-you-go limit or upgrade. |
| Too many requests | `Obsidian MCP rate limit reached (too many requests in a short window). Wait about a minute and try again.` |
| The API and MCP module is off | That Obsidian MCP access is not active for the account, to contact support@obsidianri.com, and not to answer from other sources. |
| A family is not part of your access | That this part of Obsidian is not included, with the instruction not to call the tool again in the conversation and to use the other tools. |
| A regulation outside your database | `This regulation is not in the user's Obsidian regulatory database.`, then to use `database_search`. |
| No result | A sentence saying so, with wider filters to try. |
| An excluded topic | The exclusion notice, for the model to relay word for word. |
| The account cannot be read | `The user's Obsidian account could not be read right now. Tell them to try again in a moment.` |

## Usage limits

### MCP

Each tool call counts as one request against the monthly MCP allowance of the account, set by its plan:

| Plan | MCP requests per month |
| --- | --- |
| Free | 75 |
| Independent | 500 |
| Expert 5x | 2,500 |
| SME | 5,000 |
| Corporate | Set by the contract |

Your tier and your usage are at [app.obsidianri.com/account#mcp](https://app.obsidianri.com/account#mcp).

### REST API

Each request counts against the API credits of the account: a monthly allowance, then the credits bought on top. All the keys of an account draw on the same credits. When both are spent, the API answers `402` until the next month or a top-up at [app.obsidianri.com/account#api](https://app.obsidianri.com/account#api). While credits are counted, each answer carries `X-Credits-Remaining`, `X-Credits-Monthly-Limit` and `X-Credits-Monthly-Used`.

## Rate limits

Each API key has a rate limit, by default **60 requests per minute** and **10,000 per day**. Every answer carries the counters:

| Header | Meaning |
| --- | --- |
| `X-RateLimit-Limit-Minute` | Requests allowed per minute. |
| `X-RateLimit-Remaining-Minute` | Requests left this minute. |
| `X-RateLimit-Limit-Day` | Requests allowed per day. |
| `X-RateLimit-Remaining-Day` | Requests left today. |

Over the limit, the API answers `429` with `Retry-After: 60`. Wait, then retry; spread a batch over time instead of sending it at once.

Source: https://obsidianri.com/docs/errors

---

<!-- page: https://obsidianri.com/docs/changelog -->

# Changelog

What changed in the Obsidian MCP server, REST API and this documentation, newest first.

## 2026-11-24

### The reference documentation

One page per MCP tool and per REST endpoint, generated from the server code and the OpenAPI document, with the authentication, errors and limits, a Copy page button and the whole documentation as one Markdown file at /docs/llms-full.txt.

Source: https://obsidianri.com/docs/changelog
