DocsAutomator eSign API Reference

The DocsAutomator eSign API allows you to programmatically manage signing sessions, retrieve signing links, track progress, and access audit trails.

Authentication

All API endpoints require authentication via API key in the header:

Authorization: Bearer YOUR_API_KEY

Base URL

https://api.docsautomator.co/esign

Session Management

List Signing Sessions

Retrieve a paginated list of signing sessions for your workspace.

GET /esign/sessions

Query Parameters

Parameter
Type
Required
Description

status

string

No

Filter by status: pending, in_progress, completed, expired, cancelled, declined

page

number

No

Page number (default: 1)

limit

number

No

Results per page (default: 20, max: 100)

email

string

No

Search by signer email (case-insensitive partial match)

Example Request

Response


Get Session Details

Retrieve detailed information about a specific signing session.

Path Parameters

Parameter
Type
Description

sessionId

string

The signing session ID

Example Request

Response


Retrieve signing links for all signers in a session. Useful for manual delivery mode where you distribute links yourself.

Example Request

Response


Get Audit Trail

Retrieve the complete audit trail for a signing session, including all events in chronological order.

Example Request

Response

Event Types

Event Type
Description

session_created

Signing session was created

invitation_sent

Invitation email sent to signer

link_opened

Signer opened the signing link

document_viewed

Signer viewed the PDF document

consent_given

Signer gave e-consent

field_submitted

Signer submitted a field value

signer_completed

Signer completed all their fields

session_completed

All signers finished, signed PDF generated

reminder_sent

Reminder email sent

session_cancelled

Session was cancelled

session_declined

Signer declined to sign

session_expired

Session expired


Cancel Session

Cancel a pending signing session. Cannot cancel completed sessions.

Request Body

Field
Type
Required
Description

reason

string

No

Optional cancellation reason

Example Request

Response


Resend Invitation

Resend the invitation email to a specific signer.

Path Parameters

Parameter
Type
Description

sessionId

string

The signing session ID

signerIndex

number

The signer's index (1, 2, 3, etc.)

Example Request

Response


Webhook Events

When webhooks are enabled on your automation, DocsAutomator sends POST requests to your webhook URL for e-signing events.

Session Created (Manual Delivery)

Sent when a signing session is created with deliveryMethod: "manual". Use this to retrieve signing links and distribute them yourself.

Signing Completed

Sent when all signers have completed signing and the final PDF is generated.

Passing Additional Parameters

To receive custom data in webhook notifications, include webhookParams in your document creation request:

These parameters are stored with the signing session and returned in all webhook notifications as additionalParams.


Session Statuses

Status
Description

pending

Session created, waiting for signers

in_progress

At least one signer has started

completed

All signers finished, signed PDF available

expired

Session expired before completion

cancelled

Session was cancelled by admin

declined

A signer declined to sign

Signer Statuses

Status
Description

pending

Invitation not yet sent

invited

Invitation email sent

opened

Signer opened the signing link

signed

Signer completed all fields

declined

Signer declined to sign


Error Responses

All endpoints return errors in this format:

Common Error Codes

Status Code
Description

400

Bad request - invalid parameters

401

Unauthorized - invalid or missing API key

404

Not found - session doesn't exist or doesn't belong to workspace

429

Rate limited - too many requests

500

Server error


Rate Limits

Endpoint Type
Limit

Admin endpoints

500 requests per 15 minutes

Session list

100 requests per minute


Code Examples

Node.js - List and Monitor Sessions

Python - Webhook Handler

Last updated