- API Reference
- API Reference
API Reference
API Reference
OpenAPI-backed reference for the Docsalot CLI and documentation management API
The Docsalot API powers the official CLI and the documentation-management workflows exposed through the dashboard.
Base URL
https://docsalot.dev/api/cli/v1
Authentication
Most endpoints require a bearer token:
curl -H "Authorization: Bearer $DOCSALOT_API_TOKEN" \
https://docsalot.dev/api/cli/v1/documentations
For interactive sign-in, use the device-flow endpoints under /auth/device/*.
What Is Documented Here
Authcovers token validation and the device login flow.Documentationscovers listing docs, fetching manifest metadata, pulling content, pushing changes, publishing versions, and managing custom domains.
Lightweight Editing Flow
- Fetch a documentation manifest to get paths and file metadata.
- Pull only the file paths you want to edit.
- Push only the changed files back as a new version.
See the Document APIs playground guide for a full example.
Custom Domains
Custom domains are available through the same bearer-token API used by the CLI. Use these endpoints when you want to automate customer-owned domains such as docs.yourdomain.com:
GET /documentations/{documentationId}/custom-domainsPOST /documentations/{documentationId}/custom-domainsPATCH /documentations/{documentationId}/custom-domainsDELETE /documentations/{documentationId}/custom-domains