Dirigible API reference
Endpoints · Documents
Create a document
Docs / Documents / Create a document
POST
https://node.dirigible.app/v1/documentsRegisters a document from a file you've already uploaded via POST /v1/files. Pass the returned documentPath and url along with the format. Returns the created document.
Authentication
Bearer API key required.
Method
POST · JSON
Sync
Changes appear live in the app.
Parameters
Request body (JSON)
Status codes
200Success. Returns the resource (or an array); a delete returns { "ok": true }.
401Missing or invalid API key.
404The resource wasn't found (or isn't yours).
400Malformed request body.
curl -X POST "https://node.dirigible.app/v1/documents" \
-H "Authorization: Bearer dg_your_key" \
-H "Content-Type: application/json" \
-d '{ "title": "Spec v2", "format": "pdf", "documentPath": "documents/api/…/spec.pdf", "documentUrl": "/api/files/documents/api/…/spec.pdf", "fileSize": 482113 }'curlruns against the live API
Sample response
{ "id": "d1", "type": "document", "title": "Spec v2", "format": "pdf", "fileSize": 482113 }json