Developer Platform • REST API v1

Automate Document Execution

Ingest PDFs, orchestrate multi-party signers, place fields programmatically, and stream sealed completion packages directly into your tech stack.

1. Authentication & Headers

Machine-to-Machine API Keys

All automated requests to SignExact endpoints must supply your organization's secret key in the x-api-key or Authorization: Bearer header. You can also supply x-organization-id to restrict machine operations to a specific tenant.

# Required HTTP Headers:
x-api-key: your_api_secret_key_here
x-organization-id: org-your-tenant-uuid (optional)
Content-Type: multipart/form-data (or application/json)

2. Core API Endpoints

Standard RESTful resources with JSON response schemas.

POST/api/documents
Upload PDF & Ingest Envelope

Uploads a raw PDF agreement, registers recipients with unique 256-bit signing tokens, and records the genesis SHA-256 hash.

# cURL Example:
curl -X POST https://signexact.com/api/documents \
  -H "x-api-key: $API_SECRET_KEY" \
  -F "file=@contract.pdf" \
  -F "title=Enterprise Sales Contract" \
  -F 'recipients=[{"name":"Alex Vance","email":"alex@client.com","role":"signer"}]'
POST/api/documents/:id/fields
Define Field Coordinates & Dispatch

Configures field locations on the PDF and optionally dispatches email invitations by setting markAsSent: true.

# Request Payload:
{
  "markAsSent": true,
  "fields": [
    {
      "type": "signature",
      "page_number": 1,
      "x": 92, "y": 486, "width": 140, "height": 40,
      "recipient_id": "rec-uuid-here"
    }
  ]
}
GET/api/documents/:id/download?type=completed
Stream Sealed PDF & Certificate

Streams the completed, digitally sealed PDF package including the embedded X.509 PAdES detached signature and 2-page Certificate of Completion.

3. Webhook Event Notifications

Real-Time Event Dispatch

SignExact emits cryptographically signed JSON webhooks to your designated HTTPS endpoints upon document lifecycle events:

envelope.created
Uploaded & genesis hashed
signer.signed
Individual party executed
envelope.completed
Sealed with Certificate