E-signature & documents
PandaDoc mock API
PandaDoc Public API v1: documents with draft/send lifecycle, templates, contacts, members and webhook subscriptions.
At a glance
- Operations
- 136
- Stateful operations
- 29
- Stateful resources
- 5
- Webhook events
- 6
- Vendor API version
- Public API v1
- Verification
- Spec-verified
How it works
Use PandaDoc without calling PandaDoc 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: API-Key MockPandaDocKey0123456789 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Documents | 10 |
| Templates | 6 |
| Contacts | 5 |
| Members | 2 |
| Webhook subscriptions | 6 |
Webhooks
Events your handlers can receive
- document_state_changed
- document_deleted
- document_updated
- template_created
- template_deleted
- template_updated
Deliveries are unsigned: PandaDoc signs webhooks with a `signature` query parameter (HMAC-SHA256 hex of the body keyed by the subscription shared key) appended to the endpoint URL, which the engine cannot compute.
Coverage
136 operations
29 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 107 |
| Documents | 10 |
| Templates | 6 |
| Webhook subscriptions | 6 |
| Contacts | 5 |
| Members | 2 |
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.
1 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the PandaDoc Inc. API description, licensed under MIT.
- PandaDoc Inc. API documentation
- Source specification
Each collection (documents, templates, contacts, members, webhook subscriptions) holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Documents are created from a template_uuid or a url (JSON bodies; file uploads and PDF bytes are never stored) and start as document.uploaded: the first status read shows uploaded (and announces the draft transition), later reads show document.draft, there are no timers. Only a draft can be sent or edited (409 otherwise); PATCH status accepts the codes 2 (completed), 11 (expired/voided), 10 (paid) and 12 (declined) with a simplified transition table (completing a sent or viewed document works; expiring a draft answers 409, but completing a draft is accepted (real PandaDoc only completes a sent document); completed, voided, declined and paid documents are final, any further status change answers 409; a missing or null code and codes outside 2, 10, 11, 12 answer 400). Recipients are never validated against contacts, recipient_completed is never emitted (it needs a signer in the signing UI), and document_creation_failed is not emitted. List endpoints return no totals; page until a short page (count default 50, max 100); documents filter by status code, q, template_id and id, and sort by date_created. Contacts reject a duplicate email with 409 (the index follows create and delete only). Members and the seeded sample webhook subscription are read-only fixtures (the sample is inactive and delivers nowhere). Webhook subscriptions deliver document_state_changed, document_updated, document_deleted, template_created, template_updated and template_deleted as a JSON array [{event, data}] to every active subscription whose triggers include the event; PandaDoc signs deliveries with a signature query parameter (HMAC-SHA256 hex of the body keyed by the shared key), which the engine cannot compute, so deliveries are unsigned and carry no signature parameter. Everything else is schema-valid generated samples.
MaxoPerf is not affiliated with, endorsed by, or sponsored by PandaDoc Inc. PandaDoc is a trademark of its owner.