
{"error":{"code":"invalid_prompt","message":"prompt required (max 4000 chars)"}}MCP calls use JSON-RPC errors instead; see MCP server.
400 invalid_prompt POST /api/v1/ai/complete with {}
403 origin_not_allowed Origin header from a non-HiringsAI site
404 not_found unknown tool slug or unknown /api/v1 route
405 method_not_allowed GET /mcp
415 unsupported_media_type Content-Type is not application/json429 rate_limited over 20 requests/minute for your client
503 daily_capacity_reached daily AI allowance used, resets 00:00 UTC
503 ai_unavailable AI binding missing
500 internal_error unexpected failureAPI errors
Real tool results from the HiringsAI API, shown the way you will see them.




In depth
Every error from the web routes has the same shape. This page groups the codes by what you should do: fix the request, slow down, or wait. It also shows how the MCP route reports the same problems.
Overview
Shape
An error answer holds an error object with a code and a message. The code is for your program. The message is for a person reading a log. The HTTP status carries the same meaning as the code.
{"error":{"code":"invalid_prompt","message":"prompt required (max 4000 chars)"}}
01 / 08
The code is for your program.
Fix the request
These errors mean something in the request needs to change. Retrying the same call gives the same answer.
| Status | Code | What to change |
|---|---|---|
| 400 | invalid_prompt | Send a non-empty prompt of 4000 characters or fewer. |
| 404 | not_found | Check the slug or the route path. |
| 405 | method_not_allowed | Use POST for /mcp. |
| 415 | unsupported_media_type | Send the header Content-Type: application/json. |
| 403 | origin_not_allowed | Call from a server, or from a HiringsAI page, not from another website in a browser. |

02 / 08
These errors repeat until the request is fixed.
Slow down
These errors mean the request was fine but the service is protecting a shared allowance. Waiting fixes them.
| Status | Code | How long to wait |
|---|---|---|
| 429 | rate_limited | Until the minute you are counted in has passed. |
| 503 | daily_capacity_reached | Until 00:00 UTC. |

03 / 08
Waiting fixes them.
Not in your hands
ai_unavailable means the text model is not connected to the service. internal_error means something unexpected failed, and the message says what. Neither can be fixed from your side. Try again later.

04 / 08
If you see these, nothing in your call needs to change.
MCP
MCP uses JSON-RPC errors, which carry a number. An unknown method returns -32601 "Method not found". A body that is not valid JSON returns -32700 "Parse error". An unknown tool name returns -32602 "Unknown tool".
A tool that runs but fails, such as a rate limit or an unknown slug, returns HTTP 200 with isError: true and a message in the result text.
{"jsonrpc":"2.0","id":9,"error":{"code":-32601,"message":"Method not found"}}| Situation | What you get |
|---|---|
| Body is not valid JSON | HTTP 400 and error -32700 |
| Unknown method | Error -32601 |
| Unknown tool name | Error -32602 |
| Tool fails (limit, unknown slug) | Result with isError: true |
Reference
HiringsAI has a small public surface. Three web routes and one protocol route cover everything on this site that a program can call. This table is the same on every developer page so you can keep it open while you work.
| Route | Method | What it does | Needs |
|---|---|---|---|
/api/v1/tools | GET | Returns count and a tools list. Add ?suite=build, ?suite=automate or ?suite=computer to narrow it. | Nothing. No key, no account. |
/api/v1/tools/{slug} | GET | Returns one tool: slug, name, suite, summary, available, url and runs. | The tool slug in the path. |
/api/v1/ai/complete | POST | Sends a prompt to the text model and returns text and model. | A JSON body with prompt, and the header Content-Type: application/json. |
/mcp | POST | Speaks JSON-RPC 2.0 so an AI client can list and call the three tools. | A JSON-RPC body. A GET returns 405. |
Tools run in the browser, on the tool page. The API describes them and lists them. It does not run them for you.

06 / 08
Only calls that were run and checked are written down on these pages.
Reference
One shared limiter covers every route that uses the text model. It counts calls across all of them together, so switching routes does not reset your count.
| Limit | Value | What happens at the edge |
|---|---|---|
| Requests per minute | 20 per client IP | The twenty-first request in the minute gets a 429 and the message to retry shortly. |
| Daily text allowance | about 8,000 estimated units | New text requests get a 503 until 00:00 UTC. The units are estimates, not billing figures. |
| Prompt length | 4000 characters | Longer prompts get a 400 with invalid_prompt. |
| Reply length | max_tokens up to 1024 | A larger number is cut down to 1024. If you send none, the service uses 512. |
| Tool list and tool detail | No limit | These calls do not count toward the 20 per minute. |

07 / 08
Switching between routes does not give you a fresh allowance.
Words used here
Short definitions, so you do not need outside reading to follow the rest of the page.
/api/v1/tools is an endpoint./mcp.Questions
No. The routes on this site are public and have no keys. Calls from other websites in a browser are refused, but calls from curl or a server are accepted.
Yes, for all 139 tools, through run_tool or one tool_NAME per tool. Every entry also has a url that points to its page.
Llama 3.1 8B. The reply includes the model name in the model field so you can see what answered.
You went over 20 requests in a minute from your client, counted across all the text routes. Wait a short while and try again.
The daily text allowance is used up, or the model is not connected. The allowance resets at 00:00 UTC.
No. These pages cover only what exists: the tool list, text generation and the MCP route.