Authentication
The public OpenDocs API is hosted at:
https://api.opendocs.cc
Most external integrations use an API key in the Authorization header.
API key authentication
API keys start with:
od_live_
Send the key as a bearer token:
curl https://api.opendocs.cc/api/v1/me \
-H "Authorization: Bearer od_live_xxxxx"
Session authentication
Some endpoints in the wider application use browser session auth for dashboard and workspace management flows. This public reference focuses on the routes that external users can call directly.
Required headers
For JSON requests:
Authorization: Bearer od_live_xxxxx
Content-Type: application/json
Getting a key
- Sign up at opendocs.cc/signup
- Complete onboarding
- Open
Dashboard -> API Keys - Create a key
Common auth failure
If the key is missing, revoked, or malformed, the API returns:
{
"error": "unauthorized"
}
Routes in this public reference
GET /api/v1/usernames/checkGET /api/v1/mePOST /api/v1/publishGET /api/v1/postsGET /api/v1/posts/:postIdGET /api/v1/posts/:postId/rawPOST /api/v1/posts/:postId/updatePOST /api/v1/posts/:postId/unpublishPOST /api/v1/posts/:postId/visibilityPATCH /api/v1/posts/:postId/tags