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.

GET/api/v1/webhooks

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()
Response200
{
  "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
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
429CS-API-0003Rate 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

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Request body

Content type application/json · required

Returns

201 with a Webhook object.

POST/api/v1/webhooks

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",
        ],
    },
)
Response201
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
409CS-API-0004The idempotency key was used with a different body (CS-API-0011 while the first is still running)
413CS-API-0006The request body is over its limit
415CS-API-0007The body is not application/json
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a Webhook object.

GET/api/v1/webhooks/{id}

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",
)
Response200
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Request body

Content type application/json · required

Object

Returns

200 with a Webhook object.

PATCH/api/v1/webhooks/{id}

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={},
)
Response200
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
404CS-API-0002No such object, or one of another account (answered alike)
413CS-API-0006The request body is over its limit
415CS-API-0007The body is not application/json
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Returns

204 Done with no body.

DELETE/api/v1/webhooks/{id}

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",
)
Response204

No body.

Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a Object object.

GET/api/v1/webhooks/{id}/deliveries

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",
)
Response200
{}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Returns

202 Accepted with a Object object.

POST/api/v1/webhooks/{id}/test

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",
)
Response202
{}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

  • deliverystringRequired

    Delivery id (UUIDv7)

Returns

202 Accepted with a Object object.

POST/api/v1/webhooks/{id}/deliveries/{delivery}/redeliver

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",
)
Response202
{}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks webhooks.manage
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.