Home/Docs/CrawlGenie HTTP API

CrawlGenie HTTP API

Every endpoint with request and response shapes.

Base URL: https://crawlgenie.com. Auth: Authorization: Bearer <key> (or x-api-key, or ?token= for WebSocket/SSE/images). JSON in, JSON out. Errors: { "error": "<code>", "message": "..." } with 400 validation, 401 unauthorized, 403 navigation_blocked, 404 not_found, 409 session_not_running | profile_locked, 429 capacity, 422 page_crashed, 422 file_unreadable and 422 not_a_page (the page broke the browser, the file is damaged or not what it claims to be, or a list or field run was given an address that sends a file to download), 502 site_unreachable (DNS, refused, reset or TLS failure at the target; the message names the network error), 504 site_timeout (the target sent nothing within 30 s).

Sessions#

POST /v1/sessions → 201 SessionInfo#

{
  "tier": "shared",                 // "shared" | "isolated"
  "url": "https://example.com",     // optional start URL
  "profile": "acme-user",           // resume saved cookies/localStorage
  "persistProfile": true,           // save back on close
  "profileLock": "exclusive",       // "exclusive" | "shared"
  "viewport": { "width": 1280, "height": 800 },
  "locale": "en-US", "timezoneId": "Europe/Berlin", "userAgent": "...",
  "proxy": { "server": "http://proxy:8080", "username": "u", "password": "p" },
  "policy": {
    "allowDomains": ["*.example.com"], "blockDomains": [],
    "blockResources": ["image", "media", "font"], "blockTrackers": true,
    "allowPrivateNetwork": false,
    "maxDurationSec": 900, "idleTimeoutSec": 300, "maxPages": 10, "maxActions": 500, "maxBytes": 52428800,
    "approvals": { "mode": "destructive", "patterns": ["wire transfer"], "timeoutSec": 300 },
    "record": true
  },
  "metadata": { "task": "invoice-sync-42" }
}

SessionInfo includes connect.cdpUrl (isolated only), connect.liveUrl, connect.eventsUrl, usage (activeMs, bytesIn, requests, requestsBlocked, actions), currentUrl, pendingApprovals.

  • GET /v1/sessions?status=running|all&limit=50
  • GET /v1/sessions/:id — works for closed sessions too
  • DELETE /v1/sessions/:id → final SessionInfo with usage

Observe#

  • GET /v1/sessions/:id/snapshot?mode=interactive|full&maxChars=12000 → { url, title, tree, truncated, chars, tabs[] }. tree is the accessibility tree with [ref=eN].
  • GET /v1/sessions/:id/screenshot?type=jpeg|png&quality=70&fullPage=false → image
  • GET /v1/sessions/:id/text?maxChars=50000&format=text|markdown → reader-mode text, or Markdown with headings, lists, links and tables
  • GET /v1/sessions/:id/extract?selector=table.prices&as=table|list|links|attrs|text|html&attrs=href,data-id&limit=50 → deterministic structured extraction (table returns { headers, rows } with rows keyed by header). No model involved.
  • GET /v1/sessions/:id/links → { links: [{text, href}] }
  • GET /v1/sessions/:id/pdf → PDF

Act#

POST /v1/sessions/:id/act#

{
  "actions": [
    { "type": "click", "ref": "e12" },
    { "type": "fill", "ref": "e7", "text": "hello" },
    { "type": "press", "key": "Enter" },
    { "type": "wait", "text": "Order placed" }
  ],
  "snapshot": true,
  "snapshotOptions": { "mode": "interactive", "maxChars": 12000 }
}

Response: { results: [{ action, ok, error?, durationMs, approvalId?, value? }], snapshot? }. The batch stops at the first failed action. Action types: goto back forward reload click dblclick hover fill type press select check scroll upload wait assert evaluate dialog tab.

assert { text?, notText?, selector?, url?, title?, timeoutMs=5000 } is a deterministic check that fails the batch with assertion failed: …; put one at the end of a routine and the routine becomes a monitor.

The whole API is also described by GET /openapi.json (OpenAPI 3.1, generated from the validation schemas).

  • POST /v1/sessions/:id/navigate { url, waitUntil?, snapshot? } — shorthand for a goto action.

Session utilities#

  • GET /v1/sessions/:id/downloads → files the page downloaded (name, url, bytes, href); GET …/downloads/:index streams one. Downloads are also recorded as download events.
  • GET /v1/sessions/:id/cookies, PUT …/cookies { cookies: [...] } (Playwright cookie shape; url or domain+path), DELETE …/cookies.
  • POST /v1/sessions/:id/extend { seconds } → pushes the max-duration deadline (SessionInfo.expiresAt) out, up to 6 hours in total.
  • GET /v1/sessions/:id/network?limit=100&type=document → last requests with method, url, type, status, bytes, timing, failure reason (in-memory ring buffer, 300 entries).

Activity log#

  • GET /v1/activity?limit=100&offset=0&from=<ms>&to=<ms>&product=browser|search|read|agents|monitor|memory|compress|other&feature=<id>&client=<app>&status=ok|failed&q=<text>&summary=1 (older before=<id>, channel=, kind= and failed=1 still work) → { rows: [{ id, at, kind, subject, product, channel, client, via, ref, target, tokensIn, tokensOut, durationMs, ok, note }], today: { calls, failed, tokensSaved }, totals: { calls, failed, tokensSaved, avgMs }, breakdown?: { products: [{ product, calls, failed, tokensSaved }], features: [{ feature, product, label, calls }], apps: [{ app, calls }] }, next }. totals counts every row matching the filters (for page numbers); breakdown (with summary=1) counts per product, per feature (features: [{ feature, product, label, calls }], every feature listed, e.g. read.compress, agents.ready, monitor.visibility, memory.work) and per app over the date range only. product=read includes Compress calls (they count as reads); feature=read.compress shows only them. target is what the call acted on, { type: agent|watch|extractor|session|routine|crawl|collection, label, id, name, href, deleted }, resolved from ref; via is the API key name (key <name>) or the member who called from the dashboard. A call that answered 200 but failed (an agent run whose step failed, a tool that answered with an error) has ok: false and the reason in note. One row per working call: every POST/PUT/DELETE on /v1 (kind is the route, e.g. POST /v1/scrape), every MCP tool call (tool web_answer), every watch run (watch pricing_page, scheduled runs included). subject is what the call was about (the URL, question, query, package, store or id), trimmed to 200 characters with any query string removed; client is the connector or the x-crawlgenie-client header; the tokens are the call's receipt. GETs are polling and are not logged; reading the log is not logged. The dashboard's Activity page shows the same rows with filters and paging. Kept 30 days, at most 50,000 rows per workspace.

Read-only sessions#

  • policy.readOnly: true on POST /v1/sessions (and on the session of a goal-agent run, a batch or a watch), or read_only: true on the MCP tool browser_create_session. The session browses and reads: navigation, scrolling, hovering, tabs, typing into search boxes, pressing Enter in one. Refused on the server, before any approval and with the reason in the action result (error: "read_only: …"): clicks whose target or page looks like paying, ordering, adding to cart, sending, submitting, saving, deleting, confirming, subscribing, posting, commenting, sharing, following, registering or changing an account; pressing Enter outside a search box; file uploads; dialogs; scripts (evaluate); typing into password, one-time-code or payment fields. The prompt cannot lift it: it is policy, not instruction.

Approvals (human in the loop)#

When policy.approvals.mode is destructive or all, matching actions block until resolved.

  • GET /v1/approvals — all pending, across sessions
  • GET /v1/alert-channels — the workspace's alert channels (allowed says whether the plan includes them; addresses are shown masked). POST /v1/alert-channels {url, events} adds one (events: any of needs_you, watch, usage; https only; up to 5; Pro and up, else 402 plan_feature), PATCH /v1/alert-channels/:id {events}, POST /v1/alert-channels/:id/test sends a test message and returns {ok, status}, DELETE /v1/alert-channels/:id. Slack, Microsoft Teams (Workflows), Discord and Google Chat get a message in their own format; any other address gets the JSON event plus text.
  • GET /v1/approvals/history?limit=50 — approvals already decided, newest first: status (approved, denied, timed_out), by, createdAt, resolvedAt, action, target, url, sessionId, and autopilot { agentId, approvedOnceBy } when Autopilot approved it. Kept as long as the session's history. In a /act result, an action that waited carries approval: { target, by, waitedMs }.
  • GET /v1/sessions/:id/approvals
  • POST /v1/sessions/:id/approvals/:approvalId { "approved": true, "by": "alice" }

The blocked act call then continues (approved) or returns error: "approval_denied" / "approval_timeout" for that action.

Recorder, replay, rewind#

  • GET /v1/sessions/:id/events?after=0&limit=500 → { events: [{ seq, ts, kind, data, screenshotUrl?, hasStorage }] } kinds: lifecycle navigation action console error policy approval
  • GET /v1/sessions/:id/events/stream — Server-Sent Events, replays history then streams live
  • GET /v1/sessions/:id/events/:seq/screenshot → JPEG
  • POST /v1/sessions/:id/fork { "seq": 12, "tier"?: "shared" } → 201 new SessionInfo seeded with the cookies/localStorage recorded at that step and navigated to that step's URL

Profiles#

  • POST /v1/sessions/:id/profile { "name": "acme-user" } — save cookies/localStorage now
  • GET /v1/profiles, DELETE /v1/profiles/:name
  • Create a session with profile to resume; profileLock: "exclusive" (default) rejects a second concurrent holder with 409 profile_locked.

