Base URL
OpenAPI
- OpenAPI JSON:
https://api.nylio.app/api/public/v1/openapi.json - HTML docs:
https://api.nylio.app/api/public/v1/docs - Markdown guide JSON:
https://api.nylio.app/api/public/v1/markdown-guide
Authentication
The public API supports two authentication methods. Each request must use exactly one. Sending both a bearer token and an API key in the same request returns400 invalid_request.
OAuth bearer tokens
The public REST API expects bearer tokens for this audience:workspace:readdocument:readdocument:writesearch:read
API keys
For scripts and direct API usage, you can create API keys in the developer settings. Send the key in thex-api-key header:
403 insufficient_scope.
Rate limits
All public API rate limits are enforced per IP address.| Rule | Path prefix | Methods | Requests | Window |
|---|---|---|---|---|
public-api-search | /api/public/v1/search | GET | 30 | 60 s |
public-api-mcp | /api/public/v1/mcp | all | 60 | 60 s |
public-api-read | /api/public/v1 | GET | 120 | 60 s |
oauth-discovery | /.well-known/ | GET | 300 | 60 s |
| Header | Description |
|---|---|
x-ratelimit-limit | Maximum requests in the current window |
x-ratelimit-remaining | Requests remaining in the current window |
x-ratelimit-reset | Unix timestamp in milliseconds when the window resets |
x-ratelimit-rule | Identifier of the matched rule |
retry-after | Present on 429 responses, in seconds |
Covered endpoints
GET /markdown-guideGET /workspacesGET /workspaces/currentGET /documentsGET /documents/{id}POST /documentsPOST /documents/editPOST /documents/replacePOST /documents/exportGET /search
Write semantics
- Read endpoints can access workspaces and documents available to the authenticated user.
- Create, edit, and replace endpoints are limited to personal documents owned by the authenticated user.
- Document write endpoints use Nylio enhanced markdown.
- Create, edit, and replace responses return compact document summaries. Call
GET /documents/{id}to read the full body. - Export returns standard markdown text or base64-encoded binary payloads for PDF and DOCX.