List legal documents
Lists the gallery's legal documents, newest first. Filter by `status`, `document_type`, or counterparty contact.
Lists the gallery's legal documents, newest first. Filter by status, document_type, or counterparty contact.
Authorization
bearerAuth legal_documents:readA gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).
In: header
Scope: legal_documents:read
Query Parameters
Value in
- "draft"
- "generated"
- "sent"
- "accepted"
- "voided"
Value in
- "loan_agreement"
- "bill_of_sale"
1 <= value <= 10050Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{ "data": [ { "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}Get a legal document GET
Returns the document with its frozen assembled text (once generated) and `missing_answers` — the required interview questions still unanswered against its pinned template version.
Get the frozen PDF POST
Returns a short-lived signed download URL for the document's frozen PDF (generated once; integrity-pinned by `pdf_sha256`). 409 until the document has been generated.