Create a document from an uploaded PDF
create_document_from_uploadTurn a PDF you PUT to a create_upload_url url into a GoodSign document. Call this only after the PUT has finished successfully. GoodSign discovers any text tags in the PDF (see create_upload_url for the full TAG REFERENCE and rules) and creates one field per tag plus one signer per distinct signer key automatically. This does NOT send anything or email anyone — the result behaves like a template: check it with get_document, then send it with send_from_template. The created document can only be sent once — to send the same PDF again, upload it again with create_upload_url and call this tool a second time. If the response includes warnings about unreadable tags, fix the tag text in the source document, re-export the PDF, call create_upload_url again and retry. MULTIPLE PDFs IN ONE ENVELOPE (e.g. an NDA plus a contractor agreement, signed together for 1 credit): create the first document normally, then for each extra PDF call create_upload_url, PUT it, and call this tool with attach_to_uuid set to the first document's uuid. Signers see the files in the order they were added. Use the same signer keys across files for the same person — one signer per distinct key across the whole envelope. Send once, with the first document's uuid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_name | No | Optional name for the document, e.g. "SoW - Acme Q3". Defaults to "document". When attaching, this names the added file. | |
| upload_id | Yes | The 40-character hex upload_id returned by create_upload_url, after the PUT to its upload_url has succeeded. | |
| attach_to_uuid | No | Optional. uuid of an unsent document (status template or draft) to add this PDF to as an extra file, instead of creating a new document. Use the uuid returned by an earlier create_document_from_upload call. |