Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Merge the webhooks review fixes into the embedded signing branch

Claudeb63971f57149
diff --cc docs/api.md
index d0f2fbc,5d464ce..f47dcac
--- a/docs/api.md
+++ b/docs/api.md
@@@ -245,25 -243,24 +248,25 @@@ To know when something happens without
## Endpoints
- | Method and path | Access | What it does |
- | ----------------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
- | `GET /api/v1/me` | read | Which key this is and whom it acts as. |
- | `POST /api/v1/envelopes` | write | Creates an envelope, and sends it if asked. |
- | `GET /api/v1/envelopes` | read | Lists envelopes, newest first: `?status=`, `?limit=` (up to 100, 25 by default), and `?cursor=` with the `nextCursor` of the page before. |
- | `GET /api/v1/envelopes/{id}` | read | One envelope. |
- | `POST /api/v1/envelopes/{id}/send` | write | Sends a draft. Body: the `send` options above. |
- | `POST /api/v1/envelopes/{id}/void` | write | Voids a sent envelope. Body: `{"reason": "…"}`, required on Part 11 installs. |
- | `POST /api/v1/envelopes/{id}/remind` | write | Emails the signer whose turn it is a reminder, at most once a day as in the web app. |
- | `POST /api/v1/envelopes/{id}/signers/{signerId}/embed-link` | write | A signing link for an embedded envelope, to show in a frame. Body: `{"origin": "https://…"}`. See [Embedded signing](#embedded-signing). |
- | `DELETE /api/v1/envelopes/{id}` | write | Deletes a draft. |
- | `GET /api/v1/envelopes/{id}/events` | read | The audit trail, oldest first. |
- | `GET /api/v1/envelopes/{id}/files/signed` | read | The signed PDF. |
- | `GET /api/v1/envelopes/{id}/files/certificate` | read | The certificate of completion. |
- | `POST /api/v1/uploads` | write | An upload URL for a PDF over 4 MB. |
- | `GET /api/v1/templates` | read | Saved templates, with their roles in signing order. |
- | `POST /api/v1/templates/{id}/envelopes` | write | An envelope from a template: `title`, `signers` (`name`, `email`, one per role in order), and optionally `metadata` and `send`. Takes an `Idempotency-Key`. |
- | `GET /api/v1/webhook-deliveries` | read | Webhook deliveries, newest first, with the payload each carried: `?since=` (ISO time), `?type=`, `?status=`, `?limit=`, `?cursor=`. See [Webhooks](#webhooks). |
- | `GET /api/v1/openapi.json` | none | The OpenAPI 3.1 description of all of this, for code generators and API tools. |
-| Method and path | Access | What it does |
-| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `GET /api/v1/me` | read | Which key this is and whom it acts as. |
-| `POST /api/v1/envelopes` | write | Creates an envelope, and sends it if asked. |
-| `GET /api/v1/envelopes` | read | Lists envelopes, newest first: `?status=`, `?limit=` (up to 100, 25 by default), and `?cursor=` with the `nextCursor` of the page before. |
-| `GET /api/v1/envelopes/{id}` | read | One envelope. |
-| `POST /api/v1/envelopes/{id}/send` | write | Sends a draft. Body: the `send` options above. |
-| `POST /api/v1/envelopes/{id}/void` | write | Voids a sent envelope. Body: `{"reason": "…"}`, required on Part 11 installs. |
-| `POST /api/v1/envelopes/{id}/remind` | write | Emails the signer whose turn it is a reminder, at most once a day as in the web app. |
-| `DELETE /api/v1/envelopes/{id}` | write | Deletes a draft. |
-| `GET /api/v1/envelopes/{id}/events` | read | The audit trail, oldest first. |
-| `GET /api/v1/envelopes/{id}/files/signed` | read | The signed PDF. |
-| `GET /api/v1/envelopes/{id}/files/certificate` | read | The certificate of completion. |
-| `POST /api/v1/uploads` | write | An upload URL for a PDF over 4 MB. |
-| `GET /api/v1/templates` | read | Saved templates, with their roles in signing order. |
-| `POST /api/v1/templates/{id}/envelopes` | write | An envelope from a template: `title`, `signers` (`name`, `email`, and `signatureMeaning` on Part 11 installs, one per role in order), and optionally `metadata` and `send`. Takes an `Idempotency-Key`. |
-| `GET /api/v1/webhook-deliveries` | read | Webhook deliveries, newest first, with the payload each carried: `?since=` (ISO time), `?type=`, `?status=`, `?limit=`, `?cursor=`. See [Webhooks](#webhooks). |
-| `GET /api/v1/openapi.json` | none | The OpenAPI 3.1 description of all of this, for code generators and API tools. |
++| Method and path | Access | What it does |
++| ----------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
++| `GET /api/v1/me` | read | Which key this is and whom it acts as. |
++| `POST /api/v1/envelopes` | write | Creates an envelope, and sends it if asked. |
++| `GET /api/v1/envelopes` | read | Lists envelopes, newest first: `?status=`, `?limit=` (up to 100, 25 by default), and `?cursor=` with the `nextCursor` of the page before. |
++| `GET /api/v1/envelopes/{id}` | read | One envelope. |
++| `POST /api/v1/envelopes/{id}/send` | write | Sends a draft. Body: the `send` options above. |
++| `POST /api/v1/envelopes/{id}/void` | write | Voids a sent envelope. Body: `{"reason": "…"}`, required on Part 11 installs. |
++| `POST /api/v1/envelopes/{id}/remind` | write | Emails the signer whose turn it is a reminder, at most once a day as in the web app. |
++| `POST /api/v1/envelopes/{id}/signers/{signerId}/embed-link` | write | A signing link for an embedded envelope, to show in a frame. Body: `{"origin": "https://…"}`. See [Embedded signing](#embedded-signing). |
++| `DELETE /api/v1/envelopes/{id}` | write | Deletes a draft. |
++| `GET /api/v1/envelopes/{id}/events` | read | The audit trail, oldest first. |
++| `GET /api/v1/envelopes/{id}/files/signed` | read | The signed PDF. |
++| `GET /api/v1/envelopes/{id}/files/certificate` | read | The certificate of completion. |
++| `POST /api/v1/uploads` | write | An upload URL for a PDF over 4 MB. |
++| `GET /api/v1/templates` | read | Saved templates, with their roles in signing order. |
++| `POST /api/v1/templates/{id}/envelopes` | write | An envelope from a template: `title`, `signers` (`name`, `email`, and `signatureMeaning` on Part 11 installs, one per role in order), and optionally `metadata` and `send`. Takes an `Idempotency-Key`. |
++| `GET /api/v1/webhook-deliveries` | read | Webhook deliveries, newest first, with the payload each carried: `?since=` (ISO time), `?type=`, `?status=`, `?limit=`, `?cursor=`. See [Webhooks](#webhooks). |
++| `GET /api/v1/openapi.json` | none | The OpenAPI 3.1 description of all of this, for code generators and API tools. |
Envelopes made through the API are ordinary envelopes: they show in the key's
administrator's documents, can be followed and voided there, and their audit