rtrvr.ai logo
rtrvr.ai
PricingBlogDashboard

Core Agent

Getting StartedWeb AgentSheets Workflows

Building Blocks

Recordings & GroundingTool CallingKnowledge Base (RAG)

Platform Access

API OverviewAgent APIScrape APIBrowser as API/MCP

Automation

ShortcutsTriggers & WebhooksSchedules

Account & Security

Cookie SyncPermissions & Privacy
DocsAPI Overview

API Overview

rtrvr.ai exposes three HTTP endpoints for different automation needs: full agent runs, raw page scraping, and browser-as-API for your logged-in Chrome. All share the same authentication and credit system.

Try PlaygroundGet API KeyInstall Extension

Three Endpoints

POST/agent

Agent API

Full planner + tools engine for end-to-end web automations.

POST/scrape

Scrape API

Accessibility tree as context for your own agent.

POST/mcp

Browser as API/MCP

Control your logged-in Chrome via HTTP or MCP.

Authentication

All endpoints use the same API key. Pass it via the Authorization header:

Header
Authorization: Bearer rtrvr_your_api_key

MCP OAuth Support

For /mcp, clients with OAuth can connect to mcp.rtrvr.ai directly for Google Sign-In authentication.

Security

Keep your key server-side. Never embed it in browser code or ship it to clients.

Unified Playground

API Playground

POST /agent

Full planner + tools engine for end-to-end web automations.Full docs →

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`)

Manage in Cloud →
curl -X POST "https://api.rtrvr.ai/agent" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": "",
  "urls": [
    "https://news.ycombinator.com/"
  ],
  "response": {
    "verbosity": "final"
  }
}'

When to Use What

Use CaseEndpointWhy
End-to-end web automation/agentFull planner + tools, can write to Sheets/Docs
Feed your own LLM/RAG pipeline/scrapeInfra-only credits, returns raw text + tree
Use logged-in sessions (Gmail, Salesforce)/mcpRuns in your Chrome via extension
Bulk data extraction/agentUse dataInputs + sheets_workflow
Quick page content check/scrapeCheapest option, predictable schema
MCP client integration (Claude, etc.)/mcpDirect MCP protocol support

/agent

  • • Model + infra credits
  • • Higher latency (LLM calls)
  • • Full automation capability
  • • Progress events are opt-in (`options.ui.emitEvents=true`)
  • • ≤1MB inline preview; larger payloads include refs (outputRef / resultRef / responseRef)

/scrape

  • • Infra-only credits
  • • Lower latency
  • • Raw data for your models
  • • Progress events are opt-in (`options.ui.emitEvents=true`)
  • • ≤1MB tab payload inline; oversized responses include metadata.responseRef

/mcp

  • • Your logged-in browser
  • • MCP + HTTP + OAuth
  • • Access authenticated sites
  • • `emitEvents` opt-in; large outputs follow same preview+ref contract

New: File & Image Inputs

All agent and MCP credit tools now support file and image inputs via publicly fetchable URLs:

file_urls

CSV, PDF, text files to use as input data for workflows

image_urls

JPG, PNG images for visual context and recognition

recording_id

Use a recorded workflow as context for replay

Example: Agent API with file inputs
{
  "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" }
}

Webhooks

Both /agent and /scrape support webhook notifications. Get HTTP callbacks when executions complete, fail, or require 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.

Webhook configuration example
// 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" }
    }
  ]
}
Agent webhook docs →Scrape webhook docs →Manage webhooks in Cloud

Ready to automate?

Join teams using rtrvr.ai to build playful, powerful web automation workflows.