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
- You want documentation as a step in a script or a build you already have.
- You work in a language nothing else here covers.
- You want to document many files at once, on your own schedule.
Setting it up
- 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.
- 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.
- 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.
- 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
- JSON back with a documentation field holding the markdown.
- The same structure the web app produces. Nothing about the output is downgraded over the API.
- Each file documented costs one generation from your monthly allowance.
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 →