Start a legal document
Starts a draft from a template, pinning the template's current version. Answers can be provided now or filled in via updates as the guided interview progresses.
Starts a draft from a template, pinning the template's current version. Answers can be provided now or filled in via updates as the guided interview progresses.
Authorization
bearerAuth legal_documents:createA gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).
In: header
Scope: legal_documents:create
Header Parameters
Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Start a legal document draft from a template (pins the template's current version).
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{ "id": "string", "document_type": "loan_agreement", "status": "draft", "title": "string", "counterparty_contact_id": "string", "counterparty_name": "string", "template_key": "string", "template_version": -9007199254740991, "template_vetted": true, "jurisdiction": "string", "answers": { "property1": "string", "property2": "string" }, "pdf_sha256": "string", "generated_at": "string", "sent_at": "string", "accepted_at": "string", "voided_at": "string", "created_at": "string", "updated_at": "string"}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}