Quickstart · revised 30 Aug 2026
Publish an HTML document
1. Prerequisites
Create a scoped API token and save a UTF-8 HTML file as report.html.
2. Send the request
curl -X POST https://api.example.test/documents \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: text/html; charset=utf-8" \
--data-binary @report.html
3. Confirm success
Expect HTTP 201 with id, url, and created_at.
Troubleshooting
| Status | Check |
|---|
| 401 | Token exists, is unexpired, and has document:write scope. |
| 415 | Content-Type is text/html and the body is the raw file. |