Routines (teach once, replay with self-healing)#

  • POST /v1/routines → 201 ``jsonc { "name": "acme-login", "sessionId": "…", "fromSeq": 1, "toSeq": 40, "params": { "email": "a@b.co", "password": "hunter2" }, "description": "Log in to Acme" } ` Successful actions in the range become steps; literal params values in typed text/URLs become {{email}}-style placeholders; sensitive names (pass|secret|token|key|otp|pin|cvv|ssn|card`) are never stored as defaults.
  • GET /v1/routines, GET /v1/routines/:name, PUT /v1/routines/:name { description?, params?, steps? }, DELETE /v1/routines/:name
  • POST /v1/routines/:name/run ``jsonc { "sessionId": "…", // run on an existing session, or "session": { "url": "https://acme.com/login", "policy": {…} }, // create one "params": { "email": "x@y.z", "password": "…" }, "closeAfter": true } ` → { routine, sessionId, ok, steps: [{ index, action, ok, error?, healed }], durationMs, snapshot? }. healed: true` means the element was re-found by role/name rather than by the recorded ref.

Live view and CDP#

  • WS /v1/sessions/:id/live — JSON frames {type:'frame', data:<base64 jpeg>, width, height, url}; send {type:'mouse'|'key'|'wheel'|'quality', …} to control. The dashboard page /live/:id is a client.
  • WS /v1/sessions/:id/cdp — raw Chrome DevTools Protocol (isolated tier). Use chromium.connectOverCDP(session.connect.cdpUrl + '?token=KEY') or Puppeteer browserWSEndpoint.
  • GET /v1/sessions/:id/cdp/json/version — for clients that take a browserURL.

Proxies (Pro plan)#

Per session: "proxy": { "server": "http://host:port", "username", "password" } to bring your own provider (residential proxies help on sites that block datacenter addresses). SessionInfo.proxy shows the server used. Managed proxy pools are not part of the hosted plans yet; write to hello@crawlgenie.com if you need one.

Signing in (saved logins) and login requests#

  • Every page an agent or a read opens is checked for a sign-in form. With a saved login for the site (Vault → Add login, or secrets named <name>_user / <name>_password / <name>_2fa locked to the site), CrawlGenie signs in by itself: username (and Next on two-step forms), password, the current 6-digit code, submit. Values are typed on the server only; recordings keep {{login:…}} placeholders. Snapshots carry login: { site, status, hint } (status signed_in, needed, failed, several, other_site, needs_code); /v1/scrape returns login when it met one. Turn it off per session with policy.autoSignIn: false. At most one automatic attempt per site every 10 minutes.
  • POST /v1/sessions/:id/sign-in { waitSec? } signs in on the current page now; waitSec (≤ 300) waits for the user to add a missing login. MCP / tools: browser_sign_in { wait_sec? }.
  • A sign-in page with no saved login raises a request: GET /v1/login-requests (open ones, closed as soon as a login for the site is saved), DELETE /v1/login-requests/:site dismisses one. One e-mail and one alert-channel message per site per day. Only real sign-in pages count (a sign-in address, a code prompt, or a short page with a password box); a login box in a header does not.

Describe what you need#

  • POST /v1/suggest { text, limit? } → { parsed: { urls, domains, cron, schedule, watch, question, topic }, suggestions: [{ id, kind: 'agent' | 'tool', name, tagline, input, missing: [{ key, label }], cron, why, action: { method, path, body } }] }.
  • Plain words in, up to 5 agents or tools out (default 3), ranked by BM25 over the catalogue and the core tools plus rules for what the text holds: a web address, a domain, a schedule ("every day", "every Monday", "every 6 hours"), "tell me when" / "alert me", a question, a repository, a ticker, dates, a place, "below 50".
  • action is the call to make: POST /v1/watches when a schedule was said or the request is a watch, POST /v1/extractors/{id}/run for a one-off agent, POST /v1/tools/{name} for a tool. Fill missing first.
  • The same box is on the dashboard (Overview, Search & Read, and "Describe: …" in Ctrl+K). No model.

Learn each site once (site memory and data feeds)#

  • Site memory: when pages in a part of a site (host + first path part, such as example.com/app) needed a real browser on two reads in a row, the next reads go straight to the browser instead of first trying the fast reader; the fast reader is tried again after a week. Host names and counts only, kept 90 days after last use. Replies say "straight to the browser (this site needed one last time)".
  • Data feeds: during a one-shot browser read, the JSON the page loads from its own site is noted (GET, no login headers, no token- or key-like parameters, not when the read signed in). A feed is kept only when the page shows its records and it answers a plain request too. Stored per workspace for 30 days: address, record count, field names; never the data.
  • web_answer lists them ("Data feeds this page loads …"); GET /v1/sites/feeds?url= returns them. Reading a JSON address with web_answer returns the records as a compact table (the receipt counts the raw JSON).

Answer check (numbers and quotes against the source)#

  • POST /v1/answer/check { answer, urls } (1–10 URLs) and the MCP tool check_answer → { claims: [{ kind, text, status, source?, closest? }], numbers: { total, supported }, quotes: { total, supported }, sources, text }.
  • Every number in the answer (with its scale, unit or currency: "$4.2 billion", "45%", "62B", "540-billion") and every quoted phrase (3+ words) is looked for in the sources. Status: supported (in a sentence about the same thing), rounded (the source's value rounds to it: 4,213 million → 4.2 billion), found_elsewhere (the value is there, in an unrelated sentence), paraphrased (a quote that is not word for word), not_found (with closest: what the related source sentence says).
  • Sources: the copy this workspace read in the last day (web_answer, /v1/scrape, outlines; no new request, no quota), otherwise one metered read each, kept for the next check. A source that cannot be read is listed; its claims count as not found.
  • No model. English number words and scales; a percentage only ever matches a percentage.

Completeness check#

Every read says when it may be missing part of the page, so an agent does not answer from half an article. No option, no model.

  • /v1/scrape (markdown, text) and /v1/read/outline add completeness: { complete, issues: [{ kind, detail }], fixed: [{ kind, count }] } when something was found or fixed (no field otherwise). Issue kinds: paywall, cookie_wall, read_more, truncated (our own read limit). Fix kinds: read_more_revealed, read_more_clicked, cookie_rejected.
  • Paywall: the site's wording at the start or end of the text ("Subscribe to continue reading", "Subscribe to unlock this article"), or its isAccessibleForFree: false page data when the paid part it names is missing from the page (or, when it names none, when the read is under 2,000 characters). Many sites mark articles "not free" and still send the whole text; those reads are whole. Paywalls are reported, never bypassed.
  • "Read more": text hidden next to a "Read more" button is read; when the text loads only on click, the read uses a real browser, clicks the button (buttons and in-page toggles only, never links to other pages), and reports "opened" only when new text arrived.
  • Cookie screen: when a consent screen hides the page, CrawlGenie answers it with "Reject all" / "Necessary only" if the site offers one, and never clicks "Accept"; if only "Accept" is offered, the read reports cookie_wall.
  • Tool replies end with one Completeness: … line; web_research and read_many mark each incomplete source with "⚠ Incomplete: …".

Prompt-injection shield#

On for every read (/v1/scrape markdown and text, /v1/read/outline, research, crawls, agents, the MCP read tools, and search snippets in tool replies); no option, no cost, no model.

  • Hidden text that addresses the AI is left out by the reader: display:none, visibility:hidden, opacity:0, font size under 2 px, clipped, off-screen, or text the same colour as its background. Hidden text that does not address the AI is read as before.
  • Invisible characters are removed: Unicode tag characters (U+E0000–U+E007F; what they spell is reported) and zero-width characters inside words. Joiners that scripts and emoji need are kept.
  • Visible passages that address the AI are marked, not removed: [⚠ page text addressed to AI, not from the user] goes before the sentence. Marking is idempotent.
  • /v1/scrape adds shield: { marked, hiddenRemoved, invisibleRemoved, items: [{ kind, excerpt }] } when it found something (no field otherwise). Kinds: override, role, addressed, markup, secrecy, exfiltration, prompt_leak, steering, hidden, invisible.
  • Tool replies end with one Shield: … line when something was found. browser_snapshot lists the lines that address the AI under the tree (refs unchanged).
  • English patterns only; reworded, non-English, spelled-out and encoded attempts are not caught (measured; see the FAQ).

Docs for coding agents#

  • POST /v1/docs/answer { library | url, question, version?, ecosystem?, max_tokens? } → the sections of a library's live official docs that answer a coding question, with their code examples whole: { library, version, ecosystem, docs, via, sections: [{ url, path, tokens }], text, tokens, tokensFull, savedPct, notes }. library is an npm or PyPI package name (zod, @tanstack/react-query, fastapi); url is a docs site when you have one; ecosystem picks npm or PyPI when a name exists in both (otherwise the busier one wins); version is the one you use, and a note says when the live docs are newer. Default budget 2,000 tokens.
  • How it finds the docs: the package registry's homepage (or PyPI's Documentation link), the web when the registry only knows the repository; then the site's llms-full.txt or llms.txt, a search of the docs site, or its sitemap. No index of our own and no model: sections are ranked by the question's words, code names split (discriminatedUnion matches "discriminated union"), older-version copies and blog posts left out.
  • MCP / tools: docs_answer { library | url, question, version?, ecosystem?, max_tokens? (default 700) }. Token savings: the pages the sections came from against what was returned. Counted as one read, plus one read per further page opened and one search when the docs site is searched.

Outline-first reading#

  • POST /v1/read/outline { url } → the page as sections: { sections: [{ id, level, heading, tokens, summary }], tokensFull, tokens, text, whole }. A page or document is read once (fast path, browser only if needed); its copy is kept for the workspace. Short pages (≤ 1,200 tokens) come back whole (whole: true). Long sections without subheadings come in parts (s5.1, s5.2).
  • POST /v1/read/sections { url, ids } → the text of those sections from the copy the outline came from (no new request); s5 includes its parts. Unknown ids are listed in missing.
  • Agent drafts (not saved, never run): GET /v1/agents/drafts, GET|PUT|DELETE /v1/agents/drafts/{id} with { agentId?, text?, def? }; an empty draft is removed; drafts go with their agent and after 30 days.
  • Agent definitions accept login: the name of a saved login used wherever a step meets a sign-in page on the sites it reads (a read step's URLs, an extract step's inputs, a goal step's address and rows). A sign-in wall in a run reports status: "needs_login" and, when the workspace has a login saved for many sites, useLogin: NAME.
  • AI visibility brands accept shareIndex (default true): generic answers join the shared category index and the report reads it; the report's summary.shared and each result's shared: true say which answers came from it (negative answerId).
  • GET /v1/profile (your products, whether reviewed, the text drafts and recall use), PUT /v1/profile { products } (your version; marks it reviewed), POST /v1/profile/learn { website | product } (one page read, 0 model tokens), POST /v1/profile/review, DELETE /v1/profile/products/{name}. POST /v1/agents/draft answers with about: { product, filled, line } when the words name a known product.
  • GET /v1/work?project=&query=&days=&index=1&ids=: index=1 gives one short line per note with its id (cheaper), ids=a,b the full text of those notes; work_memory takes index: true and ids: [...] the same way. work_memory { action: "delete", id | ids } deletes notes (by the full id or the short id an index shows, when it fits one note) and saved items, and knowledge collections by name or id, when the person asks. Also and POST /v1/work { project?, note, kind? }, MCP / tools work_memory { action: "recall" | "save" | "product", project?, note?, query?, website?, facts? }: work memory shared by every app connected to the workspace. Notes are documents of the Memory collection "Work notes" (counted against the plan's memory limit, deletable there), each filed as decision | next | preference | issue | finding | source from its words (or the kind given); recall groups them by kind, decisions and next steps first, and adds the sites read, searches and agents run in the last 14 days from the activity log (also as recent in JSON). Before a note is saved, secrets (API keys, tokens, passwords, private keys) are always replaced by [secret removed], and personal data, payment data, ID numbers and the workspace's blocked words by markers unless turned off; the reply says what was not kept (hidden), and a note left with nothing is refused (400 nothing_to_save). GET /v1/work/overview?project= (notes, projects, apps, the recall text with its tokens, the privacy rules), PATCH /v1/work/notes/{id} { project?, kind? } (re-file), DELETE /v1/work/notes/{id}, GET/PUT /v1/work/privacy { personal?, payment?, ids?, blocked? }. No model, never the chat itself. Changes on 2026-10-29: a recall with a query lists only notes about it (most of its words, every capitalised name) and says No notes match "…" otherwise; a project or query recall leaves out the activity lines and Your products (fewer tokens); PATCH /v1/work/notes/{id} also takes note (new words, guarded like a save).
  • From the web (shown as "Found automatically" before 2026-10-30): every web_answer with a question and every web_research keeps one line (the question, the first sentences of the answer, the source, the app) for 30 days, at most 2,000 per workspace; a recall brings back the lines about its query (Found earlier about …) or the newest four, also as recent.findings. GET /v1/work/overview lists them as findings, DELETE /v1/work/findings/{id} forgets one, and PUT /v1/work/privacy { keepFindings: false } stops them.
  • Found by the end-to-end test of 2026-11-05 (round 5) (additive, no field renamed):
    • Found lines show as f<id> in a recall; work_memory { action: "delete", id: "f12" } forgets one (as DELETE /v1/work/findings/12 does). A line whose sentences about the question are all speculative ("expected", "rumoured") is not kept, and a date, amount or count question needs a number in the answer.
    • web_research { format: "json" } carries crawlgenie.searches (one, or two when a second engine was asked) and crawlgenie.took_ms (searchMs, secondMs when asked, totalMs). A page too slow to answer in time is listed as not read.
    • web_research { fresh: true } searches again instead of answering from work memory. A memory answer is given only for the same kind of question (when, amount, count, who, exists, yes/no, what) and its token line names the line: from work memory (line f12), no new search … · fresh: true searches again.
    • A read of a pricing page with a monthly/yearly switch carries meta.billing ("Billing period: the prices shown are for paying yearly …; paying monthly: Plus $12 …"), and the text starts with it. pricing_page rows add billing (yearly or monthly, the period the page's switch is on) and monthly_price (from the page's own price data), and the summary says both periods.
    • A YouTube read starts with Video facts (from the YouTube page): title · channel · views · published · length and a Description: line, before the transcript.
    • shopify_app_search takes sort (relevance, the default, or newest: the store's category page sorted by newest) and category (a name, a slug or an apps.shopify.com/categories link; found from the top apps' own pages when empty).
    • auto_list rows carry rating and reviews when the items show a rating, and every extractor's links drop parameters that only say where an item was shown (utm_*, surface_*, srsltid, gclid, positions); watches compare links in that form, so a list that reorders reports no new rows (keys saved before are compared the same way).
    • browser_extract_text reads the whole page when it has several <article> elements (one <article> is still the main content), and snapshots keep names that contain ":" with their refs. web_research reads the project's own site first for version and price questions, and says when one source calls two versions the latest or is dated before the events it reports.
  • Saved work: work_memory { action: "keep", title, content | url, project?, type?, tags? } keeps a post, document, code, table, plan, prompt or link (type sorted from its words when not given: post | doc | code | table | plan | prompt | image | pdf | link | other), the exact text up to 100,000 characters, secrets removed; a link keeps the page's readable text (one read). The same title in the same project is a new version (versions, the one before as previous). work_memory { action: "find", query?, project?, type? } lists items with ids, { action: "open", id, max_tokens? } returns the text. REST: GET /v1/work/saved?q=&project=&type=, POST /v1/work/saved, GET /v1/work/saved/{id} (item, body, previous), GET /v1/work/saved/{id}/download (the text as a file, code with its extension), PATCH /v1/work/saved/{id} { title?, project?, tags?, type? }, DELETE /v1/work/saved/{id}. Each item is one memory document of the plan.
  • Agent names and numbers: every agent has nick (a short name, unique in the workspace) and number (from 101, never reused) and look { kind, source } in GET /v1/agents and GET /v1/agents/{id}. POST /v1/agents/{id}/rename { nick } changes the name without a new version ({id} may also be the number); 409 name_taken, 400 invalid_name. Every MCP agent tool finds an agent by its id, number (301, #301, agent 301), short name or full name; agent_create { agent, nick } renames.
  • Automatic memory: PUT /v1/work/privacy { notesAsYouGo: true } adds the memory rule (recall first, save decisions, preferences, issues and where work stopped, keep what is made) to the MCP server instructions and the Claude Code session context of that workspace; off by default. With it on, a crawlgenie_extract result of 10 or more rows is also kept as a table (named after the extractor and its main input; the same search merges into it by key) and the result carries one line saying so (table and table_note in format: "json"), within the plan's table limits.
  • GET /v1/stats/savings?days= now also returns byProduct: one entry per product (browser, search, read, agents, monitor, memory, compress) with calls and ms from the activity log (every call, saving or not) and read, raw, saved, usdSaved from the same measurements as the totals. Activity rows carry their product (from the tool name or the route); calls through /v1/tools/:name are logged as tool <name>.
  • POST /v1/image/text with the image itself as the body (content-type: image/png|jpeg|gif|webp, options ?describe=1&question=), or JSON { url | base64 | asset, describe?, question? }, and MCP / tools image_to_text { url | asset, describe?, question? }: the text in the image by OCR (no model) and, with describe, a short description from the workspace's own model (Settings → Your model; on your key). Returns { text, tokens, imageTokens, width, height, confidence, description?, report }; imageTokens is what the image costs a Claude model as an image (28-px patches, high-resolution tier). Counts one read. Measured: a 970×1296 error screenshot, 481 tokens of text against 1,645 as an image, 2.9 s.
  • POST /v1/check { url, widths? (default [375, 1280]), maxLinks? (default 25) } and MCP / tools check_page { url, widths?, max_links?, in_my_browser? }: the page at each width in a real browser with images, fonts and CSS, checked in code: sideways scroll and the elements causing it, text cut off, tap targets under 40 px (phone widths), text contrast (WCAG 4.5:1, 3:1 for large text), broken images, images without alt, h1/title/viewport, JavaScript errors, failed requests, same-site links answering 4xx/5xx. Returns { widths[{ width, pageWidth, issues, passed }], page, links, ms, text }; the text report is ~400 tokens for two widths. Counts one read per width. A private or local address (localhost, 10.x, 192.168.x, names that resolve to them) answers 400 private_address with browserCall: the same check as one line for the AI's own browser tool, await (await import('<base>/check.mjs')).run({ widths?, maxLinks?, json? }), served without a key at /check.mjs (any origin may import it); it loads the page into hidden same-origin frames of each width, sends nothing to CrawlGenie, and reports JavaScript errors as not collected (they are in the browser console). A site that refuses frames is checked at the window's own width.
  • MCP / tools: query_page { url, match? | regex? | json_path?, context?, max? } returns only the lines of a page that match a word or phrase or a regular expression (with context lines around each and the heading it sits under), or the values at a JSON path (items[*].name, $.data.total) for JSON pages and APIs. It answers from the kept copy when there is one (no new request, no read counted), otherwise it reads the page once.
  • MCP / tools: page_outline { url, fresh? } and read_sections { url, ids }. Token savings: the outline counts the whole page against the outline; each section read counts as what the model read. Every page web_answer, read_many, web_research and docs_answer read is kept as a copy: page_outline answers from a copy younger than 6 hours without a new request and without counting a read (fresh: true reads again), and read_sections serves sections from a copy up to a day old.

Secrets vault (credentials the model never sees)#

  • PUT /v1/secrets/:name { value, domains? } — store/update. domains (wildcards ok) restricts where it may be used.
  • GET /v1/secrets → { encrypted, secrets: [{ name, owner, domains, usedCount, … }] } — names only, never values.
  • DELETE /v1/secrets/:name. The dashboard's Vault page wraps all three (add, rotate, delete, copy placeholder).
  • One-time codes (2-factor): store the authenticator seed (the base32 string or otpauth:// URL you would scan) as a secret and write {{totp:name}}; the server types the current 6-digit code (RFC 6238, digits/period/algorithm from the URL honoured). The seed never leaves the server and the recording shows only the placeholder.
  • Use: the agent writes {{secret:name}} in a fill/type action (or browser_type over MCP). The server substitutes the real value at execution; results, the recorder, approvals and routines only ever contain the placeholder. Secrets are scoped to the API key that created them (owner) and to domains; a violation fails the action with secret_forbidden (403) and an unknown name with secret_not_found (404).
  • Saved logins: secrets named <name>_user (or _email), <name>_password and optionally <name>_2fa, locked to a site with domains, form a login (the dashboard's Add login creates them). An agent then writes {{login:username}}, {{login:password}} and {{login:code}} without knowing any names: the server picks the login whose domains match the current page. No login for the site → secret_not_found; several → secret_forbidden asking for {{secret:<name>_…}}. Secrets allowed on every site never count as a login. When a tool result shows a password field on a site with a saved login, it ends with a SAVED LOGIN for <site> line telling the agent which placeholders to use.
  • At rest: encrypted with AES-256-GCM. Values are never returned by the API after you save them.

Files (uploads into the page)#

  • POST /v1/sessions/:id/files?name=report.pdf with the raw bytes as application/octet-stream (≤ 64 MB) → 201 { id, name, bytes }. Then { "type": "upload", "ref": "e12", "files": [{ "id": "…" }] }. Inline { name, mimeType, base64 } still works for small files. GET /v1/sessions/:id/files lists them.

Team invites (no email service needed)#

  • POST /v1/invites { maxUses?=1, ttlDays?=7, role?=member } (dashboard cookie or org key) → { url, token, expiresAt }.
  • GET /auth/invite/:token (public) → { valid, org: { name }, role }; POST /auth/join { token, email?, password? } → the person creates an account (or, if already signed in, joins) and lands in that workspace; keys, sessions, routines and secrets are shared across members. GET /v1/members, DELETE /v1/members/:id (the last owner is protected), DELETE /v1/invites/:token. Dashboard: API keys & team.
  • Roles (2026-11-05). Owners: plan and billing (/v1/billing/change|cancel|resume|portal|invoices), API keys (POST/DELETE /v1/keys), invites, roles, removing people, and the workspace's model key (PUT/DELETE /v1/llm), proxy (PUT/DELETE /v1/proxy) and memory rules (PUT /v1/work/privacy). A member calling one gets 403 { error: "owner_only" } with who to ask. A key acts with the role of the person who made it (keys made before 2026-11-05 act as an owner); an OAuth connector's key belongs to the person who approved it.
  • GET /v1/members adds you: { role, id }; members get invites: []. GET /v1/billing for a member returns the plan and usage with ownerOnly: true and owners (no portal, checkout or subscription details).
  • PATCH /v1/members/:id { role: "owner" | "member" } (owners; a workspace keeps at least one owner). DELETE /v1/members/:id with your own id leaves the workspace (anyone but the last owner); removing a person also revokes the keys they made, and their dashboard sign-in stops working at once.
  • GET /auth/me adds role, workspaces: [{ id, name, role }] and, for members, owners. POST /auth/switch { org } moves the dashboard to another workspace of yours; sign-in lands in the one used last. POST /auth/join by someone already in that workspace only moves them there (already: true, no seat used).

Web search (no search API)#

GET /v1/search?q=…&max=10&content=false&contentMax=3&maxChars=4000 → { engine: duckduckgo|bing-fetch|brave|bing, hits: [{ position, title, url, snippet, markdown? }] }, performed by CrawlGenie (DuckDuckGo → Bing → a browser on Brave, Bing and DuckDuckGo, redirect links unwrapped; one engine is asked once per question, however it is reached). content=true opens the top contentMax hits and attaches their markdown — search and read in one round trip. Also an MCP/HTTP tool, browser_search, so agents can search then navigate.

A search takes at most 30 seconds. When every engine refused or failed in that time, the answer is 503 { error: "search_unavailable", message }: try again in a few minutes.

GET /v1/search-key → { configured, provider, name, keyHint, problem, providers }; PUT /v1/search-key { provider: brave|serper, key } (owners; the key is tried once first, 400 search_key_refused when it fails); DELETE /v1/search-key (owners). With a key, a search answers on that account first and engine reads your Brave key.

Filters (additive): includeDomains=reddit.com,news.ycombinator.com keeps only results from those sites (subdomains included), excludeDomains=pinterest.com leaves them out; the engines' own site: operators are used and the hits are filtered again, so an engine that ignores them never leaks other sites. country=de&language=de searches that country in that language. POST /v1/research takes the same as includeDomains/excludeDomains arrays and country/language; the connector tools web_research and browser_search take include_domains/exclude_domains.

Markdown first: page reads ask sites for text/markdown before HTML; a site that serves a markdown version to agents is read from it (smaller and cleaner), every other site from its HTML as before.

Your own agents (/v1/agents)#

An agent of your own is a short list of steps CrawlGenie already knows how to run, saved with a name, a schedule and a place to deliver. It runs hosted here, keeps what it saw between runs, reports only what is new, and shows the token savings of every run. No model is used unless you add a goal or decide step with your own key.

Steps (in order; step 1 must produce rows):

kindwhat it doesfields
extractrows from a ready-made agent (any extractor or a watch kind)agent, input
readpages or documents as rows, one per URL, optionally focused on a questionurls (≤20), question
goalthe goal agent with your model key; its result becomes rows ({{rows}} in the task inserts the rows so far)task, url, schema, maxSteps, login (the name of one saved login, used on url and on every site in the rows' links, www. included; a setup need until it is saved)
keepa plain-words filter on the rowswhere: new rows, price below 90, rating at least 4, rows mentioning berlin, "Sold out" absent (and / or)
decideyour model over the rows with a visible instruction and an optional result schema; the only step that spends model tokens, on your keyinstruction, schema, maxRows
deliverSlack, Teams, Discord, Google Chat, Zapier, n8n or your endpoint (webhook + url), the workspace alert channels (channels), e-mail (email), or memory (memory + collection)to, url, collection, onlyWhen (plain-words condition), skipEmpty
fromthe rows another of your agents produced on its last successful run, so agents chain (a research agent feeds a writing agent)agent (id or exact name), only: new (default) or all
recallworkspace memory as a source: with a plain question it returns the matching passages as rows; with {{column}} in the question it searches once per row and adds a recalled columnquestion, collection, limit (default 5)
writeyour model writes text from the rows: one draft for all rows (a brief, a digest) or one per row as a column; your key, Proinstruction, perRow, column (default draft), maxRows
callany HTTP API with a key from the Vault: {{column}} fills the URL, headers and body from the row, {{secret:NAME}} the key (a header named Authorization, X-Api-Key or similar must reference a secret, never contain the key); once per row (default) or once for all rows ({{rows}} in the body); fields of the JSON answer mapped back into columns; items names a list in the answer (tasks.0.result.0.items) whose entries become rows, so any API is a source (CSV and semicolon answers are read as rows too); key names the column that identifies a row, so rows seen on an earlier run are not new again; {{secret64:NAME}} puts the secret in base64 for Basic auth; pages (with perRow: false) reads every page of the list: `{ mode: "page""offset""cursor""next", param?, start?, size?, path?, max? } (page and offset count a query parameter up, cursor passes path from the answer back, next follows path or the Link header on the same host; stops at an empty page, a repeated cursor, max` pages (default 10, at most 50) or 5,000 rows; one read per page); metered as reads; Prourl, method, headers, body, perRow, map ({"employees": "organization.estimated_num_employees"}), items, key, pages, maxRows
reviewa person in the loop: the run stops with the rows; the reviewer approves (as is or edited), rejects, or the review expires; approved rows continue through the remaining steps as a new run; edits are kept and shown to later decide steps as examples; Proinstruction, onlyWhen (review only when it holds; otherwise the rows pass through), notify (channels, email, dashboard), timeoutHours (72)
appwrite the rows into a connected app: Google Sheets (append), Notion (create_pages), Airtable (create_records), HubSpot (create_objects); the connection is made once under Connect apps; for an app signed in with one click (app: "mcp:notion"), action is one of the tools its vendor lists (GET /v1/connections/{id}/actions) and config.args its arguments (text or {{column}}, filled per row; config.perRow: false calls it once with {{rows.lines}} / {{rows.json}}); at most 100 calls a run; Pro (one connection on Free)app, action, connection (name; optional when the workspace has one for that app), config (spreadsheetId + sheet, databaseId, baseId + table, objectType; args, perRow for signed-in apps), onlyWhen

Flow on any step after the first: rowsWhere (plain words, the keep step's grammar): only the matching rows go through the step, the others skip it and carry on (a step that sends or writes leaves the rows as they were; one that filters or adds columns keeps its result for the matching rows), so rowsWhere: "fit is high" on a Slack step and "fit is not high" on a Sheets step routes each row one way; refused on the first step and on review (400 bad_definition). retry (0–3): a failed step runs again 5, 20 and 60 s later from the rows it was given. onError: "continue": a step that still fails is noted (failed and went on: …, also in the run's alerts) and the rows carry on; "stop" (default) ends the run there.

Definition: { name, description?, steps[], schedule: { cron, timezone } | null, risk: "read_only" | "act_with_approval" | "act", expect?: { minRows?, maxRows?, columns?[], contains? }, inputs?, budget?, maxDurationSec?, goal? }. goal: { text, target?, counts: "found" | "new" | "delivered" | "approved" | "stage", stages?: ["found", "submitted", "live", "rejected"], stage?: "live", followUp?: { stage, afterDays } | null, mentions?: [] } and facts?: { "Product name": "…" }; with counts: "stage" the goal counts items at stage or further along stages (stages such as rejected, failed, needs login never count). Agents and runs carry madeVia / editedVia and via ("Claude Code", "Codex", "dashboard", "API"…; null on schedules). risk is read_only by default: browser steps cannot buy, post, delete, submit or upload; act_with_approval holds those actions for a person; act (Team) lets them through. expect is "what a good result looks like": it is checked after every run against what the agent read (the rows after the last extract, read, goal or decide step, before any keep filter), so an agent that keeps only new rows still passes on a day with nothing new; pass and checks are on every run and feed the scorecard.

Inputs, budget and time cap. inputs: [{ key, label, required, example }] declares what a trigger body can hand to step 1; the agent then has a hosted form at formUrl (/forms/agents/{id}/{token}, no key, the address is the secret, 60 runs an hour) where a person fills the fields and runs it. budget: { reads, browserMinutes, modelTokens } are per-day caps: when one is reached the agent answers 409 budget_reached, its summary reads "paused: daily budget reached", and it runs again the next day. maxDurationSec (default 600) caps a whole run; browser steps are closed when it passes. read steps take freshness: hour (default) reads the workspace's copy of the page from the last hour when there is one, day the last day, fresh always fetches; so ten agents reading the same page in a morning fetch it once.

Capabilities (GET /v1/agents/capabilities). What a model needs to plan an agent that validates the first time: every step kind with its fields and an example, the apps that can be connected and the workspace's connections, the ready-made extractors with their inputs, the plan's limits and gates. The connector tool agent_plan returns the same as text; agent_create then takes the planned definition directly. Validation errors name the step and what to change; 409 needs_connection names the app to connect and links to the Connections page.

Calls

  • POST /v1/agents (?run=true runs it once and returns the rows) → 201 agent; 400 bad_definition / bad_condition name the step; 402 when the plan is full or a step needs a paid feature.
  • POST /v1/agents/try — the same body, not saved: a real run with rows, per-step notes, checks and tokens; deliveries, app steps and review steps are skipped, so a trial runs before an app is connected (saving checks the connection).
  • Browser card in chats: browser tools over MCP (browser_navigate, browser_act, browser_sign_in) name the MCP Apps resource ui://crawlgenie/browser-card.html (ChatGPT: openai/outputTemplate), and their result carries structuredContent.crawlgenie_card, a signed address that ends after 10 minutes: the card reads the session's last steps, a still picture (taken only after a new step, at most every 4 seconds) and a view-only live stream. GET/PUT /v1/live-card/settings {mode: ask | always | off} sets what it shows for the workspace.
  • Tables (Tables): GET /v1/tables lists them; POST /v1/tables {name, rows | csv | fromAgent | fromHandle, key?, columns?} creates one (rows merge by the key column, a link by default); GET /v1/tables/:id?q=&where=&columns=&sort=&order=&limit=&offset=&show=all|new|changed returns rows (q is a question in plain words: "free plan under $20"); POST /v1/tables/:id/rows {rows | csv | fromAgent} merges rows and returns how many were added, changed and unchanged; PATCH renames, DELETE removes a table or one row (/rows/:key); GET /v1/tables/:id/export?format=csv|json|xlsx&sheets=<column>. Over MCP the table tool (loaded up front) does list, query, create (rows, a crawlgenie_extract handle or an agent's latest rows), add and delete. An agent's deliver step with to: "table" and table: "<name>" merges every run into that table. Plan limits: tables, tableRows, tableRowsTotal and tableColumns in pricing.json; rows over a limit are reported as not added. Spreadsheet basics: GET /v1/tables/:id?sort=<column>&order=asc|desc sorts; PATCH /v1/tables/:id/rows/:key {values} edits a row by hand (an empty value clears a cell; key columns are not changed; each change goes to the row history, source edited); POST /v1/tables/:id/columns/rename {from, to} renames a column in the table and every row (the key follows; 409 when the name is taken). Questions read <column> contains|is|is not <value> as that column, and a word that is a whole cell value matches that value, not text containing it. Over MCP, crawlgenie_extract { keep_table: false } runs a ready-made agent without keeping a table even with Automatic memory on, and agent_plan { app: "<connection name>" } lists a signed-in app's actions with every argument (required ones starred) and the vendor's read-only flag.
  • Field instructions, per-cell sources, import and columns (2026-11-03): a column is { name, type?, ask?, options?, group? } (ask is what to find, options the allowed values); POST /v1/tables { name, template: "account_intelligence" | like: "<table>", rules?: { text?, minSources?, recencyMonths? } } starts from a ready-made field set (GET /v1/tables/field-sets) or another table's fields; PUT /v1/tables/:id/fields { columns, rules } sets them. A cell written as { value, sources: [urls], confidence?: high|medium|low, note? } keeps its value in the row and the rest in row.evidence[column]; a row written as { <key>: …, fields: { <column>: { value, sources } } } is flattened. GET /v1/tables/:id returns evidence per row, fill (rows with a value, per column) and fieldSet { complete, rows }; GET /v1/tables/:id/gaps gives each row's { total, filled, empty, notFound, noSource, fewSources, offList }; POST /v1/tables/:id/check { key? } opens each cell's sources and marks it verified, weak or failed (evidence[column].check); GET …/export?format=csv|xlsx&sources=1 adds a "<column> sources" column. Import: POST /v1/tables/import/preview { csv | xlsx (base64), sheet?, table? } → { sheets, headers, total, sample, mapping, fit } (nothing stored), then POST /v1/tables/import { csv | xlsx, sheet?, table | name, mapping: { fileColumn: tableColumn | "" }, key? } → { table, merged, leftOut: { columns, rows } } (into a table, the key column must be mapped). Columns: POST /v1/tables/:id/columns { name, type?: text|number|money|bool|url|date|email, after?, before?, ask?, options?, group? }, PATCH /v1/tables/:id/columns/:name { type?, ask?, options?, group? }, DELETE /v1/tables/:id/columns/:name (not a key column); POST /v1/tables/:id/duplicate { name?, rows?: false }. LinkedIn, X, GitHub and website columns store full links whatever is written. Over MCP, table takes next (key?, columns?, with: { research: true }), fields and check, and create takes with: { template, like, rules, min_sources, recency_months }. Results of ready-made agents and of agents without a table step merge into a table named after the agent unless the workspace sets autoTables: false (PUT /v1/work/privacy) or the agent's definition has keepTable: false; linkedin_jobs and jobs_search take company, workday_jobs takes offset.
  • work_memory { action: "product", website } reads the site by code (the homepage and up to three feature pages, counted as reads), saves a first guess and returns it with a digest of the pages; with the workspace's own model key that model writes the facts instead. work_memory { action: "product", website, facts: { name, pitch, features, audiences, categories, competitors } } saves what the connected AI wrote (Settings → Your business shows "written by your AI"). Without website: the products known.
  • POST /v1/agents/blueprint — the same body, not saved and not run: { blueprint }, the workflow (trigger, then every step with what it uses and costs) as the agent page draws it. The editor's View workflow uses it before an agent is saved.
  • AI visibility (Team plan, gate aiVisibility, quota aiChecks, limits visBrands, visPrompts, visCompetitors): GET /v1/visibility (the brands with summary, engines and the model pass in progress or last finished, run { running, total, asked, checked, named, errors, stopped }; model { ready, engine | message } says before anyone presses it whether Run with your model can work), POST /v1/visibility/suggest { website } (one page read without a browser: name, pitch, categories, audiences, country from the page language, features from its headings, competitors from its own comparison pages), POST /v1/visibility/ideas { name, category, audience?, country?, competitors?, features? } (prompt ideas in five intents, category | buying | problem | comparison | brand, fitted to the kind of business; pick marks the starting set), POST /v1/visibility/brands { name, category, domain?, aliases?, audience?, country?, competitors?, features?, promptList?: [{ text, intent }], prompts? } (competitors as names or domains, capped by the plan; features are the reviewed core features the problem and feature questions come from; promptList tracks the chosen prompts, otherwise the starting set), PATCH/DELETE /v1/visibility/brands/{id} (a competitor or feature added later gets its own prompts within the limit), GET /v1/visibility/brands/{id}/ideas (ideas not tracked yet), GET /v1/visibility/brands/{id}/questions (questions real people asked on Reddit, Quora and Stack Exchange about the category, each with its source thread; two searches from the plan), GET/POST /v1/visibility/brands/{id}/prompts { texts? | items?: [{ text, intent }] | suggest? }, DELETE /v1/visibility/prompts/{id}, POST /v1/visibility/brands/{id}/run { limit?, prompts? } (202: the workspace's own model with web search answers the prompts it has not answered in the last 20 hours, or the prompts given even if answered today, in the background: OpenAI Responses with web_search, Anthropic web_search, Gemini grounding with Google Search or Perplexity Sonar; one AI answer check per answer that came back, on the workspace's key; daily: true on the brand runs it once a day), POST /v1/visibility/answers { prompt, answer, sources?, engine?, country? } (one AI answer check; engine: "Google AI Mode (pasted)" labels a pasted answer; scored by code: named or not, position among the brands, tone of the sentence, share of mentions, cited domains), GET /v1/visibility/answers/{id} (one answer in full with its platform), POST /v1/visibility/brands/{id}/share (a read-only report link, { url }; a new call makes a new link) and DELETE (stops sharing; the brand list shows shareUrl while shared), GET /r/visibility/{id}/{token}?days= (the shared page: no sign-in, noindex, the same numbers as the dashboard), GET /v1/visibility/brands/{id}/report?days= (summary; platforms per AI: ChatGPT, Claude, Gemini, Perplexity, Google AI Mode, Copilot …, the in-chat, API and pasted answers of a family together; per engine; each brand; each prompt's latest result per AI with the deciding sentence; gaps; most cited sites; actions, what to do next ranked by the answers each would change; weekly trend). MCP / tools ai_visibility { action: setup | prompts | record | run | report | ideas | add }: listed only to workspaces whose plan includes it; setup with a domain alone answers with what the site suggests; record labels the engine with the calling app ("Claude (in chat)"), or with ai when the app is not known; ideas adds forum questions; add tracks texts. Answers are kept 90 days, daily scores 13 months.
  • AI visibility prompts kept fresh (2026-10-31): POST /v1/visibility/brands without promptList has the workspace model write the prompts when a key is saved (promptsWrittenBy: "model" | "templates" | "you"); POST /v1/visibility/brands/{id}/refresh → { found, added, from: { site, forum, rival, model }, notes, suggestions } (also run monthly per brand); GET /v1/visibility/brands/{id}/suggestions → { suggestions[{ id, text, intent, source, why }], autoAdd, refreshedAt, nextCheckAt }; POST …/suggestions { add?: ids, dismiss?: ids, all? } tracks them (plan prompt limit) or dismisses them (never offered again); PATCH a brand with autoAdd: true tracks new suggestions at once. Tracked prompts are never removed by a check; the brand list carries suggestions (pending count).
  • AI visibility alerts: checked hourly per brand on its own answers, this week against last (at least 6 buyer answers a week): visibility.dropped (15+ points down), visibility.lost_prompts (2+ prompts no longer naming the brand), visibility.passed (a rival named more often), visibility.negative (an answer with a negative sentence about the brand), visibility.new_rival (named in 2+ answers, in none the five weeks before), visibility.stale (no answers for 8 days). Each becomes a notice (kind visibility, e-mailed when unseen), goes to alert channels with the event visibility (POST /v1/alert-channels { events: ["visibility"] }) as { type, brand, title, text, url }, once per brand, kind and week. Monday's summary e-mail goes to owners and admins with weekly e-mails on.
  • AI visibility answers as a table: POST /v1/visibility/brands/{id}/table → { tableId, name, added, total }: one row per answer (key answer: question, intent, ai, date, named_you, position, first_named, companies, cited_you) in the table "AI visibility · <brand>", kept up to date hourly after the first call; answers from the shared category index are left out. Watches: keepTable on POST/PUT /v1/watches (default on for a new watch) merges each check into the table named after the watch (a price watch: url, name, price, in_stock). POST /v1/tables takes via: "search" | "read" to say where hand-given rows came from.
  • POST /v1/agents/{id}/edit { text, dry? }: the change in plain words, by rules (schedule, destination, filters, name, search words); dry: true previews without needing the app connected; saved as a new version; 400 no_change with examples when nothing could be read. agent_create { agent, text } does the same from a chat (preview, then confirm: true).
  • POST /v1/agents/{id}/copy { name?, input?, schedule? }: a copy with other inputs on its first source and its own schedule (null = on demand); counts as one agent.
  • Extract step each: true (after step 1): the agent runs once per row so far, up to 25, with {{column}} in its inputs filled from each row; the referenced columns are kept beside each result, results from new rows count as new, one agent run per row is metered; refused on step 1 or without a {{column}}.
  • Review links: the review e-mail and the chat message carry /r/review/{id}/{token} (HMAC of the review id with the server secret): a page with the rows and Approve / Reject buttons (POST /r/review/{id}/{token}/approve or /reject), no sign-in, noindex, only while the review is pending; a GET never decides.
  • Step report { title?, brand?, columns?, summary? }: the rows so far as a PDF (A4; landscape above five columns) with the brand of a website (brand: "acme.com", read once with brand_assets and kept on the step 30 days), summary tiles and a table of up to 300 rows. No model. The rows pass on unchanged; the step report carries report: { url, title, rows, bytes } and the deliveries after it carry report (webhook payload field, a "Report (PDF)" line in chat text, a row in the e-mail). GET /reports/{id}/{token}.pdf serves it without a key (the token is the secret; 404 when unknown or expired); GET /v1/agents/{id}/reports lists an agent's reports. Kept 30 days, a trial's 1 day. Printing uses the session manager, so the owner's browser minutes apply.
  • POST /v1/agents/draft { text, model? } — plain words → a draft definition. Rules first, no model: every source the words name (one step each, add: true), several targets for one agent, star and price filters, a review step when the person wants to check rows first, the schedule and the destination. When the workspace saved its own model, that model refines the draft against the brief and the manifest cut to the job (about 5,000 input tokens on the workspace's key); its definition passes the same validation, with one repair round. Response: { def, missing, why, plannedBy: "rules" | "model", model?, tokens?: { input, output }, rounds?, ask?, notes?, rules?, hasModel?, modelError? }. model: "off" skips the model. When the model fails, the rules draft is returned with modelError.
  • GET /v1/agents (with scorecards), GET /v1/agents/{id} (scorecard, recent runs and the blueprint: the workflow as nodes, trigger first, each step with what it uses (the ready-made agent and its site, pages, memory, your model, an API and its Vault key, an app and its connection, a person) and what it costs, plus a one-line summary and the same as text lines), PUT /v1/agents/{id} (every change is a new version), DELETE.
  • GET /v1/agents/scorecard — the workspace scorecard: { agents, enabled, runs, ok, checked, passRate, tokensSaved, modelTokens, tests, testsFailing, rows[{ id, name, schedule, runs, passRate, tests, testsFailing, tokensSaved, lastRunAt, lastPass, lastFailure }], attention[{ id, name, lastFailure }] }; failing agents come first in rows. The dashboard shows it at Agents → Scorecard.
  • POST /v1/agents/{id}/run { input? } → the run: { ok, summary, columns, count, newCount, rows, newRows, steps[{kind, ok, ms, rows, note}], delivered, alerts, pass, checks, tokens, modelTokens }. 409 agent_busy while it runs.
  • One task, one table (2026-11-04): crawlgenie_extract keeps its rows for the AI's task: keep_table: "<name>" names the table (an existing one, else a new one), no name means the table this app worked on in the last 30 minutes, else this app's table of the same lookup from an earlier run, else a new table named after the request (found again by that request, even renamed). The same lookup run over many subjects is one table: once this app's table of an agent's rows takes a second subject in the same shape, it is renamed to the lookup's title ("Company tech stack", "Google News") and rows that do not name their subject get asked_for (2026-11-24: a script made 56 one-row tables, one per company); keep_table: false keeps nothing. Rows go into an existing table only when its key is among their columns and most of their columns are its own (else the reply says "Not added … as rows"). Writes by an AI or an agent: a key column named Website/domain keeps one row per site; a new row whose company name matches a row under another site is left out (lookalikes in the merge result); a field set takes only its fields (unknownColumns); each write is a batch, GET /v1/tables/:id returns lastWrite { id, at, by, added, changed } and POST /v1/tables/:id/undo { batch? } takes the latest back ({ undone, removed, restored }, 409 nothing_to_undo; kept 30 days). Cells written with sources are checked against them right away (no browser, at most 6 fresh reads a write): GET /v1/tables/:id returns checks { withSources, verified, weak, failed, unchecked, noSource, needsLook }, ?show=look lists the rows that need a look and ?show=mine the rows assigned to the signed-in person; the table tool's queue lists the rows that need a look. GET /v1/tables/export-many?ids=a,b downloads up to 20 tables as one Excel file, a sheet each.
  • Comments (2026-11-04): POST /v1/tables/:id/comments { text, row?, col?, parent?, assign? } starts a thread on a cell (row + col), a row, a column or the table, or replies (parent); @email in the text mentions a member (others are dropped), assign (a member, else 400 not_a_member) makes the thread theirs until resolved and marks the row assignedTo; returns { comment, thread, alerted }. GET /v1/tables/:id/comments?status=open|resolved|all → { threads, comments }; POST /v1/tables/:id/comments/:id/resolve { resolved }; DELETE deletes a thread with its replies. GET /v1/comments/for-me → { items, count } (assigned, mentioned, replies and resolves since seen); POST /v1/comments/seen { ids }. GET /v1/tables/:id returns marks (open threads: id, row, col, via, assignedTo, n). POST /v1/tables/:id/share takes teamReplies. E-mails: one per person per 10 minutes.
  • GET /v1/tables/review-queue?limit=&assigned=all|me|unassigned&table=&agent= (kept for older apps; the dashboard no longer shows it) (rows agents wrote that nobody marked, doubtful first, each with evidence { link, quote, date, confidence, verified, note }, why, madeBy, assignedTo; byTable counts), POST /v1/tables/:id/assign {keys, to: email|null, note?} (only a member of the workspace: 400 not_a_member; returns { assigned, to, alerted } and the teammate gets an e-mail; rows carry assignedTo). Keep fresh (2026-11-04): rules.refreshDays (7–365) on PUT /v1/tables/:id/fields or with: { refresh_days } on the table tool; GET /v1/tables/:id returns fresh: { every, due } and table next serves the due rows after the open ones. Share by link: POST /v1/tables/:id/share { comments?, renew? } → { url, comments } (the same link until renew), DELETE /v1/tables/:id/share; GET /v1/tables/:id returns share { url, comments } and comments; GET /v1/tables/:id/comments, POST /v1/tables/:id/comments { text, row? }, DELETE /v1/tables/:id/comments/:commentId. Outreach: the step { kind: 'outreach', mailboxes: [connection names], sequence: [{ subject?, body, waitDays? }], emailColumn?, allowRoles?, window?: { from, to, weekends, timezone } } (needs a review step before it); Mailboxes: GET /v1/mailboxes/providers (limits, steps, links), GET /v1/mailboxes, POST /v1/mailboxes {provider, email, username?, password, host?, port?, imapHost?, cap?, fromName?, address?, replyMailbox?} (signs in, sends a test, opens the inbox; 400 with the reason otherwise), PATCH /v1/mailboxes/:id {cap?, fromName?, address?, paused?, replyMailbox?}, DELETE /v1/mailboxes/:id, GET /v1/mailboxes/domain-check?domain=. GET /v1/outreach?agent= (leads by stage, sent, reply rate, each mailbox's day), GET /v1/outreach/suppression, POST /v1/outreach/suppress {email, reason?}, DELETE /v1/outreach/suppress/:email, POST /v1/outreach/:agent/stop. Every outreach e-mail links to /u/<token> (GET confirms, POST unsubscribes; RFC 8058 one-click). GET /v1/agents/{id}/runs, GET /v1/agents/{id}/runs/{runId}?format=csv&only=new (format=xlsx gives an Excel workbook; sheets=<column> adds one sheet per value of that column after the All sheet; the same on GET /v1/watches/:id/runs/:runId/export and GET /v1/tables/:id/export). The deliver step { kind: 'deliver', to: 'email', groupBy?, intro? } groups the e-mail by a column and links to the run as Excel (a signed link, 30 days).
  • GET /v1/agents/{id}/versions (each with its scorecard and via: where that version was saved), POST /v1/agents/{id}/rollback { version }.
  • GET /v1/agents/{id}/items?stage=&limit= (what became of each item the agent found: { goal, progress: { total, stages: [{ stage, count }] }, items: [{ key, title, url, stage, note, proof, by: agent|ai|person, runId, createdAt, updatedAt, history: [{ stage, at, by, note? }] }] }), POST /v1/agents/{id}/items { by?: "person" | "ai", items: [{ url | key | title, stage, note?, proof? }] } (at most 100; an unknown item is added), DELETE /v1/agents/{id}/items?key=. GET /v1/agents/goal-stages?goal= suggests stages from a goal's words. ?format=csv on the items list downloads them all. Proof links are opened (one read each) and marked proofStatus verified (on the item's own site, naming the product from goal.mentions or the facts) / opens / broken / login.
  • GET /v1/agents/{id}/next?limit= (the open work for the user's AI: todo with what each page says, waiting, blocked, toApproveTotal when the goal has an approved stage, facts, files, logins, nextStage), POST /v1/agents/{id}/test { upto? } (a test run with the agent's memory: nothing sent or saved; every step carries sample, its first rows). POST /v1/agents/try takes upto (run steps 1…N only). An item is its address without www., tracking parameters or a trailing slash (else its id, else its title); at most 2,000 per agent, deleted with the agent.
  • GET /v1/agents/{id}/export → the portable file (crawlgenie_agent: 1, webhook URLs removed); POST /v1/agents/import takes it back.
  • POST /v1/agents/{id}/enable { enabled }; POST /v1/agents/{id}/trigger/rotate.
  • Autopilot (2026-11-10): the definition takes autopilot { sites[], rowSites?, allow?, perDay? } (allow: any of submit upload accept sign_up post send review, default ["submit","upload"]; at least one site, or rowSites: true for the sites of the agent's own items). POST /v1/agents/{id}/autopilot { on } turns it on (a person signed in to the dashboard or a server admin key; any other key gets 403 consent_needs_person; the agent must be act_with_approval, else 400 autopilot_risk; Team, else 402) or off (any key). GET /v1/agents/{id} returns autopilot { on, stale, by, at, scope }: stale means the definition changed after the approval, so every action asks again. Goal steps and review steps of a run use it; a browser session joins it with policy.autopilotAgent: "<agent id>" (approvals are switched on for that session). Over MCP, a session the same AI app opens in the workspace within 30 minutes of agent_next or agent_track on an agent whose Autopilot is on joins it by itself (no new tool option), and browser_create_session says so; turning Autopilot off ends the link. An action Autopilot approved returns proof in its result (ActionResult.proof, the same shape as below) and the tool text quotes what the page confirmed. Inside the scope an action is approved at once and logged with by: "autopilot:<agent id>:<who approved>"; payments, purchases, deletions, cancellations, account and security changes, pages with card or bank fields, unlabelled buttons, evaluate and dialog always wait for a person, and a pending approval Autopilot left says why (autopilotWhy).
  • Autopilot proof and log: after each action Autopilot approved, the page's address, title and a confirmation sentence that was not there before are kept with the approval as proof { url, title, said, confirmed, needsEmail, kind, at } (confirmed: a new thank-you or confirmation; needsEmail: the page asked to check the inbox). GET /v1/agents/{id}/autopilot/log?limit=50 → { week, actions: [{ id, at, by, action, target, url, sessionId, proof }] }, newest first. A confirmed submit, post or send moves the agent's goal item to the first submitted-like stage (only when exactly one item matches the page or its site; never backwards).
  • Confirmation e-mails: autopilot.mailbox names one of the workspace's mailboxes (a smtp connection with a reply server, the id from GET /v1/mailboxes); turning Autopilot on refuses any other with 400 autopilot_mailbox. After a needsEmail page, the inbox is searched read-only for mail from that site (30 s to 30 min after the action), and a confirm, verify or activate link on that site is opened with one GET: a new Autopilot action of its own, inside perDay, with its own proof. The original action's proof gets email { state: waiting | confirmed | opened | code | none | failed, from, subject, at, code? }.
  • One-tap approvals: every approval alert (e-mail, Slack, Teams, Telegram, webhook needs_you text) carries a signed link /r/approval/{sessionId}/{approvalId}/{token}. The page shows the action and autopilotWhy; its buttons POST /approve or /deny (a GET never decides, so link previews and mail scanners cannot). Actions Autopilot never takes (payments, deletions, account changes, card pages) can only be denied there (approve → 403). The approval records by: "one-tap link". Alerts now go out for unrecorded sessions too.
  • POST /v1/tables/{id}/rows/{key}/label { label: right | wrong | irrelevant | null, note? }: a person's mark. Wrong and not relevant rows are skipped when agents write the table again (merged.rejected) and left out of from { table } reads; a cell edited with PATCH …/rows/{key} is pinned (row.pinned) and kept against agent writes (merged.pinned); marks and corrections on an agent's rows become its examples. GET /v1/tables/{id} and GET /v1/agents/{id} carry feedback { right, wrong, irrelevant, reviewed, rightPct }. MCP: table { action: "label", table, key, with: { label, note } }.
  • POST /v1/agents/{id}/suggest-fix → { summary, change, definition, problem, examples, model, modelTokens }: the workspace's model proposes a new definition from that feedback; nothing is applied (save it with PUT /v1/agents/{id}).
  • Step score { rules: [{ when?, mentions?, near?, points, label? }], tiers?: [{ at, label }], keepAbove?, column? }: points per rule (a keep-style condition, or words, optionally only near context words in the same field); adds score, tier, score_why, sorted best first. No model.
  • POST /v1/agents/{id}/preflight → { ok, checks: [{ step, check, ok, note }] }: the plan, setup needs, each app connection tested with the app, each read step's pages opened, ready-made agents' required inputs (calls to your own API are not made).
  • Step intake (first step only): what POST /hooks/agents/{id}/{token} receives becomes the rows: an inbound e-mail (Postmark, Mailgun, SendGrid, Zapier shapes: from, subject, text, attachments, attachment_text, up to 5 attachments of 15 MB read to text), { rows: [...] }, or one row. Step verify { link?, claims?, entity?, date?, maxAgeDays?, drop?, maxRows? } adds verified and verify_note.
  • Runs carry perRow: { pages, modelTokens } (what one result row cost); a scheduled run that cannot start (budget, plan, setup) raises the same alert as a failed run, once a day.
  • Tests (saved expected results, checked on every run): GET /v1/agents/{id}/tests → { tests[{ id, name, expect, fromRun, lastAt, lastPass, lastChecks, lastDiagnosis }], testCron, nextTestAt }; POST /v1/agents/{id}/tests { fromRun } turns a successful run into a test (at least half as many rows, the columns that were filled) or { name, expect } saves an expectation by hand; DELETE /v1/agents/{id}/tests/{tid}; POST /v1/agents/{id}/tests/{tid}/accept makes the latest successful run the new rule; POST /v1/agents/{id}/tests/run runs the agent now and checks every test (a normal metered run with trigger: "test"); POST /v1/agents/{id}/tests/schedule { cron | null } adds a check schedule to an agent that has none of its own (hourly needs Pro). Every run carries tests: [{ id, name, pass, checks, diagnosis }]; a failed test's diagnosis names the step and the likely cause (step 1 (extract) failed: …, column "price" missing: the page layout changed, fewer rows than expected (3): the list shrank or part of it did not load). pass is true only when the expectation and every test hold. Free saves 1 test per agent, Pro 10, Team 25.
  • POST {triggerUrl} — the agent's signed trigger address (/hooks/agents/{id}/{token}, no key, 60 an hour): Zapier, n8n, a CRM or a cron starts a run; a JSON body becomes the input of step 1.
  • GET /v1/agents/templates, GET /v1/agents/templates/{id}, POST /v1/agents/templates/{id}/use { fill, name? } — ready agents (competitor prices, hiring signals, bad reviews, buying intent, regulatory changes, lead lists…) with the inputs to fill. A fill entry may name also paths that take the same value (one topic searched on three sites). The template comes fitted to the workspace's plan, with notes saying what changed (Free: Slack/Teams delivery becomes e-mail, checks several times a day become daily).
  • GET /v1/agents/{id} has estimate: what one run is likely to use (basis history = medians of the last successful runs of this version, or steps = counted from the definition; pages, agentRuns, seconds, modelTokens, tokensSaved, quota left, and a text line). POST /v1/agents/estimate takes a definition that is not saved yet. Connector: agent_run { agent, estimate: true } answers the same without running.
  • Buying intent (buying_intent): { preset: saas|shopify|agency|local, topic, competitors?, city?, forums?, days=14, min_score=45, max=50 } → rows score (0–100), signal (asks for a tool · wants to switch · wants to hire · low review of a competitor · permit issued), source, title, text, author, posted, why, url; the summary names every source and how many posts it gave. Scored in code, 0 model tokens. Templates: buying-intent, shopify-buying-intent, freelance-leads, local-permits. The connector picks it from plain words ("find people leaving HubSpot") with the preset filled in.
  • Google ads of a website (google_ads): { domain, region=US, advertiser?, max=100 } → rows advertiser, verified, format (text · image · video), preview, url, from Google's Ads Transparency Center; the summary has the approximate total; as a watch, new ads since the last check.
  • Google Maps reviews (google_maps_reviews): { place, stars_at_most? } → the summary has the rating and the count per star (rating, total, perStar in the run data); rows are the review texts Google shows to visitors who are not signed in (author, rating, when, approx_date, text, owner_reply, reply), often 5 and sometimes none. As a watch it alerts when the 1★ or 2★ count rises.
  • Goal progress (goalProgress on an agent) adds brokenProof (items at the goal stage not counted because their proof link is broken) and noProof (counted, with no proof link).
  • Lead lists (local_leads): { query, cities?, max=20 (per city), min_rating?, min_reviews?, no_website=false, has_email=false, contacts=true } → rows sorted by score (0–100, fit and reach) with why, email_type (personal · generic), people, email_check and, for several cities, searched. Filters apply before any website is visited.
  • Website contacts (domain_contacts, and local_leads with contacts) add people (names with their role from the business's own team, about and contact pages: "Jane Doe (Owner)") and email_check ("domain accepts mail" when the e-mail domain has a mail server, "no mail server for …", or "not checked"); it checks the domain, not the mailbox.

Scorecard (scorecard on every agent and version): runs, ok, pass rate over the runs with an expectation or tests, rows, new rows, pages, tokens saved, model tokens, average duration, last failure (a failed test's diagnosis when there is one).

Plans: agents and watches share one count (2 on Free, 25 on Pro, 100 on Team); 6 steps per agent on Free, 12 on paid plans; call, write, review and app steps are Pro (one connection on Free). Free runs daily schedules and delivers to the dashboard and e-mail digest; hourly schedules, Slack and webhooks, decide and goal steps and versions with rollback are Pro; risk: act is Team. Extract and goal steps count as agent runs, read steps as reads, browser steps as browser minutes.

MCP / connector: agent_plan (the capabilities manifest as text), agent_create (plain words → draft → confirm: true saves, or definition planned from agent_plan; run_now runs), agent_review (list, show, approve, reject), agent_run (save_as_expected: true turns a successful run into the agent's test; the reply lists every test's result), agent_list (pass rate per agent), agent_results (the last run's rows and test lines), agent_create { template, fill, name? } (a ready template by id, fields by path or label, fitted to the plan; agent_plan lists the templates with their fields), agent_rollback { agent, version? } (without version: the versions with when, where saved, steps and pass rate; with version: restores it as a new version), agent_next { agent, limit?, facts? } (the open work to continue in the chat; facts saves what to fill in on the agent), agent_run { test: true, upto? } (a test run), agent_create { try_first: true, upto } (try steps 1…N), agent_track { agent, items: [{ url | key | title, stage, note?, proof? }] } (the user's AI records what it did for an item, e.g. submitted, live, applied; agent_run, agent_results and agent_list end with the goal and the items per stage).

SDKs: TypeScript vessel.agents.draft(text), .try(def), .create(def, { run: true }), .list(), .get(id), .update(id, def), .run(id, input?), .runs(id), .results(id, runId, { format: 'csv', only: 'new' }), .versions(id), .rollback(id, v), .enable(id, on), .export(id), .import(file), .templates(), .useTemplate(id, fill), .scorecard(), .capabilities(), .tests.list / fromRun / add / delete / accept / run / schedule, .reviews.list / get / approve / reject / ofAgent; vessel.connections.apps / list / create / test / delete. Python: the same under v.agents (try_, import_, rotate_trigger, use_template, v.agents.tests.from_run(...)).

Site permissions and a site's own interface#

Every read (web_answer / read_many, POST /v1/scrape) carries one line about the site it read: what its robots.txt says about that path for CrawlGenie (or all crawlers), the site's Content-Signal line (Cloudflare's Content Signals: search, ai-input, ai-train), its RSL licence (License: in robots.txt), whether it publishes llms.txt, and the interface it offers instead of its pages: an OpenAPI document (/openapi.json), an MCP server description (/.well-known/mcp.json), an A2A agent card (/.well-known/agent-card.json) or an API manifest (/.well-known/ai-plugin.json). When a site has one, that is usually the cheapest way to read it, and the line says so. The facts are learned with at most six small requests per site and day and kept for 30 days; GET /v1/sites/profile?url=… returns them as { permissions: { robots, allowed, rule, contentSignal, license, llmsTxt, sitemaps }, api: { openapi, mcp, agentCard, aiPlugin } }, and /v1/scrape answers carry them as site. The line informs; a one-shot read of a page a person asked for is not a crawl and is not blocked by it (crawls respect robots.txt on their own).

Connections (/v1/connections)#

Apps a workspace linked once for the app step of its agents, in three layers: native connectors (Google Sheets with a service-account JSON key, the sheet shared with the account's e-mail; Notion with an internal integration token; Airtable with a personal access token; HubSpot with a private-app token), presets (56 of them, from Slack, Microsoft Teams and Telegram to Jira, Asana, GitHub, Shopify, WordPress, SendGrid, Klaviyo, Apollo, Zapier and n8n: a token or a webhook URL, sometimes a setting such as the site name, and request templates filled from each row; GET /v1/connections/apps lists them all with how to get each credential), and custom connectors for any REST API (app: "custom" with a spec: { name, baseUrl, auth: { kind: token|basic|query|none, header or query template with {{secret}} }, test: { method, path }, actions: [{ id, label, method, path, body, perRow, config }] }; body templates take {{column}}, {{title}}, {{name}}, {{email}}, {{url}}, {{row.line}}, {{row.json}}, {{rows.json}}, {{config.x}}). GET /v1/connections/apps lists them all with how to get each credential; its custom entry carries the spec shape and an example. An app step names the app id, or a connection by its name. The credential is written to the Vault under the connection's id, locked to the app's API host, and never returned by any call; the model that planned the agent never sees it; every write leaves from CrawlGenie's server through the SSRF guard. Only the rows a step produces are sent.

  • GET /v1/connections/apps — the apps, how to get each credential, their actions and settings.
  • GET /v1/connections → { connections[{ id, app, name, config, createdAt, lastUsedAt, lastError, agents }] } (never the credential).
  • POST /v1/connections { app, name?, secret, config? } → 201 the connection plus test: { ok, note } (the credential is tried at once; a failure keeps the connection with lastError).
  • POST /v1/connections/{id}/test → { ok, note }; DELETE /v1/connections/{id} (409 in_use while agents name it; ?force=1).
  • POST /v1/connections/{id}/send { action?, config?, rows? | table?, columns? } → { ok, app, connection, action, written, note }: rows go to the app once, with the same actions as an app step (the first action when none is named). table is a table's name or id; rows at most 5,000. Same plan gate as app steps (agentApps, 402), one read counted; 502 app_failed with the app's reason.
  • Native connectors added 2026-10-31: Google Drive (google_drive, upload_csv: one CSV file per run in a shared-drive folder, fileName with {{date}}, asSheet to convert to a Google Sheet; the Sheets service-account key works), Zoho CRM (zoho_crm, setting dc; the secret is { client_id, client_secret, code } from a Self Client, exchanged once for a refresh token when the connection is saved; create_records, upsert_records with module and key), ntfy (ntfy, the topic URL as the secret; post_message, post_summary). Preset: Pushover (pushover, application token + setting user).
  • Plans: 1 connection on Free, 10 on Pro, 100 on Team.

Several sources, automatic checks, setup needs#

  • extract, read and from steps after step 1 take add: true: their rows are added to the rows so far instead of replacing them, each row with a source column (the extractor id, the first page's host or the other agent's name).
  • A read step remembers each page's text: on later runs newRows holds only the pages whose text changed.
  • The first successful run with rows becomes the agent's test when it has none and no expect; POST /v1/agents/:id/tests with the same fromRun returns that test instead of adding a second.
  • GET /v1/agents items add schedule, risk, flow (the workflow nodes: kind, label, title, site) and setup ([{ step, need: 'connection' | 'model_key' | 'webhook', app?, message }], empty when the agent is ready).
  • A run whose delivery step failed says · delivery failed: <reason> in its summary.
  • Connector: agent_create takes try_first: true with a definition (runs it without saving or delivering); agent_list and agent_create print NEEDS SETUP lines.
  • Connector: agent_create takes agent (id or exact name) to save a definition as a new version of that agent (unchanged steps keep what they already sent) and refuses a second agent with the same name; agent_delete { agent } deletes one. agent_run and agent_create with run_now answer after at most 100 s; a longer run continues on the server and agent_results shows it.

Reviews: a person in the loop (/v1/agents/reviews)#

A review step stops the run with the rows; the workspace is told in its alert channels (Slack, Teams, Discord, Google Chat), by e-mail when the step says so, and in the dashboard's Review inbox. The reviewer approves the rows as they are or edited (the remaining steps then run as a new run with trigger: "review"), or rejects (nothing more runs). A pending review expires after timeoutHours (72 by default). Edits are kept as corrections; the agent's later decide steps receive the last five as examples ("a person corrected this row like that"), so the agent follows the team's judgement without any training.

  • GET /v1/agents/reviews?status=pending|approved|rejected|expired|all → { reviews[{ id, agentId, agentName, runId, step, stepLabel, columns, rows (first 50), count, instruction, status, createdAt, expiresAt, resolvedAt, resolvedBy, note, edited }] }.
  • GET /v1/agents/reviews/{rid} — one review with every row.
  • POST /v1/agents/reviews/{rid}/approve { rows?, by? } → the run that continued (409 review_closed when it was already decided or expired).
  • POST /v1/agents/reviews/{rid}/reject { note? }; GET /v1/agents/{id}/reviews → { reviews, corrections[{ before, after, at }] }.
  • Connector: agent_review (list, show, approve with optional rows, reject).

Built-in agents (no model key) — watches#

Jobs people run every week, implemented without an LLM: each watch keeps state between runs, reports what changed, and posts a webhook (by default only when something changed or an alert fired). Two families: monitors (watch → diff → alert) and extractors (Apify-style actors: structured rows + CSV from real sites, grouped by vertical).

The extractor store (GET /v1/extractors)#

Every extractor can run three ways:

  • once, synchronously — POST /v1/extractors/{id}/run { input, session? } → { summary, columns, rows, count, alerts, durationMs }; ?format=csv streams CSV;
  • as a watch — POST /v1/watches { kind, input, cron?, webhookUrl? }: state between runs, "N new rows", alerts, GET /v1/watches/{id}/dataset (every row ever seen, merged, with first_seen / last_seen / seen_runs), per-run …/export?format=csv&only=new;
  • from an agent — MCP / tools-API crawlgenie_extract { kind, input } returns rows as compact text (kind list prints the catalogue).

Each catalogue entry also carries site: the website a brand-specific agent reads (linkedin_jobs → linkedin.com, shopify_app_reviews → apps.shopify.com), or null for agents that read any site or several. The dashboard shows that site's icon on the agent card, served from GET /icons/site/{domain} for exactly those domains (cached, no key needed).

source: api extractors fetch public JSON/XML directly (no browser minutes, no tokens); source: browser run in a CrawlGenie session (stealth on, trackers blocked natively, no request interception). needs: proxy is an honest label: the site refuses datacenter/consumer-ISP headless traffic; attach session.proxy.pool to the watch and the same extractor works. Live results below are from a consumer IP in India with no proxy (Oct 12 2026).

Leads & companies — Local businesses, contacts, company tech stacks, account signals, vendor risk and people about to buy

idrowsinputssourcelive, no proxy
google_maps_placesLocal businesses: name, rating, reviews, addressquerybrowserrows ✓
linkedin_companyPublic company profile + visible postscompanybrowserpublic page; feeds need a login profile
domain_contactsEmails, phones, socials and address from a company sitedomainsbrowserrows ✓
local_leadsGoogle Maps businesses with website, phone, e-mails and socials in one tablequery, max (≤ 50), contactsbrowserrows ✓
enrich_companiesDomains or names in; contacts, socials, address and tech stack out, one row eachcompanies (≤ 50 lines), contacts, techbrowserrows ✓
tech_stackCMS, framework, analytics, payments, chat, CDN — per domaindomainsbrowserrows ✓
ai_adoptionWhich companies verified an AI tool (ChatGPT, Claude, Cursor, Perplexity…) on their domain, with the record and the date first seendomains (≤ 200)apirows ✓ (26 companies in 0.7 s, 2026-10-31)
account_signalsTarget or customer accounts: open roles by team and hiring surges or cuts, money raised (Form D), systems added or dropped (your product called out), company newsaccounts, my_product?, daysapirows ✓ (3 accounts in 8 s, 2026-10-31)
vendor_riskVendors you depend on: open incidents (Statuspage), breaches (Have I Been Pwned), vulnerabilities naming the product (NVD), security.txt, risk news; a severity per rowvendors, daysapirows ✓ (3 vendors in 2.9 s, 2026-10-31)
company_stackThe systems a company runs (CRM, ERP, WMS, TMS, supply chain planning, integration, MES, PLM, OMS, e-commerce, EHR, core banking, HR, hiring, support, marketing, security, AI tools), one row each with confidence and evidence, from DNS, careers site, job posts, 10-K and websitedomains, name, website, jobs, secbrowserrows ✓ (20 companies, 186 high-confidence rows, under 9 s each without the website step, 2026-10-31)
yelp_businessesLocal businesses with ratings — needs a residential proxyquery, locationbrowser · needs proxyblocked from consumer/datacenter IPs — needs a residential pool
idrowsinputssourcelive, no proxy
shopify_competitorLaunches, price moves, markdowns, stock-outs, best-sellers, policy and app changes of a Shopify store (alerts as a watch)store, maxapirows ✓ + theme, apps, policies, bestSellers
competitor_feedOne feed for a set of competitors: plan and price changes, new product pages, homepage headline, new integrations and customers, hiring surges, GitHub releases, incidents, Form D, news; importance per row (high / medium / low), alerts for highcompetitors, github?, pricingbrowser (pricing pages only when the served HTML has no plans)rows ✓ (3 competitors in 12.3 s; 5 competitors run twice: 0 false changes, 2026-10-31)
mentions_linksPages that name or link to a site: web, Google News, Hacker News, Reddit, Bluesky; each web page checked for a link (follow / nofollow, anchor)domain, name, maxbrowserrows ✓ (firecrawl.dev: 65 pages, 4 linking, 19.5 s, 2026-10-31)

E-commerce — Products, prices, stock and catalogues

idrowsinputssourcelive, no proxy
amazon_productsProducts: price, rating, reviews, ASINquery, marketplace?browser60/page; prices follow the egress country
shopify_productsEvery product of any Shopify store, no browserstoreapirows ✓
shopify_app_reviewsRating and latest reviews of an app on apps.shopify.comapp, pagesbrowserrows ✓ + overall, total
shopify_app_searchThe apps for a need on the Shopify App Store: rating, reviews, free plan, starting price in US dollars, ad or not; with sort: "newest" the category's newest appsquery, sort, category, max, details, adsbrowserrows ✓
reddit_commentsThe comments of a Reddit thread: author, score, depth, time, texturl, maxbrowserrows ✓ + title, thread
youtube_commentsThe comments under a YouTube video: author, likes, replies, time, textvideo, maxbrowserrows ✓ + title, total
shopify_product_reviewsA store's product reviews via Judge.me / Okendo / Yotpo feeds, the page's structured data, or the rendered widget in a browser (last); picked products without reviews are passed overstore, products, max_products, per_productapi (browser only as the last path)rows ✓ + app, products (average, count per product)
woocommerce_productsProducts from any WooCommerce shop via its Store APIstoreapirows ✓
ebay_listingsLive and sold listings — needs a residential proxyquery, site?, sold?browser · needs proxyblocked from consumer/datacenter IPs — needs a residential pool

Jobs & recruiting — Boards, company career pages and hiring signals

idrowsinputssourcelive, no proxy
indeed_jobsJob listings for a query and locationquery, location?, country?browserrows ✓
hn_hiringNewest posts in this month’s hiring threadquery?apirows ✓
linkedin_jobsPublic job search, no loginquery, location?, posted?browserrows ✓
greenhouse_jobsAll open roles at a company on Greenhouseboardapirows ✓
workday_jobsAll open roles on a Workday careers site, with searchurl, query, maxapirows ✓ + total
smartrecruiters_jobsAll open roles at a company on SmartRecruiterscompanyapirows ✓
workable_jobsAll open roles at a company on Workable, with searchaccount, query, maxapirows ✓ + total
recruitee_jobsAll open roles at a company on Recruitee: every city, workplace (remote, hybrid, on-site)companyapirows ✓
jobs_searchOne query across LinkedIn, Indeed and Remote OK, merged with a source columnquery, location, maxbrowserrows ✓ + boards, failed
lever_jobsAll open roles at a company on Levercompanyapirows ✓
ashby_jobsAll open roles at a company on Ashby: every city, workplace (remote only when the role is remote, not hybrid)boardapirows ✓
remoteok_jobsRemote job board by tagtag?apirows ✓

Reviews & reputation — What customers say about products and companies

idrowsinputssourcelive, no proxy
trustpilot_reviewsReviews for any company domaindomainbrowserrows ✓
g2_reviewsSoftware reviews — needs a residential proxyslugbrowser · needs proxyblocked — needs a residential pool
app_store_searchApps for a keyword with ratings and pricesquery, country?apirows ✓

Social & community — Posts, mentions and creators

idrowsinputssourcelive, no proxy
reddit_postsNew posts in a subreddit or searchsubreddit?, search?, sort?browserrows ✓
youtube_searchVideos for a query with views, channel and agequery, sort?browserrows ✓
youtube_channelLatest videos of a channel with view countschannelbrowserrows ✓
hn_mentionsStories and comments mentioning a termqueryapirows ✓
bluesky_postsPublic post search, newest firstqueryapirows ✓ (api.bsky.app; a refused network says what to use instead)
mastodon_hashtagLatest posts for a hashtag on any instancetag, instance?apirows ✓

News & media — Headlines, feeds and press

idrowsinputssourcelive, no proxy
producthunt_todayToday's launches with votessection?browserrows ✓
google_newsHeadlines for any query, newest firstquery, lang?, country?apirows ✓
rss_feedAny feed → new items since last runurlapirows ✓
bing_newsNews results with source and snippetquerybrowserrows ✓

SEO & marketing — Rankings, keywords, audits and site changes

idrowsinputssourcelive, no proxy
web_search_resultsTop results for a query — track rank changesquery, watchDomain?browserrows ✓
sitemap_monitorNew or removed URLs on any siteurlapirows ✓
keyword_suggestionsAutocomplete ideas from Google and Bingseedsapirows ✓
domain_healthYour own domains: MX, SPF and its 10-lookup limit, DMARC, DKIM, MTA-STS, certificate expiry, every allowed sender, registered look-alike domains; ok / warn / fail per checkdomains, lookalikesapirows ✓ (3 domains in 16 s, 2026-10-31)

Finance & crypto — Quotes, filings and market data

idrowsinputssourcelive, no proxy
sec_filingsLatest 10-K / 10-Q / 8-K / 13F for a tickerticker, forms?apirows ✓
stock_quotesPrice, change and 52-week range for a list of tickerssymbols, alertPct?apiAPI verified; blocked by some consumer ISPs
crypto_pricesMarket data for a list of coinsids?, vs?, alertPct?apirows ✓
fx_ratesDaily reference rates for a base currencybase?apirows ✓

Real estate — Listings and rentals

idrowsinputssourcelive, no proxy
craigslist_listingsHousing, for-sale or gigs in any citycity, section?, query?browserrows ✓

Travel & hospitality — Hotels, stays and fares

idrowsinputssourcelive, no proxy
booking_hotelsPrices and scores for a destination and datesdestination, checkin, checkout, adults?browserrows ✓
airbnb_listingsListings, nightly price and ratings for a placeplace, checkin?, checkout?, adults?browserrows ✓

Research & developers — Papers, repositories, packages and models

idrowsinputssourcelive, no proxy
pubmed_articlesNewest biomedical papers for a queryqueryapirows ✓
arxiv_papersNewest papers for a queryqueryapirows ✓
semantic_scholarPapers with citation countsqueryapiworks; keyless tier rate-limits (429) under load
github_trendingRepositories trending today / this weeklanguage?, since?browserrows ✓
github_reposRepos for a query, recently pushedquery, sort?apirows ✓
npm_packagesPackages for a keyword with quality scorequeryapirows ✓
huggingface_modelsMost downloaded models for a searchqueryapirows ✓
idrowsinputssourcelive, no proxy
federal_registerNew rules, notices and orders for a topicqueryapirows ✓
clinical_trialsStudies whose condition, intervention or title is the query, recently updated, with conditionsqueryapirows ✓
fda_recallsFood, drug or device recalls matching a termcategory?, query?apirows ✓
courtlistener_opinionsUS case law mentioning a term: case, court, filed, the matching passage (snippet), link; from the public search feedqueryapirows ✓

Events — Conferences, meetups and launches

idrowsinputssourcelive, no proxy
eventbrite_eventsUpcoming events for a topic and citylocation, querybrowserrows ✓

Any site — Point at a page, a feed or a JSON API

idrowsinputssourcelive, no proxy
css_extractAny page → rows via CSS selectorsurl, rows, columns?, nextSelector?browserrows ✓
structured_dataProducts, jobs, reviews, events, articles — from the page’s own JSON-LDurls, types?browserrows ✓
api_jsonAny public JSON endpoint → rows, on a scheduleurl, items?, columns?apirows ✓

Run data is { rows, newRows, columns, count, … }; summary reads "Baseline: N rows", "12 new rows (of 60)" or "Blocked: captcha" — never a silent empty table. Dashboard: Agents → Extractors (filter by vertical), table view with "New only" and CSV/JSON buttons; the watch sheet's Browser options set a proxy pool and/or login profile.

Monitors (category: "monitor")#

kindwhat it doesinputs
change_monitorpage (or CSS selector) changed → line diffurl, selector?, waitMs?
new_linksnew posts/articles on index pages since last run (competitor digest)urls (list or newline string), pattern?, sameSite?
price_trackerprice moved / crossed a threshold / stock status flippedurl, selector?, alertBelow?, alertAbove?
seo_auditcrawl N pages: title/description/H1/canonical/alt/word count/status/load time → score + issuesurl, limit?
link_checkercrawl N pages and verify every link; broken ones with their source pagesurl, limit?, external?
  • GET /v1/playbooks → catalogue with form fields and defaultCron.
  • POST /v1/watches { kind, input, name?, session?, cron?|null, timezone?, webhookUrl?, emailAlerts?, notifyOnlyOnChange?=true, alertWhen?, runNow?=true } → 201.
  • alertWhen is a condition in plain words; when set, the watch tells you (webhook, channel, e-mail) only when it holds, and the matching lines lead the run's alerts as "Condition met: …". Forms: a number on a column (price below $90, rating drops below 4.5, new product price under 50, stock is 0), a value that changed since the last run (Standard price changes, any price goes down, the page changes; the alert reads Standard: price $83 → $79, the first run is the baseline), a count (at least 3 new jobs, fewer than 10 products), quoted text ("Sold out" disappears, "In stock" appears, says "maintenance", "Buy now" is missing), rows that mention words (a new job in Berlin, any row mentioning acme); join with and / or. A condition the server cannot read, or one the watch's kind cannot test (a number on a change_monitor page watch, which has no rows), is refused with 400 bad_condition; wording that only means "any change" (a credit cost or plan price changes) is saved as no condition. A condition that still holds with nothing new since the last run is listed in that run's alerts but not sent again (notified: false; set notifyOnlyOnChange: false to be told every run). Each run carries notified. webhookUrl and emailAlerts are Pro and up (402 plan_feature on Free). A Slack (hooks.slack.com), Discord, Microsoft Teams or Google Chat webhook gets a chat message; any other URL gets the JSON watch.run event plus a text field. Webhooks must be public https addresses (400 webhook_blocked for private or internal ones; the same rule applies to schedules). emailAlerts: true e-mails every workspace member when a run changed, raised an alert or failed; each e-mail carries a one-click link that turns e-mails off for that watch. cron: null = manual only; omitted = the playbook's default schedule. session carries normal session options (proxy pool, profile…).
  • GET /v1/watches, GET /v1/watches/:id (+ recentRuns), PUT, DELETE, POST /v1/watches/:id/run → run record { ok, changed, summary, alerts[], data, pages, durationMs }, GET /v1/watches/:id/runs, GET /v1/watches/:id/runs/:runId (full data).
  • Webhook event watch.run { watchId, name, playbook, ok, changed, summary, alerts, url, runId, data }.

Token savings per run. POST /v1/extractors/:id/run now returns tokenSavings: { tokensWithout, tokensReturned, tokensSaved, savedPct }: the tokens of the page text or JSON the extractor read, against the rows it returned (left out when nothing was measured). The same numbers go to the Token savings page under Agents; watch runs are counted under Monitor (summary, alerts and data against the page). The MCP crawlgenie_extract result line shows them too.

Relay: blocked pages read from your side#

While a relay is connected, a read in the workspace that the server cannot get (blocked, refused, unreachable or an empty wall) is fetched once by the relay and read here as usual; the answer names it (page read through your browser / your relay) and via is relay. Pages the server reads itself never go to a relay. Relays: the Chrome extension with Read blocked pages on, or node crawlgenie-hook.mjs relay.

  • GET /v1/relay → { online: [{ kind: "extension" | "local", name, since }] }
  • GET /v1/relay/connect?token=<key> (WebSocket; a workspace key, at most 5 relays per workspace). The relay sends { type: "hello", kind, name } and gets { type: "ready" }; the server sends { type: "fetch", id, url } and pings every 20 s; the relay answers { type: "result", id, ok, status, finalUrl, html } (up to 6 MB, text types only). Relays fetch with GET only and refuse private, local and link-local addresses; the server refuses them too.

Your proxy (blocked sites)#

  • PUT /v1/proxy { url, mode? } saves your own proxy once (Pro and up; http, https or socks5, with user:password if needed). mode: "on_block" (default) reads directly and retries a page through your proxy only when the site blocked the first try (a bot check, 403/429, a refused or silent connection); "always" sends every browser read through it. GET /v1/proxy shows the host and mode, never the password; DELETE /v1/proxy removes it.
  • Applies to /v1/scrape, web_answer, web_research and /v1/research. A response read through it carries proxy: { used: true, reason }. Without a proxy, a blocked page is reported with challenge (never returned as content).
  • A request that sets session.proxy itself is left alone.

Compress your own content#

POST /v1/compress { content, kind?, query?, maxTokens?, maxRows? } shrinks content you already have before it goes to a model: a tool's JSON output, an API response, logs, documents or retrieved chunks. No model is called; one call counts as one read.

  • content: a string, or any JSON value. kind: auto (default), json, logs or text.
  • JSON: lists of objects become a compact table (column names once, columns with one value stated once, empty ones dropped, nested fields as a.b); API plumbing columns (*_url link templates, node_id, avatar hashes) and rare columns are left out and named under "columns not shown"; text longer than 300 characters per cell is cut.
  • Logs: lines grouped by pattern (numbers, ids, timestamps masked) with one example and a count; every distinct error or warning pattern is kept with up to three real examples. Lines that differ in a status or exit code stay apart; a number that takes a few values splits its pattern; times and sizes show as a range; failures come first when maxTokens would cut. Colour codes are removed, also as a saved log writes them (^[[32m).
  • Text: duplicate paragraphs and lines repeated across chunks are removed. Code, settings files, diffs, git output, markup, file-and-line lists, delimited rows and aligned columns come back byte for byte, with unchanged naming what the text looks like; inside a document, code blocks and indented paragraphs stay exact.
  • A list of plain values over 400 characters: numbers give how many, their range and the unusual ones as [position]=value; text keeps the values that read as errors and says how many are not shown.
  • query keeps only the passages that answer it; maxTokens is an exact budget. The result is never larger than the input.
  • maxRows (5–500): a long JSON list keeps that many rows, picked in this order: rows with errors or failure statuses (at most half), unusual numbers (far from the median, at most a quarter), rare values, the first and last rows, then an even spread; the response says how many of each and returns handle. The compress tool takes max_rows the same way, and compress { handle, offset?, max_rows? } returns the left-out rows (kept a day, nothing compressed again).
  • Response: { kind, content, tokens, tokensIn, savedPct, steps[], ms, handle?, unchanged? }. SDKs: cg.compress(content, opts), client.compress(content, kind=, query=, max_tokens=). Savings show on the Token savings page as "Compress".
  • Measured on public data (Oct 14 2026, scripts/measure-compress.mjs): API JSON 85% fewer tokens (GitHub issues and pull requests, npm search, Hacker News), logs 89% (LogHub Apache, Linux, OpenSSH), overlapping document chunks 26% (duplicates only; with a question far more).

Token savings (measured)#

  • Every observation is counted with the o200k_base tokenizer three ways — what the agent read, the unfiltered tree, and the page HTML — and stored per session (usage.observationTokens / observationTokensRaw / observationTokensHtml / observations / tokenSavingsPct / tokenSavingsVsHtmlPct / estimatedSavingsUsd / estimatedSavingsVsHtmlUsd).
  • GET /v1/stats/savings?days=30&price=3 → totals, per-day series, top sessions, model price table (models, pricesChecked), method note. Reads, research, search, memory and compress are included (bySource[].product: browser, read, search, memory, compress); savedVsRaw / usdVsRaw compare with what the AI would have read without CrawlGenie (the whole text, or the full accessibility tree for browsing) and are the headline figures; savedVsHtml stays as a reference.
  • POST /v1/stats/savings/share {days: 7|14|30|90, freeze?: boolean} → {url, expiresAt, frozen}: a short link (30 days) to /report/<10 characters>, a one-page report with the same totals and the period's usage (pages read, searches, agent runs, watch checks, browser minutes, table rows and questions, notes and files), readable without signing in; freeze: true stores the numbers of now on a new link that never changes. Totals only. Signed links of the older form /report/savings/<token> keep working until they expire. Also bySource (per surface, app and reported model, each with pricedAs { provider, modelId, modelName, pricePerM, basis } where basis is model (the caller reported a listed model), provider (provider known from the app or model name; priced at its main model) or default) and auto { usdVsHtml, usdVsRaw, usdRead }, the sum priced per source.
  • Attribution headers (optional, any request): x-crawlgenie-model: <model id> prices the sessions it creates at that model; x-crawlgenie-client: <app name> names the app. The SDKs send the client header and, with the model option, the model. Without them the app is recognised from the connector, the MCP initialize clientInfo or a known User-Agent. A metadata.model / metadata.client you set on POST /v1/sessions wins over detection.
  • POST /v1/measure { url } → exact tokens for one page: HTML vs full tree vs interactive vs delta-after-scroll.
  • Dashboard: Token savings page with a price-model selector and a "Measure any URL" box.

Agent (natural-language tasks with your model)#

Pause and resume. The agent can stop for a person ({"type":"pause","reason":…}), and pauses by itself at a sign-in page with no saved login. The run's status becomes paused with pausedReason; the workspace gets an alert. POST /v1/agent/runs/:id/resume { task? } continues it, with your answer or a new instruction; a login pause continues by itself once the login is saved, then signs in. Options on /v1/agent/run: pauseWhen (a condition in plain words) and pauseTimeoutSec (default 900, at most 3600; the browser stays open and counts as browser time). The SSE stream sends paused events while it waits. The agent also has {"type":"sign_in"} to sign in with the saved login.

  • POST /v1/agent/run { task, url?, sessionId?, session?, maxSteps?=20, keepSession?=false } → 202 { id, sessionId, statusUrl }. The loop: interactive snapshot → your model returns one JSON action → CrawlGenie executes it → next snapshot, until the model answers done (with a JSON result) or the step budget ends. Actions are the normal action set plus read (main-content markdown) — so policy, approvals, secrets ({{secret:NAME}}) and recording all apply.
  • GET /v1/agent/runs, GET /v1/agent/runs/:id → { status running|done|failed|cancelled|max_steps, result, steps[{ i, thought, action, ok, error, observationTokens, usage }], usage: { inputTokens, outputTokens, observationTokens }, sessionId }; DELETE /v1/agent/runs/:id stops a run. Model key resolution is the same as for /v1/extract (GET /v1/llm).
  • POST /v1/agent/runs/:id/freeze { name?, params?, description? } → { run, routine: { name, steps, domain, params }, replay, modelTokensPerReplay: 0 }: a finished (done) run's recorded clicks, fills and navigations become a routine (POST /v1/routines/{name}/run, schedules, the dashboard) that replays with no model at all; the run then carries routine. 409 not_done for a run that is not finished, no_steps when nothing replayable was recorded, name_taken when another workspace owns the name. Evaluate steps are never replayed.

Schedules (cron-triggered routines)#

  • POST /v1/schedules { name, routine, cron, timezone?="UTC", params?, session?, webhookUrl?, enabled? } → 201. Standard 5-field cron plus @hourly/@daily/@weekly/@monthly, evaluated in an IANA timezone (Asia/Kolkata, America/New_York…).
  • GET /v1/schedules, GET /v1/schedules/:id (with recentRuns), PUT /v1/schedules/:id, DELETE /v1/schedules/:id, POST /v1/schedules/:id/run (run now), GET /v1/schedules/:id/runs, GET /v1/schedules/preview?cron=&timezone=&n=.
  • Every run is a normal routine run: a recorded session (replayable), self-healing targets, assert steps, zero model tokens. After each run CrawlGenie POSTs schedule.run to the schedule's webhookUrl ({ ok, steps, stepsOk, healed, durationMs, error, sessionId, replayUrl, trigger }). Schedules are checked every 20 seconds; a run that is still going is not started twice (409 schedule_busy).

Crawl, map, batch, extract (the Firecrawl-shaped surface)#

Clean content for models at a few thousand tokens per page instead of raw HTML, across whole sites.

  • POST /v1/crawl { url, limit?=50, maxDepth?=3, includePaths?, excludePaths?, sameOrigin?=true, respectRobots?=true, formats?=["markdown"], waitMs?, concurrency?=2, session? } → 202 { id, statusUrl }. Follows same-origin links breadth-first with N browser workers; honours robots.txt Disallow; skips assets; strips tracking params. GET /v1/crawl/:id?offset&limit&content → job (status running|completed|failed|cancelled, counts, tokens) + pages[] (url, title, status ok|error|challenge, depth, markdown|text|html|links, meta{title,description,canonical,published,author,image,siteName,language}). GET /v1/crawl lists jobs; DELETE /v1/crawl/:id cancels and deletes. Up to 500 pages per job.
  • POST /v1/batch-scrape { urls[], formats?, waitMs?, concurrency?, session? } → same job shape, exactly those URLs.
  • POST /v1/map { url, limit?=500, includeSubdomains?, search? } → { urls[], sources: { sitemap, links } } from sitemap.xml / sitemap index / robots.txt sitemaps plus the start page's links. Fast; no job.
  • POST /v1/extract { url | urls[≤20], prompt, schema?, perPage?, maxCharsPerPage?, waitMs?, session? } → { data, pages[], usage: { inputTokens, outputTokens, model, provider, contentTokensApprox }, ms }. Pages are rendered, reduced to main-content markdown, and sent to your model with the prompt (and JSON Schema if given). The model is the workspace's own (see Your model below; GET /v1/llm shows what is configured). Without one: 412 llm_not_configured. CrawlGenie never pays for inference.

Your model (bring your own key)#

One model per workspace for the steps that run while nobody is chatting (decide, write, goal) and for Extract and the goal agent. Providers: openai, anthropic, gemini, groq, openrouter, together, nvidia, deepseek, mistral, or custom (any OpenAI-compatible address; for workspaces it must be public https and is checked against private networks on save and on every call).

  • GET /v1/llm/providers → { providers: [{ id, name, kind, baseUrl, keyUrl, note }] }.
  • GET /v1/llm → { configured, source: workspace|server, provider (openai|anthropic|gemini wire format), preset, name, model, baseUrl, keyHint: "…ab12", steps: { decide, write, goal } }. The key itself is never returned.
  • POST /v1/llm/models { provider, apiKey?, baseUrl?, model? } → { models[] } as the provider lists them (embedding, audio and image models left out). Without apiKey the saved key of the same provider is used.
  • POST /v1/llm/test { provider, apiKey?, baseUrl?, model } → { ok, model, ms, reply, tokens } (one request of a few tokens).
  • PUT /v1/llm { provider, apiKey?, baseUrl?, model, steps?: { decide?, write?, goal? } } → { saved }. Omit apiKey to keep the saved key; an empty step model means "same as model".
  • DELETE /v1/llm → { removed }.

The values live in the Vault as llm_api_key, llm_provider, llm_model, llm_base_url, llm_preset and llm_model_{decide,write,goal}; setting those secrets directly still works.

  • The markdown reader (/text?format=markdown, scrape, crawl) now picks the main content block (readability-style scoring), drops cookie/share/menu/related/comment boilerplate by name, and returns page meta.

One-shot endpoints (no session to manage)#

  • POST /v1/scrape { url, format?: markdown|text|html|snapshot|links, q?, focusChars?, waitFor?, waitMs?, maxChars?, screenshot?, pdf?, session? } → { url, title, format, content, truncated, chars, ms, challenge, usage, screenshotBase64?, pdfBase64?, focus?, source? }. q = question-focused reading: only the passages that match the question come back (BM25-style ranking, no model), with focus: { passages, totalPassages, tokensFull, tokensFocused, tokenSavingsPct } measured per call. URLs that turn out to be PDF / DOCX / plain documents are parsed without a browser (source: "document").
  • POST /v1/parse { url | base64, filename?, maxChars?, q?, ocr?: auto|force|off } → { kind: pdf|docx|xlsx|pptx|text, title, pages, words, chars, content, tokens, meta, ocr?: { used, pages, confidence }, focus? } — PDF text layer (pdf.js) with OCR for scanned PDFs (pages rendered in a CrawlGenie browser and read with Tesseract OCR), DOCX headings/lists/tables → markdown, XLSX sheets → markdown tables, PPTX slides, text/CSV/JSON.
  • /v1/scrape also accepts actions (same schema as /act, run before extracting), maxTokens (exact budget) and changeTracking: true → changeTracking: { changeStatus: new|same|changed, previousSeenAt, diff? } per owner + URL. Every text answer carries contentHash (16 hex characters of the page's text). Send it back as ifChanged and, when the text is the same, the answer is { unchanged: true, contentHash, content: "", tokens: 0, tokensSkipped }: your agent keeps its copy and reads nothing again (the read is still counted; the skipped tokens count as token savings). A page that changes on every visit (a clock, a counter) never matches, so it always comes back whole. session takes any create option (proxy pool, profile, policy…); recording is off and images/media/fonts are blocked by default. The browser is closed when the call returns.
  • GET /v1/screenshot?url=…&fullPage=&type=&waitMs=&proxyPool= → image. GET /v1/pdf?url=… → PDF.

Challenge detection (bot walls, CAPTCHAs)#

Every snapshot carries challenge: { kind: cloudflare|captcha|access_denied|bot_wall, hint } when the page looks like an interstitial. MCP/tool results prefix the tree with ⚠ CHALLENGE (kind): hint; a challenge event is recorded once per URL and session.challenge goes to your webhook with the live-view link so a human can clear it via takeover. CrawlGenie does not solve CAPTCHAs.

Tools API (function calling with any LLM, no MCP required)#

  • GET /v1/tools?format=openai|anthropic|gemini|json — the same tools as MCP, as JSON Schema in your provider's shape. Pass them straight to tools= / input_schema / functionDeclarations.
  • POST /v1/tools/:name { ...args } → { content, text, is_error, session_id }. Feed text back to the model as the tool result. Send x-crawlgenie-agent: <any id> so the server keeps a default session per agent run; or pass session_id explicitly.
  • Former names keep working: POST /v1/tools/vessel_extract and /v1/tools/vessel_help run crawlgenie_extract and crawlgenie_help, and the x-vessel-agent header is read when x-crawlgenie-agent is absent. New code should use the new names; the tool list shows only those.

Hooks (automatic savings in coding agents)#

  • POST /v1/hooks/claude-code takes Claude Code's hook event JSON as the body (the plugin's HTTP hooks send it with Authorization: Bearer <key>) and answers with Claude Code's hook output JSON: PreToolUse WebSearch → denied with the research answer as the reason; PreToolUse WebFetch of a document, a YouTube video or a host WebFetch failed on → denied with CrawlGenie's read; PostToolUse WebFetch that failed → updatedToolOutput in WebFetch's own shape; PostToolUseFailure WebFetch → additionalContext; PostToolUse Bash over about 4,000 tokens (opt-in) → a compressed updatedToolOutput; SessionStart → additionalContext with the project's work-memory notes. Anything else, any error and any answer slower than 30 seconds is {}, so the agent's own tool runs. Reads and searches are metered and show in the activity log as hook <event> <tool>. /v1/hooks/codex, /cursor and /gemini-cli are reserved for those agents' hooks.
  • web_research takes no_browser: true: plain downloads only, answered within about 25 seconds, no browser minutes (pages that need a browser are skipped). The hooks use it. A search (not given urls, not a recency search) now stops reading once the sources kept already cover every topic word of the question, and says so; read_all: true reads every source up to max_sources.
  • POST /v1/hooks/codex, /gemini-cli and /cursor take those agents' own hook events and answer in their own formats (Codex: Claude Code's shape, decision: "block" to replace a command's output; Gemini CLI: decision: "deny" with reason, hookSpecificOutput.additionalContext; Cursor: permission, agent_message, additional_context). Those agents run command hooks, so /downloads/crawlgenie-hook.mjs forwards the event: node crawlgenie-hook.mjs install codex|gemini-cli|cursor adds its entries to that agent's hook file (a copy of the old file is kept) and uninstall takes them out. Claude Code runs session-start hooks only as commands, so the plugin's session start is a small script that posts to this endpoint; an http hook on that event never runs. ?brief=1 on the endpoint still adds the brief-answers instruction, and /crawlgenie:brief now adds the same instruction with a local command, without calling the server. /crawlgenie:auto-compress matches Bash|PowerShell.

Snapshot options and token metering#

Every snapshot (and the one returned after act/navigate) accepts { mode, maxChars, delta }. Session-level defaults come from snapshotDefaults at creation (e.g. { "delta": true }). delta: true returns only lines added/removed since the previous snapshot of the same page, prefixed [+]/[-]; the server falls back to the full tree when most of the page changed or refs were renumbered (reload/navigation), so refs stay usable. SessionInfo.usage reports observationTokens, observationTokensRaw, tokenSavingsPct, estimatedSavingsUsd.

MCP#

POST /mcp (Streamable HTTP). Tools: browser_create_session browser_list_sessions browser_close_session browser_navigate browser_snapshot browser_click browser_type browser_press_key browser_select_option browser_scroll browser_go_back browser_wait browser_act browser_screenshot browser_extract_text browser_extract_links browser_tabs browser_list_routines browser_run_routine browser_save_routine browser_list_secrets browser_save_profile. A connection gets its own default session on first use; pass session_id to target another.

Claude Code: claude mcp add --transport http crawlgenie https://crawlgenie.com/mcp --header "Authorization: Bearer KEY", or install the plugin (claude plugin marketplace add crawlgenie/crawlgenie-plugins and claude plugin install crawlgenie@crawlgenie, key in CRAWLGENIE_API_KEY; the public repository is github.com/crawlgenie/crawlgenie-plugins) to get the server plus the web, new-agent, test-agent, watch and agent-definition skills; download: /downloads/crawlgenie-claude-code-plugin.zip.

Web tool names over MCP (since 2026-10-29): web_research, web_answer and read_many are listed as web_search_crawlgenie, web_fetch_crawlgenie and web_fetch_many_crawlgenie, with descriptions that open with "Search the web." / "Fetch a URL." (a model picks a tool by its name and first sentence; Claude.ai does not pass server instructions to the model). Calls by the old names still work. Web answers can end with one suggestion line ([crawlgenie · read 3 times this week: watch it instead? …], a long document → knowledge_add, the same web_research question twice in a week → agent_plan), shown once per page or question per 30 days (REST and MCP alike). The plan-usage line appears at most once per half hour; lines added to results state facts (work memory counts, a saved product) and never tell the model what to do. The everyday tools (web_search_crawlgenie, web_fetch_crawlgenie, crawlgenie_extract, monitor, work_memory, agent_plan) carry _meta: {"anthropic/alwaysLoad": true}, so Claude loads them up front instead of behind its tool search; with /mcp?for=code (the Claude Code plugin and command) docs_answer does too. The others are found by tool search, and answers name the follow-up tool. In the chat profile browser_search is not listed (one search tool there); REST and the full profile keep it. REST (/v1/tools/*), GET /v1/tools?format=… and the SDKs keep the old names.

ChatGPT search and fetch (since 2026-10-29): ChatGPT's deep research and company knowledge use only connectors with two read-only tools named search and fetch. On a ChatGPT connection (its OAuth client, the openai-mcp user agent, or /mcp?for=chatgpt) CrawlGenie adds them in OpenAI's compatibility shape: search { query } answers one text item holding {"results": [{"id", "title", "url", "text"}]} (the id is the page URL; metered as a search), and fetch { id } answers {"id", "title", "text", "url", "metadata"} with the page read as by web_answer (metered as a read, with its token savings line). Other clients never see them. The server's serverInfo carries title, description, websiteUrl and an icon, and its version is the package version plus a hash of the tool list (0.10.0+3f2a9c1b), so a client that caches tools by version refreshes when they change. Read-only tools carry destructiveHint: false and idempotentHint: true.

Profiles: /mcp/core (or /mcp?profile=core) lists web_answer web_research read_many docs_answer crawlgenie_extract agent_plan agent_create work_memory plus crawlgenie_tools { query? | name? } (find a tool, or one tool's parameters) and crawlgenie_call { tool, args } (run it with its own validation, plan gates and approvals): 2,597 tokens of definitions per message against 6,854 for chat and 9,390 for full (2026-10-27). web_answer and read_many take no_browser: true: a plain fetch only, no browser minutes; a page that needs a browser says so instead of opening one. agent_plan takes section: "brief" | "manifest" (brief 569 tokens against 4,643 for both, on a two-filter Slack job). /mcp (or /mcp?profile=full) lists every tool; /mcp/chat (or /mcp?profile=chat) lists the 17 tools a chat app needs: web_answer web_research read_many site_answer job browser_search crawlgenie_extract company_profile monitor knowledge_add knowledge_search compress crawlgenie_help browser_navigate browser_act browser_snapshot browser_screenshot. Same authentication, same quotas; an unknown profile name gives the full list.

Free+ rewards (signed-in workspace): GET /v1/rewards returns { link, freePlus, plan, minutes: { free, freePlus }, invites: { pending, qualified, notCounted }, reviews, confirmEmail }; POST /v1/rewards/review { url } sends a review link (https, a known review site; one pending at a time, five in total; 400 / 409 / 429 otherwise); POST /v1/rewards/verify-email sends the confirmation e-mail again (once a day). Sign-up takes invite (POST /auth/signup { …, invite }, /auth/google?invite=). Admin key: GET /v1/admin/rewards, POST /v1/admin/reviews/:id { approve, note? }, POST /v1/admin/orgs/:id/free-plus { grant, reason? }. A workspace with Free+ that is set to free (for example when a paid plan ends) resolves to free_plus.

Reading blocked pages: when a page blocks automated reading or cannot be reached, /v1/scrape and web_answer read the Internet Archive's newest copy instead; the result has via: "archive" and archivedAt (YYYY-MM-DD), and web_answer says so in its first line. A page with no readable copy returns challenge ("cloudflare", "captcha", "access_denied", "bot_wall" or "empty" for a nearly blank page) instead of the wall's text.

The running build: GET /version answers { commit } with no key.

Search engines: GET /v1/admin/search-health (admin key) lists each engine (kind fetch/browser/api, successes and failures this month, paused until, last error) and the cache size. Engines that block are paused (15 min, doubling to 6 h); results are cached 30 min (past day) to 12 h (no time filter).

Keyless trial: /mcp/try needs no key (only when public tools are on). It lists web_answer web_research compress crawlgenie_help, ignores session_id, runs as the lowest-priority public owner (no private addresses, the free share of browsers, at most 3 trial calls at once). POST /v1/try/address (no key) returns { url, perHour, perDay, validDays }, a personal address /mcp/try/<code>: a signed code valid 30 days, at most 5 per visitor address per day (429 after). Limits count per personal address: 10 calls an hour and 30 a day; an unknown or expired code is 404. Plain /mcp/try still works, limited per caller address, which chat apps share. The trial also has a daily cap across all addresses. Each result ends with a line giving the calls left and the sign-up link; over the limit the call answers with the way to a free account instead of an error.

Accounts and API keys#

  • GET /auth/me → { user, org, onboarded, signup, google } for the signed-in dashboard (public; user: null when signed out).
  • POST /auth/signup { email, password, org? } → 201 and a session cookie. POST /auth/login, POST /auth/logout. Google sign-in: GET /auth/google.
  • Forgotten password: POST /auth/forgot { email } always answers 200 with the same message (it never reveals whether an account exists) and e-mails a link to /reset-password?t=<token>; POST /auth/reset { token, password } sets the password and signs in. The link is signed, works for one hour and only once (it stops working when the password changes); 5 requests per hour per network, 3 per address, one e-mail per account per 10 minutes.
  • GET /v1/keys, POST /v1/keys { name } → { key, id, prefix, … } (the key is returned once and stored only as a hash), DELETE /v1/keys/:id.
  • Keys look like vk_…. Everything a key or a member creates belongs to the workspace: a workspace sees only its own sessions, approvals, profiles, routines, secrets, watches, memory and stats, and a session id from another workspace answers 404.
  • PUT /v1/me/onboarding { done } (cookie session) records that the first-run onboarding was finished.
  • PUT /v1/me/timezone { timezone } (cookie session) records the browser's IANA time zone for the workspace: an owner's always, a member's only while the workspace has none. Agents saved with a schedule that names no zone use it; 400 for a zone that is not a real one.

Plans, usage and billing#

  • GET /plans (public) → the plan catalogue: { id, name, priceUsd, priceUsdYear, maxSessions, monthlyMinutes, quotas, limits, features }. The same numbers as crawlgenie.com/pricing.
  • GET /v1/billing → { org, plan, usage: { minutes, minutesLimit, running, maxSessions, sessions, actions, capacity, resetsAt }, plans[] (with upgradeUrl, upgradeUrlYear), subscription?, portal }.
  • Limits: live browsers → 429 quota; monthly browser-minutes → 402 plan_minutes_exhausted; reads, searches or agent runs → 402 plan_limit; a feature outside your plan (alerts, schedules, isolated tier, proxies) → 402 plan_feature. Each 402 carries an upgradeUrl.
  • Agent e-mails a day: usage.capacity.limits.agentEmailsPerDay (0 = no cap) and usage.capacity.used.agentEmailsToday (UTC day). Over the cap an agent run still succeeds; its deliver step to email is ok with a note starting "e-mail not sent". The capabilities manifest (GET /v1/agents/capabilities) carries limits.agentEmailsPerDay.
  • Payments go through Paddle (merchant of record). POST /v1/billing/portal → a one-off customer-portal link (invoices, payment method)
  • GET /v1/billing → subscription adds nextAmount, currency and startedAt; status is past_due while Paddle retries a failed renewal (the plan stays). GET /v1/billing/invoices → { invoices: [{ id, number, billedAt, amount, currency, status, failed, kind, card }], available }, newest first; GET /v1/billing/invoices/{id} → { url }, a short-lived link to that invoice's PDF (this workspace's own transactions only).
  • Admin: GET /v1/admin/billing/paddle?org= → the Paddle setup check (keys, prices, the webhook destination and the events it does not send, recent deliveries, one workspace's stored and live subscription, problems); POST /v1/admin/billing/paddle/events adds the missing events to the destination. once the workspace has paid; POST /v1/billing/cancel { reason? } cancels at the end of the paid period and POST /v1/billing/resume undoes it (both 404 no_subscription when nothing is linked). POST /v1/billing/change { plan, cycle?: "month" | "year", confirm? } switches the existing subscription to another paid plan or cycle: without confirm it answers { preview: { action: "charge" | "credit", amount, currency, next, nextAt } } from Paddle's preview (prorated now, then each renewal); with confirm: true it changes the same subscription (prorated_immediately, on_payment_failure: prevent_change, a scheduled cancellation removed first) and the plan moves at once (400 bad_plan for Free, which is a cancellation; 400 no_price; 409 past_due; 402 paddle_refused when the card fails).
  • E-mail preferences: GET/PUT /v1/me/mail { usageAlerts } (cookie session). Every alert has a one-click unsubscribe link.

OAuth 2.1 for MCP connectors (ChatGPT, claude.ai, Claude Desktop, Cursor, Gemini CLI)#

CrawlGenie is an OAuth 2.1 authorization server for its own MCP endpoint: GET /.well-known/oauth-authorization-server, GET /.well-known/oauth-protected-resource (also returned via WWW-Authenticate on a 401 from /mcp), POST /oauth/register (dynamic client registration), GET|POST /oauth/authorize (consent page: dashboard session, email + password, or paste an API key), POST /oauth/token (authorization_code + PKCE S256), POST /oauth/revoke. Access tokens are ordinary workspace keys named oauth:<client> — revoke them under API keys. Platforms that only support token-in-URL can use /mcp?token=<key>.

Tools that save the most tokens#

  • web_answer { url, question?, max_tokens? (default 600 with a question, stretching to 1,500 when more of the page matched; 6,000 without) } — page or document → only the passages that answer, with the token savings line [crawlgenie · 1,493 tokens · 27,599 measured for the whole page (94% saved)]. Both numbers are counted by CrawlGenie on the text it fetched, with the o200k tokenizer (GPT-4o family); Claude's and Gemini's tokenizers land within about 10% of it. With a question and no max_tokens, a read aims for 800 tokens and goes up to 1,500 when matching passages or an asked table would be cut, and says so in its last line. An explicit max_tokens is a hard limit. A short page is shown whole. Link addresses are left out unless the question asks for links, which the last line says; with format: "json" the reply also has links_left_out: true. A page that describes one thing in its structured data (recipe, job, event, product and so on) shows it first.
  • read_many { urls (≤10), question?, max_tokens? (default 600 per page with a question, 1,200 without, at most 3,000) } — several pages in one call: each page's lead, or only the passages that answer the question; one read per page.
  • site_map { url, search?, limit? } — the URLs of a site (sitemap + links), optionally filtered; no page content read.
  • site_answer { url, question, limit? (default 25), wait_seconds? } — crawl a site or section and answer one question from every page read; each page is one read. Returns the crawl id when it is still running.
  • job { id, action: status|answer|cancel, question? } — progress, an answer across the pages read so far, or cancel, for a crawl.
  • company_profile { domain, name?, linkedin?, include? } — contacts and social links, website technology, recent news and (with the slug) the LinkedIn page, in one call; one agent run per section, no model.
  • compress { content, kind?, query?, max_tokens? } — the same code-only shrinking as POST /v1/compress for content the model already holds and will store, forward or reuse; counted on the Token savings page.
  • monitor { action: create|list|check|update|history|delete, url? | kind + input?, every?: hour|6h|day|week, email?, alert_when?, paused?, keep_table?, id? } — update changes a watch (how often, its condition, e-mail, pause, its table, name, input); history lists its last 10 runs and names its table.
  • table { action: "send", table | rows, to, with? } — sends a table's rows (or rows) to a connected app: to is the connection or app name, with the app's action and its fields ({ action: "upsert", spreadsheetId, sheet }); the same checks and meter as POST /v1/connections/:id/send.
  • crawlgenie_help { question } — a question about the workspace's own savings ("how much did CrawlGenie save me") answers with the Token savings numbers for 7, 30 or 90 days, and with the report link when asked (one link per period, reused).
  • ai_visibility { action: suggestions|track|dismiss|refresh, brand, texts? } — the prompts the monthly check suggests: list them, track them by id (or ["all"]), dismiss them, or check now. List fields also accept one string (a JSON array, one per line, or comma-separated names).
  • monitor { action: create|list|check|delete, url? | kind + input?, every?: hour|6h|day|week, email?, id? } — watches from chat: create takes the first snapshot, check runs one now and returns the change. Same quotas as /v1/watches.
  • web_research { question, max_sources? (default 4), max_tokens? (default 1,500), recency? } — search → open the best sources → focus, one call; results not opened follow with their snippet.
  • Structured output for code: format: "json" on web_answer ({ url, title, published, via, focused, text, truncated, shield, completeness, feeds, site, crawlgenie }), read_many and web_research ({ sources: [{ n, title, url, published, text }], skipped, crawlgenie }; max_tokens is the whole reply on both formats, and crawlgenie.sources_not_shown says how many sources did not fit) and crawlgenie_extract (columnar: { summary, columns, rows: [[…]], same, empty, same_and_empty?, total, next: { handle, offset }, crawlgenie }; same_and_empty: "on the rows shown" when only part of the list is shown, and cut cells end in …); crawlgenie carries the receipt as numbers (tokens, saved_pct, model_tokens: 0). tokens counts the whole reply the model reads (title, notes, other results and hints included; only the token line itself is left out). Added fields: last_edited on web_answer for wiki pages (their published is null: a wiki's structured date is when the page was created), sources_cut on web_research and read_many when the budget cut sources short, and passages_not_shown on web_answer when matching passages did not fit max_tokens. The reply text is the JSON itself; POST /v1/tools/{name} also returns it parsed as json.
  • 2026-11-06: structured_data gives no row for a page that is gone: dead: [{ url, status }] beside the rows (404, 410, or 200 where the title or heading says not found) and refused: [{ url, status }] for a page that refused the read, both named in summary. web_items treats such pages as unread.
  • 2026-11-05: ready-made agent web_items { what, kind? (recipe|job|event|product|article|place|course|book|any), site?, max? (≤25), subscribers? }: items found anywhere and read in full (typed fields from the page's schema.org data). structured_data rows carry typed fields (Recipe: rating, reviews, total_time, servings, calories, ingredients, method, category, cuisine, diet; JobPosting: company, location, salary, employment_type, date_posted; Event: start, end, location, organizer; Product: price, currency, availability, brand, sku; Article: date, author, publisher; access is subscribers only when the page says so) and leave out page furniture unless types asks for it. Agent step keep takes limit (1–500) and by (a column): that many rows go on per run, the best first, the rest wait. MCP table action next researches the row by default on tables with field instructions (with: { research: false } turns it off). A task's table takes another list only when it is about the same company, site or topic.
  • crawlgenie_extract { kind, input, max_rows? (default 25) } — structured rows instead of browsing. When there are more rows, the reply ends with a handle: crawlgenie_extract { handle, offset } returns the next rows from the kept result (a day) without running the extractor again and without counting a run; sort_by, order and filter apply to a handle too. A run that takes longer than about 45 seconds (local leads with contacts, several cities) answers with a handle at once and keeps running; the same crawlgenie_extract { handle } says it is still running, then returns the rows. filter keeps rows where a cell contains the text as whole words (a plural s or es allowed): "Nature" does not match "signature". browser_snapshot { max_tokens? (default 6,000) }. crawlgenie_extract, read_many and web_research take format: "json" for code: rows as { same, empty, columns, rows: [[…]] } (column names once, values the same on every row stated once; measured 4% smaller than the text table and 16% smaller than one object per row; passages in JSON are ~9% bigger than text) and sources as { sources: [{ n, title, url, published, text }] }, each with the token line as a crawlgenie field; browser_extract_text { q }. Crawl: GET /v1/crawl/:id/answer?q= (passages with source URLs across all pages), GET /v1/crawl/:id/export?format=jsonl|md|csv|pdf.

Knowledge base (retrieval without a model)#

GET /v1/knowledge → { collections[], docs, chunks } (built-in crawlgenie-docs is visible to everyone) · POST /v1/knowledge { name, description? } → 201 collection · GET /v1/knowledge/:id (with documents) · DELETE /v1/knowledge/:id. POST /v1/knowledge/:id/documents { url | urls[] | text | base64+filename | crawlId | watchId, title?, session? } → { added[] {id, title, source, chunks, tokens, changed, via, error?} } (pages via a one-shot browser, documents/Google Docs/YouTube via the parsers; re-adding an unchanged source is a no-op) · DELETE /v1/knowledge/:id/documents/:docId. POST /v1/knowledge/search { q, collections?, limit=8, maxChars=6000, includeDocs=false } and POST /v1/knowledge/:id/ask { q, … } → { hits[] {collection, title, source, heading, text, score, tokens}, text, tokens, tokensSources, savingsPct }. SQLite FTS5 (BM25, porter) — no embeddings. MCP: knowledge_add, knowledge_search, crawlgenie_help; work_memory { action: "delete", id } with a collection's name or id deletes the collection (the Work notes collection only note by note).

Docs and help (public, no key)#

GET /help/docs.json (sections) · GET /help/docs/:slug → { title, section, toc, markdown, tokens } · GET /docs/:slug.md (raw) · GET /llms.txt, GET /llms-full.txt · GET /help/search?q= → ranked snippets · POST /help/ask { q, maxChars? } → { answer, hits, links, tokens, confident } — retrieval only, the same engine as the dashboard's Ask CrawlGenie; embed it on your own site.

Files for agents#

GET /v1/assets → { assets: [{ name, filename, mime, bytes, createdAt }], maxBytes } · PUT /v1/assets/:name with the bytes (application/octet-stream, ?filename=logo.png) or JSON { filename, base64 } → 201 { asset, use } · DELETE /v1/assets/:name. A saved file is attached to a file input with the upload action { "type": "upload", "ref": "e12", "files": [{ "id": "asset:logo" }] } in any session of the workspace and by the AI browser task. Images, PDF, text, CSV, JSON, Office documents, short videos and ZIP, at most 5 MB each; the plan caps the count (limits.assets in pricing.json: Free 5, Pro 50, Team 200), 402 plan_limit beyond it. browser_sign_in takes login (a shared login) and sites: a person approves that list once (an approval of type use_login), then the login works on those sites only for the rest of the session.

BotGenie tips and notices (with a key)#

GET /v1/insights/tip?page=/agent → { tip } (one suggestion for that page, or null) · POST /v1/insights/tip/:id { action: dismiss | done }. GET /v1/notices → { notices: [{ id, kind: agent_failed | review, title, text, href, createdAt }] }: alerts that need a person, newest first. POST /v1/notices/:id { action: open | seen | dismiss } → { ok } marks one seen for the workspace; its e-mail is then not sent. An unseen notice is e-mailed once after the grace period (10 minutes), and not at all when its cause is gone (the review was answered, a later run worked).

Multi-source answers, documents, privacy, cache#

POST /v1/answer { urls[] (≤10), q, maxChars?, session? } → per-URL passages (pages or documents) + combined text, tokens, tokensFull. /v1/parse and /v1/scrape accept pages ("1-5,9", PDF), granularity: passage|sentence (with q), redactPII (emails, phones, Luhn cards, IBAN, SSN, public IPs → placeholders, counts in pii). Document kinds: PDF (text or OCR), DOCX, XLSX, PPTX, ODT/ODS/ODP, RTF, images (OCR), text; Google Docs/Sheets/Slides, Drive, Dropbox and GitHub blob links are rewritten to their export/raw form. /v1/scrape cache: fresh|prefer|only + maxAgeSec serves this owner's last copy of a URL with zero outbound requests (cache: {hit, ageSec}; only → 404 cache_miss). Markdown/text scrapes are remembered per owner+URL.

Signed agent identity (Web Bot Auth)#

GET /.well-known/http-message-signatures-directory (Ed25519 JWK, signed) · GET /v1/identity → { kid, publicJwk, directoryUrl, agentUrl, enabledByDefault }. Sessions with policy.signedAgent: true (or the workspace default) send Signature-Agent, Signature-Input, Signature (RFC 9421, tag web-bot-auth) on navigations.

Web agents: structured results and batches#

POST /v1/agent/run { task, url?, schema?, session?, maxSteps=20, keepSession } → 202 run; schema (JSON Schema or an example object) is enforced in the instructions so result comes back in that shape. POST /v1/agent/batch { task? | items[{task?,url?}], urls[]?, schema?, session?, maxSteps=15, concurrency=3 } → 202 { batchId, count, runs[], statusUrl }; GET /v1/agent/batches/:id → counts, per-item results, total usage. Model: the workspace's own (Your model, PUT /v1/llm), with the goal model when one is set.

GET /v1/watches/:id/series → { keys[], points[] {runId, at, changed, summary, metrics{count, newRows, <extras like scores.seo>, avg.<numeric column>}} }. GET /v1/watches/:id/report?format=md|json&days=7 → latest run, trend table (start vs latest), alerts, new rows in the latest run.

Research and streaming agents#

POST /v1/research { question, depth=quick|standard|deep, urls?, maxTokens=3000, synthesize=false } → { sources[] {url, title, passages, tokens, tokensFull}, evidence (numbered, cited), otherResults[] {title, url, snippet} (results not opened), tokens, tokensFull, report? }. A wiki source also carries lastEdited. Retrieval only by default; synthesize: true writes a short cited report with the workspace model key from the evidence alone. POST /v1/agent/run?wait=1&timeoutSec=180 blocks until the run finishes; GET /v1/agent/runs/:id/stream is Server-Sent Events (step, ping, done).

Idempotent runs#

POST /v1/agent/run accepts idempotencyKey: the same key within 24 hours returns the existing run (200, idempotent: true) instead of starting another, so a retried request never starts the same work twice.

Section: Build · This page as markdown · Questions? hello@crawlgenie.com