DocMe Sign REST API v1

Ship white-label e-signatures in one afternoon.

Authenticate with a dms_live_ key limited to the scopes you choose, pass an Idempotency-Key, and let DocMe Sign handle the PDF, signing links on your own domain, email from your domain, signer email checks and the certificate of completion. Live keys come with Growth & API Pro (₹1,999 a month + GST, 500 documents); test keys work on every plan.

dms_test_ sandbox keys includedIdempotency keys kept 24 hoursHMAC-SHA256 signed webhooks
API calls from web, mobile and server apps, a usage dial, and JSON webhook events
Base URL: https://docmesign.com/api/v1HTTPS

Scoped Bearer Keys

Admins create dms_test_ keys for free test agreements (marked TEST, never emailed, 50 a day) and dms_live_ keys for real ones, each with only the scopes it needs. Keys are stored as SHA-256 hashes; make a new key before revoking the old one to rotate without downtime.

No Surprise Charges

Only sending an agreement uses a document from your plan. Reads, downloads, reminders and Idempotency-Key replays are free. There's no overage: when the documents are used, sends answer 402 plan_limit with an upgrade link.

Your Domain, Your Sender

Links use your workspace's signing domain and emails come from its sending address. Pass signing_domain or sender_identity to have the API check them: a value that isn't your workspace's answers 400 instead of sending.

Interactive REST API Explorer

Four common tasks. Real requests and answers.

Create and send an agreement from a PDF

Place fields by page coordinates, send it, and get each signer's link back. The same Idempotency-Key returns the same agreement instead of a second one.

Request (cURL)POST /api/v1/envelopes
curl -X POST "https://docmesign.com/api/v1/envelopes" \
  -H "Authorization: Bearer $DOCMESIGN_API_KEY" \
  -H "Idempotency-Key: offer-E-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Offer letter — Ananya Rao",
    "document_url": "https://files.yourcompany.com/offers/ananya-rao.pdf",
    "recipients": [
      {
        "name": "Ananya Rao",
        "email": "ananya@example.com",
        "role": "signer",
        "order": 1,
        "fields": [
          { "type": "signature", "page": 1, "x": 72, "y": 640, "width": 180, "height": 40 },
          { "type": "date_signed", "page": 1, "x": 300, "y": 650, "width": 110, "height": 24 }
        ]
      },
      { "name": "Payroll", "email": "payroll@yourcompany.com", "role": "cc", "order": 2 }
    ],
    "custom_fields": { "Employee ID": "E-1042" },
    "reminder_days": 3,
    "verification": "email"
  }'
Response headers
HTTP/1.1 201 Created
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 119
X-RateLimit-Reset: 1795600860
X-DocMeSign-Plan: pro_20
X-DocMeSign-Quota-Limit: 500
X-DocMeSign-Quota-Remaining: 317
JSON body
{
  "id": "0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90",
  "title": "Offer letter — Ananya Rao",
  "status": "sent",
  "test_mode": false,
  "created_at": "2026-11-25T09:00:00.000Z",
  "sent_at": "2026-11-25T09:00:05.000Z",
  "expires_at": "2026-12-02T09:00:05.000Z",
  "completed_at": null,
  "declined_at": null,
  "custom_fields": {
    "Employee ID": "E-1042"
  },
  "sha256_source": "8f434346648f6b96df89dda901c5176b10a6d83961dd3c1ac88b59b2dc327aa4",
  "sha256_completed_pdf": null,
  "signing_url": "https://sign.docmesign.com/sign?id=0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90&r=5a2c9e1f-3b7d-4e8a-b6c4-1d9f0e2a7c35",
  "download_url": null,
  "recipients": [
    {
      "id": "5a2c9e1f-3b7d-4e8a-b6c4-1d9f0e2a7c35",
      "name": "Ananya Rao",
      "email": "ananya@example.com",
      "role": "signer",
      "type": "signer",
      "order": 1,
      "label": null,
      "status": "invited",
      "viewed_at": null,
      "signed_at": null,
      "declined_at": null,
      "decline_reason": null,
      "invite_at": null,
      "signing_url": "https://sign.docmesign.com/sign?id=0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90&r=5a2c9e1f-3b7d-4e8a-b6c4-1d9f0e2a7c35"
    }
  ],
  "metering": {
    "plan": "pro_20",
    "cycle_used": 183,
    "cycle_included": 500,
    "overage_documents": 0
  }
}
Webhook Event Inspector

