v1
latestOpenAPI 3.1.02026-07-13250151.3 KBExport 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.
Query parameters
claude-md (default) | agents-md | cursorrules | intent-md. Any other value yields 400.
For cursorrules/intent-md: target a specific intent; if omitted, pickBestIntent chooses one. For claude-md it influences product resolution.
For claude-md: include this product's manifest context (explicit override; else resolved from intent, else first active product).
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.