Quickstart[01]

Quickstart

Pick a route. Each is a few stops and ends with a check that it worked — the others stay out of your way.

API · 30 sec

Call the API

  1. Get a key

    Sign in, then put the key in your shell. Paste it into the key chip at the top and every command here fills in.

    Sign in and grab a key — every example below fills itself in.

    One Onto account across the dashboard, docs and site. Free tier is 1,000 reads a month and takes no card.

    export ONTO_API_KEY="onto_sk_live_YOUR_KEY"
  2. Read a page

    Nothing to install. Press Run, or paste it in a terminal.

    POST /v1/read[curl]
    curl -X POST https://api.buildonto.dev/v1/read \
      -H "Authorization: Bearer $ONTO_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"url": "https://stripe.com/pricing"}'
  3. It works when

    The response has a markdown field of readable text, and stats.reduction_percent says how much of the page was markup.

    It didn’t work

    401? The key is missing its Bearer prefix, or $ONTO_API_KEY was in single quotes and never expanded.

    Every error carries a stable code — see Error codes.