v44

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-05-192301780.0 KB
Legal

Draft a legal document

Generate a legal document with structured inputs. Powered by an agent that handles research, formatting, citation verification, and vault upload. Returns a run ID for polling.

post/legal/v1/draft

Request body

instructionsstring required

What to draft — the core task. E.g., "Motion to compel defendant to produce discovery responses"

output_type'pdf' | 'docx' | 'xlsx' | 'pptx' | 'md'

Output file format

output_namestring nullable

Filename for the output document. Auto-generated if omitted.

citationsboolean

Research and include legal citations

formatstring nullable

Court or jurisdiction formatting hint. Triggers a legal-skills search. E.g., "California Superior Court", "SDNY", "federal pleading"

verifiedboolean

Verify all citations in a loop — re-run verification and repair bad citations until they pass

vault_idstring required

Vault ID where the final document will be uploaded

object_idsstring[] nullable

Vault object IDs to use as source/reference documents

modelstring nullable

LLM model override. Defaults to anthropic/claude-sonnet-4.6

Response

Draft run started

run_idstring

Run ID — poll /agent/v1/run/:id/status for progress

agent_idstring

Ephemeral agent ID

status'running'
messagestring