Inspect signed JSON events across the agreement lifecycle.

Pick an event to see its body exactly as delivered (the same as GET /api/v1/events/{type}/sample). Every delivery is signed with X-DocMeSign-Signature. It goes out straight away; if your endpoint doesn't answer 2xx it is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. Choose which events each endpoint gets.

envelope.completed

Everyone has signed. The signed PDF with its certificate of completion is ready to download; sha256_completed_pdf is its fingerprint.

{
  "id": "b3c1e2d4-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "type": "envelope.completed",
  "created_at": "2026-11-25T09:30:00.000Z",
  "organization_id": "6f7b92c0-4a1d-4e92-8b3a-19d0f284c110",
  "data": {
    "envelope_id": "0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90",
    "workspace_url": "https://sign.docmesign.com/workspace/0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90",
    "status": "completed",
    "sha256_completed_pdf": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "audit_certificate_included": true,
    "envelope": {
      "id": "0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90",
      "title": "Offer letter — Ananya Rao",
      "status": "completed",
      "test_mode": false,
      "created_at": "2026-11-25T09:00:00.000Z",
      "sent_at": "2026-11-25T09:00:05.000Z",
      "expires_at": "2026-12-02T09:00:05.000Z",
      "completed_at": "2026-11-25T09:30:00.000Z",
      "declined_at": null,
      "custom_fields": {
        "Employee ID": "E-1042"
      },
      "sha256_source": "8f434346648f6b96df89dda901c5176b10a6d83961dd3c1ac88b59b2dc327aa4",
      "sha256_completed_pdf": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "signing_url": null,
      "download_url": "https://docmesign.com/api/v1/envelopes/0d8f3c2a-7b1e-4c5d-9a6f-2e8b1c4d7f90/download",
      "recipients": [
        {
          "id": "5a2c9e1f-3b7d-4e8a-b6c4-1d9f0e2a7c35",
          "name": "Ananya Rao",
          "email": "ananya@example.com",
          "role": "signer",
          "type": "signer",
          "order": 1,
          "label": "Employee",
          "status": "signed",
          "viewed_at": "2026-11-25T09:20:00.000Z",
          "signed_at": "2026-11-25T09:30:00.000Z",
          "declined_at": null,
          "decline_reason": null,
          "invite_at": null,
          "signing_url": null
        }
      ]
    }
  }
}

REST Surface

Endpoint Reference

Base URL https://docmesign.com/api/v1. JSON over HTTPS; send your key as Authorization: Bearer …. Every key sees only its own organization, and only agreements of its own mode (live or test). The full description, with every field, is the OpenAPI 3.1 file (no key needed).

Agreements

POSTenvelopes:write

/api/v1/envelopes

Create an agreement from a PDF (a public https URL or base64), place fields by page coordinates, and send it—or keep it as a draft. Recipients can be signers, approvers, viewers, people who get a copy, or in-person signers.

GETenvelopes:read

/api/v1/envelopes · /envelopes/{id}

List agreements (filter by status or created_after) or get one: each recipient's status and signing link, and the source and completed SHA-256 fingerprints.

GETenvelopes:read

/api/v1/envelopes/{id}/download

A link that works for 5 minutes to the signed PDF with its certificate of completion, or ?version=original.

POSTenvelopes:write

/api/v1/envelopes/{id}/remind

Email everyone whose turn it is, at most once every 20 hours per agreement. Reminders never use a document.

