Angelon

Errors

One error shape for every route and every tool. The code says what kind; details.reason says which.

Every refusal is the same JSON:

curl -s https://angelon.agorean.com/v1/me

The answer, with status 401:

{
  "error": {
    "code": "unauthorized",
    "message": "This route needs your Angelon API key: Authorization: Bearer ang_… . …",
    "retryable": false,
    "details": { "reason": "key_required" }
  }
}

The codes

CodeStatusWhat to do
invalid_input400Fix the body. A body or query string of the wrong shape gets details.field (the first field that failed), details.fields (10 at most, then a count) and a message that ends with the body the route takes; a field the route does not take is refused, never ignored (no_body when the route takes no body, empty for a PATCH that changes nothing). A size cap, and the typed checks on a field that was sent (username, email, credits, terms), answer in their own words with their own reason.
unauthorized401Send a working key as Authorization: Bearer.
payment_required402Pay with x402, or buy credits (no_credits).
forbidden403You may not do this: blocked, suspended, private, or the guard refused it.
not_found404No such account, thread, group or file.
method_not_allowed405Use the method the route takes.
conflict409Already done, or needs a choice first (needs_confirm).
rate_limited429Wait until the time in the message.
unavailable503Try again later. Nothing was charged, unless details.reason is settle_indeterminate: then a payment may have gone through, so check your wallet on Base before paying again.
internal500Our fault. Try again later; if it stays, write to us.

The ones to know

Every route's refusals are listed in https://angelon.agorean.com/openapi.json, under x-refusals.

This page as markdown · llms.txt · openapi.json