Hanzo
OpenapiLegal

Opens an e-signature request over one document and moves it to…

Opens an e-signature request over one document and moves it to out_for_signature, returning the provider's reference for the request.

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

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

Opens an e-signature request over one document and moves it to out_for_signature, returning the provider's reference for the request.

The provider is whatever this deployment has wired. The honest default is "manual": the request is recorded and the org fulfils it out of band — nothing here fabricates a signature, and the stub never reports itself complete.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the document to send for signature, from the path.
idbodystringID is the document to send for signature, from the path.
signersbodylegalSigner[]Signers are the people who must sign, by name and email.
signers[].emailbodystring
signers[].namebodystring

Response

StatusBodyMeaning
200signReplyok

200 body — 13 fields.

FieldInTypeAlwaysDescription
documentbodydocumentSummary
document.categorybodystringCategory is the template's category: formation, equity, ops or sales.
document.createdAtbodyintegerCreatedAt is when the document was generated, in unix seconds.
document.esignProviderbodystringEsignProvider names the e-signature provider handling it, absent until a signature has been requested.
document.idbodystringID is the document's server-minted handle, "doc_"-prefixed.
document.signedAtbodyintegerSignedAt is when the provider reported completion, in unix seconds.
document.statusbodystringStatus is the lifecycle state: draft, out_for_signature, signed or voided.
document.templateIdbodystringTemplateID is the template it was rendered from.
document.templateVersionbodyintegerTemplateVersion is WHICH version of that template rendered it, so the document is reproducible and auditable.
document.titlebodystringTitle is the document's title, inherited from the template.
document.updatedAtbodyintegerUpdatedAt is when it last changed, in unix seconds.
esignRefbodystringEsignRef is the provider's own reference for the request — what a webhook or a status poll quotes.
providerbodystringProvider names the e-signature provider that took the request.

Failure carries the platform error shape — see Errors.

Examples

hanzo legal documents sign create <id>

Legal API · All Hanzo APIs · Interactive reference

How is this guide?

On this page