02SUPPORT

Agent recovery

When an agent hits an error on your API, it usually gives up and you never hear about it. Restless catches the failed call and tells the agent how to fix its request and retry.

$ npx restless init
  • Relevant docs are dropped right into the error response, so agents don’t have to hunt for how to move forward.

  • Each error includes a tracked link the agent can follow for more detail, so you can see where agents get stuck.

  • Agents can ask follow-up questions about a specific log with npx api debug.

INSIGHTS

Help agentsmove forward

When a request fails, an agent won’t go read
your docs, and even if it did, most docs don’t
explain how to fix a specific error and keep going.

Restless writes the fix into the error itself, so
the agent can correct the request and carry on.

A failed POST to /v1/charges answers 401 unauthorized because the currency is missing, and Restless writes a debug block into that response carrying how to recover, a link to the log, and a CLI command to debug the call.

FULL STACK

Do the right thingwhen things go wrong

Each failure becomes something an agent can act on, and something you can track.

Docs written into every error

When a call fails, Restless pulls the relevant fix from your docs and writes it straight into the response, so the agent has what it needs to recover, right where it hit the wall.

POST/v1/charges

{

"error": "unauthorized",

"message": "currency is required",

"debug": {

"recovery": "Mint a new token with POST /v1/tokens, then retry with the Authorization: Bearer header. Docs: https://docs.acme.com/p/jk23kza/create-token.md",

"log": "https://acme.com/logs/9f18a0e2-4c7b-4e1a-b93f-2c5d8e0a4f61",

"cli": "npx api debug 9f18a0e2-4c7b-4e1a-b93f-2c5d8e0a4f61"

}

}

See where agents stall

Every recovery is tracked, so you can see which errors agents keep hitting and where they give up.

Unblock agents without touching your API

Add or edit recovery guidance in the dashboard. Your API code never changes, and agents get unblocked on the next matching error.

Grouped by fingerprint

Identical failures roll up into one group, so you fix the cause once instead of case by case.

Debug from your terminal

Pull any request into your terminal with npx api debug and ask what went wrong. Answers come from the real log, not a guess.

A terminal session: npx api debug is run against a request id, the question is “Why did this 401?”, and the answer comes back — the token expired 4h ago, so mint a new one with POST /v1/tokens and retry.

No added latency

Recovery is looked up in-process on every error, with no network call in the hot path, so it never slows your response.

Related features

API Feedback

Solicit feedback from developers and agents, so you know what to fix next.

Learn more

MCP Server

Give agents native access to your API, so they can act, not just read.

Learn more

Logs

Every call recorded in full, with the patterns behind your errors surfaced.

Learn more

GET STARTED

Setup is a breeze

Restless is tightly integrated with your API, so we install a small SDK. Don't worry, we walk you through every step of the way.

Nothing is uploaded without your permission.

$ npx restless init

A terminal animation shows the Restless API setup from introduction through account login.