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
https://api.obsidianri.comHTTPS 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.
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 | Regulatory Monitoring | List monitoring news |
GET/v1/monitoring/watches | Regulatory Monitoring | List watches |
GET/v1/database/search | Regulatory Database | Search the database |
GET/v1/database/overview | Regulatory Database | Database overview |
GET/v1/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 and List monitoring news, return one page at a time:
limit: items per page, from 1 to 50, default 20;nextin the response: the cursor of the next page,nullon the last page;after: send that cursor, with the same filters, to read the next page.
# 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:
{
"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.