API reference
CrawlDex API
Use the API to resolve what a user wants, inspect whether a website task is agent-doable, preflight the route before acting, and report redacted outcomes after the run.
Contract
OpenAPI
machine-readable spec
Loop
4 calls
resolve -> inspect -> preflight -> report
Evidence
redacted
no secrets or private data
Copy this
GET /openapi.json
OpenAPI endpoint
https://crawldex.com/openapi.json
Give this URL to an agent, SDK generator, API client, or documentation tool when it needs the full CrawlDex contract.
What it is for
Agent task reliability
Before acting
POST /api/v1/preflight
Preflight a route
curl -sS -X POST https://crawldex.com/api/v1/preflight \
-H "content-type: application/json" \
-d '{
"site": "example.com",
"task": "subscriptions.cancel"
}'
After acting
POST /api/v1/runs
Report an outcome
curl -sS -X POST https://crawldex.com/api/v1/runs \
-H "content-type: application/json" \
-H "x-crawldex-agent-key: $CRAWLDEX_AGENT_KEY" \
-d '{
"site": "example.com",
"task": "subscriptions.cancel",
"outcome": "success",
"friction": [],
"steps": 12,
"duration_sec": 90
}'
Do not submit passwords, cookies, payment data, private screenshots, or unredacted user content.
Endpoints