Hanzo
OpenapiLegal

Record that a generated document's signature request completed

Records completion of the signature request opened over a generated document and answers the document with a `signed` flag.

POST /v1/legal/documents/{id}/sign/complete

Addresshttps://api.hanzo.ai/v1/legal/documents/{id}/sign/complete
MethodPOST
Operationpost_legal_documents_by_id_sign_complete
AuthAuthorization: Bearer $HANZO_API_KEY

Records completion of the signature request opened over a generated document and answers the document with a signed flag.

The e-sign provider's own status is consulted FIRST and is the default answer; an explicit signed field in the body overrides it. That override is the whole point: the default manual provider never self-completes, so a reviewer (or a real provider's webhook) is what moves the document. A completion flips the document to signed, stamps signedAt, and writes a legal.document.signed audit event; a provider still reporting incomplete answers 200 with the document unchanged, so the call is safe to repeat and never fabricates a signature.

Org-scoped and fails closed: a validated principal is required (403 without one), the document is read under the caller's OWN org so another tenant's id is a 404, a document with no open signature request is a 400, and a provider whose status call errors is a 502.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo legal documents sign complete <id>

Legal API · All Hanzo APIs · Interactive reference

How is this guide?

On this page