Skip to main content

Creating Documents

Learn how to create documents with various configurations for different use cases.

Basic Document Creation

Create a simple document in draft status:
Response:

Adding Signers During Creation

Include signers when creating the document. Each signer can have their own delivery method and signature type:
The response includes signer IDs:
To retrieve a signer’s signing URL, use GET /api/v1/documents/{id}/signers/{signerId}. This endpoint returns the complete signing URL with token.

Company Signers and SMS Delivery

Create documents with company signers and SMS delivery with two-step verification:
For SMS verification before signing, use twoStepVerification: "SMS_BEFORE_SIGNING" combined with your chosen signature type.

Setting Document Metadata

Configure signing workflow and notifications:
Delivery method and signature type are configured per-signer, not at the document level. See Adding Signers above.

Setting Expiration

Make the document expire after 30 days:

Using External IDs

Link to your own system:

Creating from Templates

Use a template to pre-populate fields:

Template Workflow with Form Fields

When creating documents from templates that contain FORM fields with keys, you can fill those fields programmatically. Here’s the complete workflow:
  1. Create document from template (this creates a copy of template fields)
  2. Fill form fields using key-based updates: PATCH /api/v1/documents/{docId}/fields/key:{fieldKey}
  3. Send for signing: POST /api/v1/documents/{docId}/send
Example:
Delivery method and signature type are configured per-signer when adding them, not at send time.
For more details on updating fields, see Update Document Field.

Adding Custom Fields

Include custom field values during creation:

Complete Example: Business Contract

Here’s a complete example creating a business contract with all features:

Next Steps

File Uploads

Upload PDF files to add to your documents

Send for Signing

Learn how to send documents to signers

Signer-Fillable Fields

Let signers fill in fields during signing

Document Fields

Add form fields and content sections

API Reference

Complete API reference for creating documents