Authentication
Every request uses one platform key. Keep it server-side.
Authorization: Bearer bdy_live_…
Platform reference
One key, one grammar, one bill. Start with Web Fetch — the same patterns unlock every service that ships next.
Every request uses one platform key. Keep it server-side.
Authorization: Bearer bdy_live_…
Predictable resources. Guess the endpoint, guess the method.
GET /v1/{service}/{resource}
GET /v1/web/fetch?url=https://example.comSuccess and error always share the same skeleton.
{
"data": { … },
"meta": { "request_id": "req_…", "ms": 1421 }
}
{
"error": {
"code": "unauthorized",
"message": "…",
"request_id": "req_…",
"docs": "/docs"
}
}Live routes on the public API today.
/v1/web/fetchFetch a URL and return clean title, text, markdown, and links.
/v1/documents/extractUpload a PDF, TXT, MD, CSV, or HTML file — get clean text and markdown.
/v1/keysCreate an API key for the current workspace.
/v1/keysList keys (prefixes only — never the secret).
/v1Platform index and service status.
Every call needs Authorization: Bearer bdy_… (or a console session cookie). Parameters:
urlrequiredA public http(s) URL, passed as a query parameter. Private and link-local targets are rejected.
formatoptionalReserved. Responses always include text and markdown today.
filedocumentsMultipart part for documents.extract — PDF, TXT, MD, CSV, or HTML, up to 20 MB. Extraction is stateless; nothing is stored.
Enforced at the API — plan for them, don’t discover them.
60 requests/min per IP on /v1 · 10/min for key creation. 429 responses include Retry-After.
Public http(s) only. Loopback, private, link-local, and cloud-metadata ranges are rejected at every redirect hop.
Up to 5 hops, each re-validated before connecting.
5 MB per fetch — larger responses are rejected.
15 seconds per fetch.
Every error shares one envelope and a stable code — branch on the code, not the text.
unauthorized401Missing or invalid API key.
invalid_request400 / 403Bad parameters, non-http(s) URL, or a blocked (private) target.
not_found404No such route.
method_not_allowed405Wrong method — see the Allow header.
upstream_failed502The target site couldn't be reached or fetched.
rate_limited429Too many requests — retry after the given seconds.
internal_error500Something broke on our side. Retry with the request_id handy.
Try the playground first — then email us if something’s broken.