Integrations
Webhooks
Subscriptions that receive signed event notifications (the Standard Webhooks scheme), their delivery log, test events and redelivery. See Webhooks for verifying them.
List webhooks
GET/api/v1/webhooks
Webhook subscriptions
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Returns
200 with a WebhookList object.
curl
curl https://sign.example.com/api/v1/webhooks \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.listWebhooks();Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_webhooks(){
"items": [
{
"id": "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
"envelope_id": "01934c50-3ca6-7776-81e5-c4aaecfe9962",
"url": "https://hooks.example.com/openseal",
"event_types": [
"example"
],
"secret_refs": [
"example"
],
"active": false
}
]
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Create webhook
POST/api/v1/webhooks
Subscribe (public HTTPS URLs only)
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
https:// to a public address
envelope_idstring
Returns
201 with a Webhook object.
curl
curl -X POST https://sign.example.com/api/v1/webhooks \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"url": "https://hooks.example.com/openseal",
"event_types": [
"envelope.completed",
"envelope.declined"
],
"secret_refs": [
"OPENSEAL_WEBHOOK_SECRET_CRM"
]
}'TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.createWebhook({
idempotencyKey: "order-1042",
body: {
"url": "https://hooks.example.com/openseal",
"event_types": [
"envelope.completed",
"envelope.declined"
],
"secret_refs": [
"OPENSEAL_WEBHOOK_SECRET_CRM"
]
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_webhook(
idempotency_key="order-1042",
body={
"url": "https://hooks.example.com/openseal",
"event_types": [
"envelope.completed",
"envelope.declined",
],
"secret_refs": [
"OPENSEAL_WEBHOOK_SECRET_CRM",
],
},
){
"id": "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
"envelope_id": "01934c50-3ca6-7776-81e5-c4aaecfe9962",
"url": "https://hooks.example.com/openseal",
"event_types": [
"example"
],
"secret_refs": [
"example"
],
"active": false
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 409 | CS-API-0004 | The idempotency key was used with a different body (CS-API-0011 while the first is still running) |
| 413 | CS-API-0006 | The request body is over its limit |
| 415 | CS-API-0007 | The body is not application/json |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Get webhook
GET/api/v1/webhooks/{id}
A subscription
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Path parameters
Object id (UUIDv7)
Returns
200 with a Webhook object.
curl
curl https://sign.example.com/api/v1/webhooks/01939fd0-9dc3-7354-85f9-cc19b81ebd0b \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.getWebhook({
id: "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_webhook(
id="01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
){
"id": "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
"envelope_id": "01934c50-3ca6-7776-81e5-c4aaecfe9962",
"url": "https://hooks.example.com/openseal",
"event_types": [
"example"
],
"secret_refs": [
"example"
],
"active": false
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Update webhook
PATCH/api/v1/webhooks/{id}
Edit, pause or resume a subscription
{url?, event_types?, active?}; active: false pauses, true resumes. A new URL must be public HTTPS (422 CS-API-0013, SEC-W01).
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Path parameters
Object id (UUIDv7)
Request body
Content type application/json · required
Returns
200 with a Webhook object.
curl
curl -X PATCH https://sign.example.com/api/v1/webhooks/01939fd0-9dc3-7354-85f9-cc19b81ebd0b \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.patchWebhook({
id: "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
body: {},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_webhook(
id="01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
body={},
){
"id": "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
"envelope_id": "01934c50-3ca6-7776-81e5-c4aaecfe9962",
"url": "https://hooks.example.com/openseal",
"event_types": [
"example"
],
"secret_refs": [
"example"
],
"active": false
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 413 | CS-API-0006 | The request body is over its limit |
| 415 | CS-API-0007 | The body is not application/json |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Delete webhook
DELETE/api/v1/webhooks/{id}
Disable a subscription
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Path parameters
Object id (UUIDv7)
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/webhooks/01939fd0-9dc3-7354-85f9-cc19b81ebd0b \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.deleteWebhook({
id: "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_webhook(
id="01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
)No body.
Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
List deliveries
GET/api/v1/webhooks/{id}/deliveries
A subscription's deliveries
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Path parameters
Object id (UUIDv7)
Returns
200 with a Object object.
curl
curl https://sign.example.com/api/v1/webhooks/01939fd0-9dc3-7354-85f9-cc19b81ebd0b/deliveries \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.listDeliveries({
id: "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_deliveries(
id="01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
){}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Test webhook
POST/api/v1/webhooks/{id}/test
Send a test event through the worker
Records a webhook.test delivery (ids only) and queues it; the worker signs and sends it as any delivery (SEC-W01 at connect time) and records the answer in the delivery log. 202 with the delivery as recorded; a paused or disabled subscription is 409 CS-API-0009.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Path parameters
Object id (UUIDv7)
Returns
202 Accepted with a Object object.
curl
curl -X POST https://sign.example.com/api/v1/webhooks/01939fd0-9dc3-7354-85f9-cc19b81ebd0b/test \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.testWebhook({
id: "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.test_webhook(
id="01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
){}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Redeliver webhook
POST/api/v1/webhooks/{id}/deliveries/{delivery}/redeliver
Deliver one delivery's event again
The same event id and payload, through the worker; the URL is checked again. 202 with the delivery back to pending; a paused or disabled subscription is 409 CS-API-0009.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionwebhooks.manage · OAuth scope webhooks:manage
Path parameters
Object id (UUIDv7)
Delivery id (UUIDv7)
Returns
202 Accepted with a Object object.
curl
curl -X POST https://sign.example.com/api/v1/webhooks/01939fd0-9dc3-7354-85f9-cc19b81ebd0b/deliveries/0193b4af-39d5-7b65-8a14-849e885a9d65/redeliver \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.redeliverWebhook({
id: "01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
delivery: "0193b4af-39d5-7b65-8a14-849e885a9d65",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.redeliver_webhook(
id="01939fd0-9dc3-7354-85f9-cc19b81ebd0b",
delivery="0193b4af-39d5-7b65-8a14-849e885a9d65",
){}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks webhooks.manage |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.