API Reference
Base URL https://api.leancrawl.com.
capture
| Path | Summary | |
|---|---|---|
| post | /v1/extract |
Extract structured JSON with a schema or prompt |
| post | /v1/html |
Fully rendered HTML after JS execution |
| post | /v1/links |
All links on a single page |
| post | /v1/map |
Discover site URLs from the sitemap, then page links |
| post | /v1/markdown |
Read a page as clean Markdown |
| post | /v1/pdf |
Page to PDF, returns pdf_url, a 24h pre-signed download URL |
| post | /v1/screenshot |
Page screenshot, returns screenshot_url, a 24h pre-signed download URL |
crawl
| Path | Summary | |
|---|---|---|
| get | /v1/crawl |
List crawl jobs (keyset pagination) |
| post | /v1/crawl |
Start an async crawl job |
| delete | /v1/crawl/{jobId} |
Cancel crawl job |
| get | /v1/crawl/{jobId} |
Crawl job status; add ?include=pages to fetch page content |
monitor
| Path | Summary | |
|---|---|---|
| get | /v1/monitor |
List monitors (keyset pagination) |
| post | /v1/monitor |
Create a periodic change monitor |
| delete | /v1/monitor/{id} |
Delete monitor (cascades checks + snapshots) |
| get | /v1/monitor/{id} |
Monitor detail |
| patch | /v1/monitor/{id} |
Update monitor settings, including pause and resume |
| get | /v1/monitor/{id}/checks |
Monitor check history (keyset pagination) |
| get | /v1/monitor/{id}/checks/{checkId}/diff |
Line diff between adjacent snapshots for a check |
| post | /v1/monitor/{id}/run |
Trigger a manual check now (verify webhook wiring) |
| get | /v1/monitor/{id}/snapshots/{snapshotId} |
Fetch a monitor snapshot as normalized markdown |
account
| Path | Summary | |
|---|---|---|
| get | /v1/account/activity |
Run-level activity log (filters + keyset pagination) |
| get | /v1/account/keys |
List API keys (masked) |
| post | /v1/account/keys |
Create API key (plaintext returned this once) |
| post | /v1/account/keys/{id}/revoke |
Revoke API key |
| get | /v1/account/usage |
Account usage and quota |
| get | /v1/account/usage/daily |
Daily usage aggregation (UTC calendar days, days axis prefilled) |
notifications
| Path | Summary | |
|---|---|---|
| get | /v1/notifications/channels |
List notification channels (secrets/signing_secret excluded) |
| post | /v1/notifications/channels |
Create notification channel (custom signing_secret returned once) |
| delete | /v1/notifications/channels/{id} |
Delete channel (deliveries kept for audit; attached monitors detached) |
| get | /v1/notifications/channels/{id} |
Channel detail |
| patch | /v1/notifications/channels/{id} |
Update channel (url/events/status/config/secrets; channel_type and id are immutable) |
| get | /v1/notifications/channels/{id}/deliveries |
Recent deliveries (latest 50, no pagination) |
| post | /v1/notifications/channels/{id}/deliveries/{deliveryId}/resend |
Resend a delivery (attempts reset, 3-attempt quota restarts) |
| post | /v1/notifications/channels/{id}/rotate |
Rotate the signing secret of a custom channel |
| post | /v1/notifications/channels/{id}/test |
Send a test notification (notification.test event, real delivery path) |
artifacts
| Path | Summary | |
|---|---|---|
| get | /v1/artifacts/{runId} |
Download run artifact (screenshot or pdf) |