Customer support |
Login |
Errors and limits

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.

StatusdetailWhat to do
400The 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.
401Missing API key. Provide via X-API-Key header or Authorization: Bearer <key>Send the key in X-API-Key.
401Invalid or expired API keyThe key is unknown, revoked or expired: create a new one.
402API credit limit reached. Purchase additional credits to continue.The API credits of the account are spent: see Usage limits.
403The 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.
403The 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.
403This 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.
403This API key is not attached to an Obsidian account.Contact [email protected].
404This 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.
422A 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).
429Rate limit exceededWait for Retry-After (60 seconds) and retry.
503A 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).

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.

CaseWhat the tool returns
Over the monthly allowanceThat 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 balanceThat both are used up, and to raise the monthly pay-as-you-go limit or upgrade.
Too many requestsObsidian MCP rate limit reached (too many requests in a short window). Wait about a minute and try again.
The API and MCP module is offThat 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 accessThat 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 databaseThis regulation is not in the user's Obsidian regulatory database., then to use database_search.
No resultA sentence saying so, with wider filters to try.
An excluded topicThe exclusion notice, for the model to relay word for word.
The account cannot be readThe 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:

PlanMCP requests per month
Free75
Independent500
Expert 5x2,500
SME5,000
CorporateSet 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:

HeaderMeaning
X-RateLimit-Limit-MinuteRequests allowed per minute.
X-RateLimit-Remaining-MinuteRequests left this minute.
X-RateLimit-Limit-DayRequests allowed per day.
X-RateLimit-Remaining-DayRequests 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.