Skip to Content
MindedDocsGet started

Errors

When Minded refuses a call, the tool returns an error that says what refused it and, where it helps, a link to fix it in Minded.

A refused send_prompt makes no chat.

  • Over MCP, a refused tool call is a tool error (isError: true) whose text is the message, ready to show the member. A key that is missing or no longer works refuses the whole request with HTTP 401.
  • Over HTTP at https://app.minded.com/v1, a refusal answers with an HTTP status and a JSON body:
Field
codeA stable name for the refusal (below)
statusThe HTTP status
messageWhat happened, in plain words, ready to show the member
dataWhen there is one: the page in Minded that fixes it (billingUrl, usageLimitsUrl), or how many seconds to wait (retryAfter)

With an API key

What happenedStatuscodeWhat to do
The key was revoked401UNAUTHORIZEDMake a new key on Settings › Integrations › API keys and swap it in where you hold the old one
The key's maker left the organization401UNAUTHORIZEDSame: a member of the organization makes a new key
The call is outside the key's access403FORBIDDENThe message names the area and level the call needs, for example "This key can’t send prompts: it needs Chats: Read and write." Open the key on Settings › Integrations › API keys and change its access
The key started an agent run403FORBIDDENStarting agent runs with a key comes later. Start the run from the agent's code (Agent code)
The chat is not open to the key's maker403FORBIDDENThe key reaches only the chats its maker may open in Minded
No usage left402OUT_OF_USAGEdata.billingUrl opens Billing. Add usage (or ask an Admin to), then send the prompt again. No chat was made
The monthly usage limit was reached402OUT_OF_USAGEdata.usageLimitsUrl opens Usage limits, where an Admin raises the limit
Too many calls429TOO_MANY_REQUESTSA key makes at most 60 calls a minute (API keys). Wait, then call again
The question was already answered in Minded409CONFLICTNothing to fix. Minded uses the first answer. Keep reading with read_chat
The answer needs Minded itself (an app to connect, the browser to take control of)403 or 412FORBIDDEN or PRECONDITION_FAILEDGive the member the chat's link (Questions and approvals)
The input is not valid, for example an empty text400BAD_REQUESTFix the input. Over MCP, the message names the field

A key's access never lifts its maker's role. When your role cannot do something, changing the key's access does not help.

Minded could not be reached

The call did not reach Minded, so nothing changed and nothing was lost there. Try again with the same clientId: a prompt or an answer sent again lands once. If you were reading a reply, read again with your last nextAfterSeq and you lose nothing.

From agent code

A refused call from agent code answers the same way, with the same code and message. The run carries on, and Minded decides what to do next (Agent code).

What happenedStatuscodeWhat to do
The code reached a chat other than its run's own and the chats it started403FORBIDDENStart a chat from the code, and send to that one
The code answered a question403FORBIDDENQuestions are the member's to answer
The code listed or cancelled wake-ups403FORBIDDENA member's API key lists and cancels them
The run's turn is over, or its token expired401UNAUTHORIZEDNothing to fix: the code acts only while its turn runs
The runs of one member sent more than 60 prompts in an hour429TOO_MANY_REQUESTSWait, then send again