POST /agentAgent API
Describe the outcome. rtrvr plans the route, works across pages, and returns the finished result.
RUN
Plan and complete a browser job, then return the finished result.
Return page text and structure for your own models and pipelines.
Use the browser already signed in on your device.
Pick the right depth
POST /agentDescribe the outcome. rtrvr plans the route, works across pages, and returns the finished result.
POST /scrapeReturn clean page text, structure, and links for your own search, RAG, or enrichment pipeline.
POST /mcpLet a backend or MCP client use the Chrome browser already signed in on your device.
One key
Authorization header.Authorization: Bearer rtrvr_your_api_keyTry the contract
/agentShape a real request, inspect the contract, then send it when you are ready.
Get your API key from rtrvr.ai/cloud
URL to a CSV, JSON, or Excel file for row-by-row processing
Paste CSV/JSON data directly
Publicly accessible file URLs (PDF, CSV, text)
Publicly accessible image URLs (JPG, PNG)
Built-in tools: sheets_workflow, google_sheets_access, google_docs_access, google_slides_access, pdf_generator
Responses larger than this are snapshotted to storage
Stable ID for grouping phases. Omit to start new.
Use a recorded workflow as context
Get a live browser view URL in the response
Opt-in progress events (`options.ui.emitEvents=true`)
Decision guide
| Use Case | Endpoint | Why |
|---|---|---|
| End-to-end web automation | /agent | Full planner + tools, can write to Sheets/Docs |
| Feed your own LLM/RAG pipeline | /scrape | Infra-only credits, returns raw text + tree |
| Use logged-in sessions (Gmail, Salesforce) | /mcp | Runs in your Chrome via extension |
| Bulk data extraction | /agent | Use dataInputs + sheets_workflow |
| Quick page content check | /scrape | Cheapest option, predictable schema |
| MCP client integration (Claude, etc.) | /mcp | Direct MCP protocol support |
protocol.name="rtrvr.agent", run, inputRequest, and history for A2W/A2A-style continuationoutputRef / resultRef / responseRef)metadata.responseRefMore context
file_urlsCSV, PDF, text files to use as input data for workflows
image_urlsJPG, PNG images for visual context and recognition
recording_idUse a recorded workflow as context for replay
{
"input": "Upload this CSV and submit the form",
"urls": ["https://example.com/upload"],
"file_urls": ["https://example.com/data.csv"],
"image_urls": ["https://example.com/screenshot.png"],
"recording_id": "rec_abc123",
"response": { "verbosity": "final" }
}Hand off the result
/agent or /scrape call your system when a run completes, fails, or needs input.Real-time delivery
Webhooks fire asynchronously via Cloud Tasks with best-effort delivery and automatic retries.
HMAC signing
Provide a secret to receive X-Rtrvr-Signature headers for secure payload verification.
Auth support
Configure Bearer token or Basic auth for your webhook endpoints.
// Add webhooks to any /agent or /scrape request
{
"input": "Extract product data from the page",
"urls": ["https://example.com/products"],
"webhooks": [
{
"url": "https://your-server.com/webhook",
"events": ["rtrvr.execution.succeeded", "rtrvr.execution.failed"],
"secret": "whsec_your_signing_secret",
"auth": { "type": "bearer", "token": "your-token" },
"headers": { "X-Custom-Header": "my-value" }
}
]
}YOUR NEXT RUN