Customer support |
Login |
REST API

REST 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 (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: see Authentication.

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

Endpoints

EndpointModuleWhat it returns
GET/v1/monitoring/newsRegulatory MonitoringList monitoring news
GET/v1/monitoring/watchesRegulatory MonitoringList watches
GET/v1/database/searchRegulatory DatabaseSearch the database
GET/v1/database/overviewRegulatory DatabaseDatabase overview
GET/v1/database/regulationRegulatory DatabaseGet 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 and List 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"
}
StatusMeaning
400A parameter has a bad value (a cursor, a date, an id).
401The API key is missing, unknown or revoked.
402The API credits of the account are spent.
403The API, or this family, is not part of the account's access.
404The regulation is not in your database, or the watch is not yours.
422A parameter is missing or out of its bounds.
429Too many requests for this key: retry after 60 seconds.
503Temporarily unavailable: retry in a moment.

Every message and the rate limit headers are on Errors and limits.