REST API

Send code to a web address, get documentation back.

In plain words

Send code to a web address and get documentation back — no library or framework needed.

Put another way: A vending machine: post the code and key in, documentation comes out.

Reach for it when

Setting it up

  1. Get your key: Sign in, open the dashboard, and go to API Keys → Create key — the string starts with writ_ and is shown only once.
  2. Try it from the terminal: Paste the command below with your key in place of writ_YOUR_KEY — documentation back means you're set up.
  3. Send one file: POST to https://scribe.writulos.com/api/generate with header x-api-key: writ_YOUR_KEY and body { code, filename }; markdown comes back in documentation.
  4. Or send up to twenty: POST to https://scribe.writulos.com/api/agent-generate-batch with { files: [{ code, filename }] } for up to 20 files, and get a docs array back.

Test your key:

curl -X POST https://scribe.writulos.com/api/generate \
  -H "x-api-key: writ_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "function hello() {}", "filename": "hello.js"}'

What you end up with

Things people ask

How big can a file be?

Up to 100 KB of text, whatever the extension.

What happens when I run out?

You get a 429 with the days until reset — nothing runs silently, and failed generations aren't charged.

Can I add project context?

Yes — a context field beside code and filename; one sentence about the file's purpose sharpens results.

Try it on one file first.

The web app needs no key or sign-up — see what comes out before you wire anything up. Try it now →