BoudyAI/Docs

Platform reference

Build on BoudyAI

One key, one grammar, one bill. Start with Web Fetch — the same patterns unlock every service that ships next.

Authentication

Every request uses one platform key. Keep it server-side.

Authorization: Bearer bdy_live_…

URL shape

Predictable resources. Guess the endpoint, guess the method.

GET /v1/{service}/{resource}

GET /v1/web/fetch?url=https://example.com

Response envelopes

Success and error always share the same skeleton.

{
  "data": { … },
  "meta": { "request_id": "req_…", "ms": 1421 }
}

{
  "error": {
    "code": "unauthorized",
    "message": "…",
    "request_id": "req_…",
    "docs": "/docs"
  }
}

Endpoints

Live routes on the public API today.

Open playground →
GET
/v1/web/fetch

Fetch a URL and return clean title, text, markdown, and links.

live
POST
/v1/documents/extract

Upload a PDF, TXT, MD, CSV, or HTML file — get clean text and markdown.

live
POST
/v1/keys

Create an API key for the current workspace.

live
GET
/v1/keys

List keys (prefixes only — never the secret).

live
GET
/v1

Platform index and service status.

live

Every call needs Authorization: Bearer bdy_… (or a console session cookie). Parameters:

urlrequired

A public http(s) URL, passed as a query parameter. Private and link-local targets are rejected.

formatoptional

Reserved. Responses always include text and markdown today.

filedocuments

Multipart part for documents.extract — PDF, TXT, MD, CSV, or HTML, up to 20 MB. Extraction is stateless; nothing is stored.

Limits & policies

Enforced at the API — plan for them, don’t discover them.

Rate limits

60 requests/min per IP on /v1 · 10/min for key creation. 429 responses include Retry-After.

Targets

Public http(s) only. Loopback, private, link-local, and cloud-metadata ranges are rejected at every redirect hop.

Redirects

Up to 5 hops, each re-validated before connecting.

Response size

5 MB per fetch — larger responses are rejected.

Timeout

15 seconds per fetch.

Errors

Every error shares one envelope and a stable code — branch on the code, not the text.

unauthorized401

Missing or invalid API key.

invalid_request400 / 403

Bad parameters, non-http(s) URL, or a blocked (private) target.

not_found404

No such route.

method_not_allowed405

Wrong method — see the Allow header.

upstream_failed502

The target site couldn't be reached or fetched.

rate_limited429

Too many requests — retry after the given seconds.

internal_error500

Something broke on our side. Retry with the request_id handy.

Need a hand?

Try the playground first — then email us if something’s broken.