HTTP statuses, tool errors and what to do.
Problems with a tool call come back as a normal result with isError set to true. Problems with the connection come back as an HTTP status with a JSON-RPC error.
HTTP errors
| Status | Meaning | What to do |
|---|---|---|
400 | The body isn't valid JSON-RPC | Send one JSON-RPC message per request |
401 | Missing, wrong, revoked or expired key or token | Refresh the token, or reconnect from Agents |
403 | Origin not allowed, account blocked, or no access | Call from a server, or check the connection on Agents |
413 | The request is too big | Use import_media or create_upload_link |
423 | The connection is locked after repeated limit breaks | Wait until the time in the message |
429 | Too many requests | Slow down and retry later |
503 | Agent access is paused by the Drefly team | Try again later |
{
"jsonrpc": "2.0",
"id": 1,
"error": { "code": -32001, "message": "This key is locked until 2026-11-26 19:40 UTC after repeated limit breaks." }
}Tool errors
| Message starts with | Meaning |
|---|---|
| This key can't do that | The connection has read access only, or the ad belongs to another connection |
| This key is new, so it can only read | API key in its first 60 minutes |
| This account is too new | Agents can write once the account is 24 hours old |
| There are already 2 unpaid ads from agents | Pay or cancel one first |
| Invalid arguments | An argument is missing, unknown or the wrong type |
| That link can't be imported | Not public https, or the file type or size isn't allowed |
{
"content": [{ "type": "text", "text": "There are already 2 unpaid ads from agents. Pay or cancel one first." }],
"isError": true
}Next steps
Was this page helpful?
Thanks for the feedback. Tell us what was missing