Create an Orchestor document with optional Markdown
Markdown plus a blocks map, as a Claude Docs birth: each <?claude block key?> token in markdown names one entry, {"type":"pending","intent":"<what the section will say>"} (a section still being written; fill it later by replacing its block id with editSpaceDocument) {"type":"paragraph"}, or a chart/diagram block ({"type":"chart","spec","rows","caption"}, {"type":"diagram","spec","caption"}). A token without an entry is refused (bad_request). Example: {"title":"Q4 review","markdown":"# Q4 review\n\n## Summary\n\n<?claude block s1?>","blocks":{"s1":{"type":"pending","intent":"Summary: three lines"}}}.
curl -X POST "https://api.orchestor.io/v1/space/documents" \ -H "Authorization: Bearer $API_KEY" \ -H "X-Workspace-ID: wks_abc123" \ -H "Content-Type: application/json" \ -d '{ "blocks": {}, "markdown": "", "title": ""}'{ "data": { "archived": true, "created_at": "2026-01-01T00:00:00Z", "deleted_at": "2026-01-01T00:00:00Z", "folder_id": null, "id": "<string>", "markdown": "<string>", "parent_id": null, "pinned": true, "sort_position": 0, "tab_name": "", "title": "<string>", "updated_at": "2026-01-01T00:00:00Z", "workspace_id": "<string>" }}Get your Orchestor API key
Create an API key in your workspace settings.
Authorizations
Authentication details
Headers
Workspace to access. With a workspace-scoped API key, the server derives this value from the key, so the header is optional. If supplied, it must match the credential workspace or the request returns 403 workspace_mismatch. For interactive session requests, supply this header to select a workspace where you are a member. A project ID cannot be used as a workspace ID.
"wks_abc123"