POSTenvelopes:write

/api/v1/envelopes/{id}/embedded-signing

A one-time link (5 minutes) to sign inside your own page, for an origin on your embedded-signing list.

POSTenvelopes:write

/api/v1/envelopes/{id}/void

Void an agreement that's out for signing, with a reason (required once it's sent).

Templates & bulk sends

GETtemplates:read

/api/v1/templates · /templates/{id}

Your templates with their roles, fields and the column headings a bulk send reads.

POSTenvelopes:write + templates:read

/api/v1/templates/{id}/send

Send from a template: name the person for each role and fill its sender fields with your values. One document per agreement sent.

POSTenvelopes:write + templates:read

/api/v1/templates/{id}/bulk

One agreement per row, up to 500 rows, each with its own people and values. One document per agreement sent.

GETenvelopes:read

/api/v1/bulk-sends/{id}

A bulk send's progress, row by row. POST to it to retry the failed rows or cancel the rest (envelopes:write).

Webhooks, domains & usage

POSTwebhooks:write

/api/v1/webhooks

Add an https endpoint (or a Slack or Teams channel), choose its events, and get its signing secret. Also list, change, delete, rotate-secret and test.

POSTwebhooks:write · webhooks:read

/api/v1/hooks · GET /api/v1/events

REST-hook subscribe and unsubscribe for Zapier, Make and n8n, the event list, and /events/{type}/sample for each event exactly as delivered.

GETdomains:read

/api/v1/domains · /domains/{id}

Your signing and email domains with their DNS records and status. Domains are added in the admin console.

GETmetering:read

/api/v1/metering/usage

Your plan, documents used and left this period, and when they reset.

GETno scope needed

/api/v1/me

The key's organization, mode (live or test), scopes and plan: handy for testing a connection.

Keys & Scopes

Give each key only what it needs

A key has full access or the scopes chosen when it was made; a write scope includes reading the same thing. A missing scope answers 403 with code missing_scope.

ScopeAllows
envelopes:readList and get agreements, download PDFs
envelopes:writeCreate and send agreements (also from templates), remind, void
templates:readList templates and see their roles and fields
domains:readSee signing and email domains and their DNS status
webhooks:readList endpoints and hooks, event types and sample events
webhooks:writeAdd, change and remove endpoints and hooks, rotate secrets, send tests
metering:readSee the plan and documents used

Observability & Backpressure

Rate-Limit & Metering Response Headers

Every answer carries the rate-limit headers; answers to live keys also carry your plan and documents left, so you can watch usage without extra calls.

HTTP HeaderExample ValueSpecification
X-RateLimit-Limit120Requests of this kind allowed per minute for this key: 120 writes (POST, PATCH, DELETE) or 600 reads. On every answer.
X-RateLimit-Remaining117Requests left in this minute.
X-RateLimit-Reset1795600860When the minute ends, in Unix seconds.
Retry-After12On a 429: seconds to wait. Sent for the rate limit, the test keys' 50-a-day allowance, and a reminder asked for too soon.
X-DocMeSign-Planpro_20Live keys: your plan (free_trial, starter_10 or pro_20).
X-DocMeSign-Quota-Limit500Live keys: documents included this period.
X-DocMeSign-Quota-Remaining317Live keys: documents left this period. There is no overage: at 0, sends answer 402 with code plan_limit and an upgrade link.
Idempotency-ReplayedtrueOn a 200 that returns the agreement an earlier request with the same Idempotency-Key created (keys are kept at least 24 hours). Nothing is sent or counted twice.

Ready to automate agreements on your own domain?

Build for free with dms_test_ keys on any plan, then go live on Growth & API Pro: 500 documents a month and dms_live_ keys for ₹1,999 a month + GST. Zapier, Make and n8n connect through their own webhook steps and the REST hooks above; there's no DocMe Sign app in their directories yet.

500 docs/mo includedNo overage chargesUnlimited team seats