v1

latestOpenAPI 3.1.02026-07-13250151.3 KB
export

Export workspace data as agent context files: CLAUDE.md, AGENTS.md, .cursorrules, or intent.md.

SUCCESS RESPONSE IS A FILE DOWNLOAD, NOT JSON. claude-md sets Content-Type text/markdown + filename CLAUDE.md, filters out non-substantive intents (evaluateIntentReadiness.isSubstantive) and prepends a <!-- PATHMODE:WARNINGS --> block via getContextWarnings (plus a note when stub intents were filtered). agents-md is identical to claude-md (same agent-agnostic '# Pathmode Intent Context' body) but sets filename AGENTS.md — the native instruction file for OpenAI Codex and modern Cursor. cursorrules sets text/plain + filename .cursorrules. intent-md sets text/markdown + filename intent.md. Intents fetched via INTENT_WITH_RELATIONS_SELECT, sorted updated_at DESC; createdAt/updatedAt/shippedAt/verifiedAt are converted to epoch-millis numbers before generation. 422 and 404 bodies are JSON.

get/api/v1/export

Query parameters

formatstring

claude-md (default) | agents-md | cursorrules | intent-md. Any other value yields 400.

intent_idstring

For cursorrules/intent-md: target a specific intent; if omitted, pickBestIntent chooses one. For claude-md it influences product resolution.

product_idstring

For claude-md: include this product's manifest context (explicit override; else resolved from intent, else first active product).

workspace_idstring

Required ONLY for cookie-session auth (no Bearer key); ignored for API-key auth.

Response

File generated; body is markdown/plaintext (see Content-Type), not JSON.