Base URL https://docsify.dev/api/v1. Every request carries Authorization: Bearer <token>. The API is served to the internal network only; from anywhere else every path under /api/ answers with the site's 404 page.
| Method | Path | Description |
|---|---|---|
| GET | /projects | Projects visible to the token. |
| GET | /projects/{id}/documents | Documents of a project, paginated with cursor. |
| POST | /projects/{id}/documents | Create a document from a JSON body. |
| GET | /documents/{id} | One document with its revision history. |
| POST | /documents/{id}/export | Render a document to PDF or HTML; the job is asynchronous. |
| GET | /jobs/{id} | Status of an export job. |
| Code | Meaning |
|---|---|
| 400 | Malformed request body or parameters. |
| 401 | Expired or revoked token. |
| 404 | Unknown path, or a resource the token cannot see. |
| 429 | Project rate limit exceeded; retry after the interval in Retry-After. |
Each project allows 600 requests per minute per token. Export jobs are limited separately to 20 per hour.