Envelope
Every endpoint shares one response envelope:
| Case | HTTP | Body |
|---|---|---|
| Sync success | 200 | { "success": true, "data": …, "meta": { … }, "credit_cost": 1 } |
| Async accepted | 202 | { "success": true, "data": { "job_id": "…", "status_url": "…" } } |
| Error | 4xx/5xx | { "success": false, "error": { "code": "…", "message": "…" } } |
meta appears only on capture endpoints and contains status_code, the final url
after redirects, duration_ms, and title when available. credit_cost is the
authoritative per-call billing record; it is 0 for failed runs.
Error codes
None of these errors are billed. The exception is an async crawl that fails after some pages completed: those pages are still billed at the normal rate.
| Code | HTTP | Meaning | Next step |
|---|---|---|---|
INVALID_REQUEST | 400 | The request failed schema or parameter validation. | Fix the field named in message. |
UNAUTHORIZED | 401 | The API key is missing, malformed, or revoked. | Create a key in the dashboard and send Authorization: Bearer sk-.... |
INSUFFICIENT_CREDITS | 402 | The team does not have enough credits for this call. | Top up in Billing, or reduce limit for crawls. |
FORBIDDEN | 403 | The key cannot use this endpoint. Common causes are a playground key used outside the dashboard, or a plan limit such as monitor count. | Use a regular API key, or upgrade the plan or remove an existing resource. |
TARGET_BLOCKED | 403 | The target site refused the request, often because of bot protection. | Try another URL. We do not bypass bot protection. |
JOB_NOT_FOUND | 404 | The crawl job does not exist or belongs to another team. | Check the job_id returned by POST /v1/crawl and stop polling. |
NOT_FOUND | 404 | A monitor, check, snapshot, channel, delivery, API key, or artifact does not exist or belongs to another team. | Check the ID, then list resources to find valid ones. |
TARGET_TIMEOUT | 408 | The target page did not finish rendering in time. | Retry with a larger timeout, up to 60 seconds, or set wait_for. |
RATE_LIMITED | 429 | The team exceeded its plan's rate limit. | Wait for Retry-After, then back off. |
INTERNAL_ERROR | 500 | An unexpected error occurred on our side. | Retry with backoff. If it persists, contact support. |
PROVIDER_ERROR | 502 | The upstream capture provider failed. | Retry with backoff. Honor Retry-After when present. |
TARGET_UNREACHABLE | 502 | DNS, TLS, or connection failed at the target. | Verify that the URL is public and reachable. |
credit_cost in the response and in GET /v1/account/activity always shows whether a
call was billed.