Errors and limits
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. |
403 | The Enterprise API is not active for this account. Contact [email protected] 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. |
403 | This API key is not attached to an Obsidian account. | Contact [email protected]. |
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
{
"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
{
"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).
{
"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 [email protected], 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.
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. 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.