Overview
Authentication, environments, and the public NextDocs v1 resource model.
NextDocs Public API v1
NextDocs exposes a versioned public API for creating artifacts, managing brands and themes, launching exports, and polling async jobs.
All public endpoints live under /v1. The docs-native API reference
at API Reference is generated from the live OpenAPI
document.
Authentication
All endpoints require an API key. Include it in the Authorization header:
Authorization: Bearer nxd_your_api_key
Create an API key in your API settings.
Public Resources
POST /v1/artifactscreates an artifact synchronously.POST /v1/artifacts/asyncqueues artifact creation and returns a job.POST /v1/exportscreates an export synchronously.POST /v1/exports/asyncqueues an export job.GET /v1/jobs/{id}returns job status and results for async work.GET /v1/embed/{artifactId}returns embeddable artifact payloads.GET /v1/brandsandGET /v1/themeslist reusable styling resources.
Environments
- Production docs should target
https://api.nextdocs.io. - Staging docs should target
https://api.stg.nextdocs.io. - Use the environment-specific API key and base URL that match the workspace you are testing.