E-signature & documents
DocuSign eSignature mock API
DocuSign eSignature REST v2.1: envelopes with send/void lifecycle, recipients, documents, templates, Connect configurations and signed Connect webhooks.
At a glance
- Operations
- 414
- Stateful operations
- 21
- Stateful resources
- 5
- Webhook events
- 5
- Vendor API version
- eSignature REST API v2.1
- Verification
- Spec-verified
How it works
Use DocuSign eSignature without calling Docusign, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer MockDocuSignToken0123456789 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Envelopes | 5 |
| Recipients | 4 |
| Documents | 3 |
| Templates | 4 |
| Connect configurations | 5 |
Webhooks
Events your handlers can receive
- envelope-sent
- envelope-voided
- envelope-delivered
- recipient-completed
- envelope-completed
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
414 operations
21 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 393 |
| Connect configurations | 5 |
| Envelopes | 5 |
| Recipients | 4 |
| Templates | 4 |
| Documents | 3 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
2 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Docusign, Inc. API description, licensed under MIT.
- Docusign, Inc. API documentation
- Source specification
Each collection (envelopes, recipients, documents, templates, Connect configurations) holds up to 1 MiB of objects per access token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Only the seeded account GUID 00000000-0000-4000-8000-0000000000d1 is served for envelopes, templates and Connect; any other account answers 404 USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT. Envelopes move created -> sent -> delivered -> completed | voided: delivered is reached by the first GET recipients?include_tabs=true on a sent envelope, completed by PUT recipients with status completed (up to 3 signers per call; the envelope-completed webhook fires when that single call completes the last pending signer); declined is not reachable and never emitted. Updating a completed or voided envelope (a PUT without a status, such as an emailSubject change) answers 400 ENVELOPE_INVALID_STATUS. The list status filter takes one status; envelope_ids, start/end dates and the other list filters are not applied. Documents keep name and id only (documentBase64 is never stored; downloads are generated samples). Recipients support signers only. Connect configurations are registered through POST connect and deliver envelope-sent, envelope-delivered, envelope-completed, envelope-voided and recipient-completed events, signed with the VS-level webhook secret as X-DocuSign-Signature-1 (base64 HMAC-SHA256 over the raw body) because DocuSign creates HMAC keys in the Connect UI, not the API; the seeded sample configuration 123456 publishes nowhere. Everything else is schema-valid generated samples.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Docusign, Inc. DocuSign eSignature is a trademark of its owner.