zSign Webhooks API
The webhooks API from zSign — 7 operation(s) for webhooks.
Operations 12
POST
/api/webhooks/subscriptions/{subscription_id}/rotate-secret
Rotate Webhook Subscription Secret
#
The webhooks API from zSign — 7 operation(s) for webhooks.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/zsign-io:zsign-io-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: zSign Webhooks API
description: Document Processing and Signing Sessions API
version: 1.0.0
tags:
- name: Webhooks
paths:
/api/webhooks:
get:
tags:
- Webhooks
summary: Get Webhook Config
description: 'Get the org''s current singleton HTTP webhook configuration.
Empty state is 200 + null (not 404) so Settings and programmatic
callers share this handler. Extra destinations are listed at GET
/api/webhooks/subscriptions (200 + []). PATCH/DELETE/rotate-secret
still 404 when nothing is configured — those are mutations of a
missing row.'
operationId: get_webhook_config_api_webhooks_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/WebhookResponse'
- type: 'null'
title: Response Get Webhook Config Api Webhooks Get
security:
- HTTPBearer: []
post:
tags:
- Webhooks
summary: Create Webhook Config
description: Create or replace webhook configuration
operationId: create_webhook_config_api_webhooks_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreateRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
delete:
tags:
- Webhooks
summary: Delete Webhook Config
description: Delete webhook configuration
operationId: delete_webhook_config_api_webhooks_delete
responses:
'204':
description: Successful Response
security:
- HTTPBearer: []
patch:
tags:
- Webhooks
summary: Update Webhook Config
description: Update webhook configuration
operationId: update_webhook_config_api_webhooks_patch
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookUpdateRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/webhooks/rotate-secret:
post:
tags:
- Webhooks
summary: Rotate Webhook Secret
description: Generate new webhook secret
operationId: rotate_webhook_secret_api_webhooks_rotate_secret_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SecretRotateResponse'
security:
- HTTPBearer: []
/api/webhooks/test:
post:
tags:
- Webhooks
summary: Test Webhook Endpoint
description: 'Test webhook endpoint connectivity.
With no body the test targets the org''s saved singleton config — that is
what the dashboard''s "Test Webhook" button exercises. A `url` in the body
overrides it (testing a not-yet-saved endpoint); when a config exists the
event is still signed with its secret, so a receiver enforcing signature
verification passes the test exactly as it would a real delivery.
Authenticated, and the target URL is SSRF-guarded (must resolve to a
public address) before any request is made — otherwise the server could be
coerced into probing internal/metadata endpoints.'
operationId: test_webhook_endpoint_api_webhooks_test_post
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/WebhookTestRequest'
- type: 'null'
title: Request
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookTestResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/webhooks/deliveries:
get:
tags:
- Webhooks
summary: List Webhook Deliveries
description: 'Delivery attempts for every endpoint this org owns, newest first.
The support answer to "my webhook didn''t fire": an empty list means the
event never reached the outbox (no endpoint/subscription matched the
org + event type at emit time); a row shows exactly what was POSTed,
the receiver''s status code, and the retry/exhaustion trail.
Covers the singleton config AND managed subscriptions (Zapier REST
hooks are the latter) plus `zsign listen` CLI rows -- the org owns all
of them. Keyset-paginated by id: pass `next_cursor` back as `cursor`.'
operationId: list_webhook_deliveries_api_webhooks_deliveries_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 25
title: Limit
- name: cursor
in: query
required: false
schema:
anyOf:
- type: integer
minimum: 1
- type: 'null'
title: Cursor
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: event_type
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Event Type
- name: document_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Document Id
- name: session_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Session Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookDeliveriesResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/webhooks/subscriptions:
get:
tags:
- Webhooks
summary: List Webhook Subscriptions
description: List the org's managed webhook subscriptions (secrets never returned).
operationId: list_webhook_subscriptions_api_webhooks_subscriptions_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/WebhookResponse'
type: array
title: Response List Webhook Subscriptions Api Webhooks Subscriptions Get
security:
- HTTPBearer: []
post:
tags:
- Webhooks
summary: Create Webhook Subscription
description: 'Create a managed subscription. Unlike POST /api/webhooks this ADDS a
destination -- it never replaces or removes existing endpoints. The
generated secret is returned once, on this response only.'
operationId: create_webhook_subscription_api_webhooks_subscriptions_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreateRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/webhooks/subscriptions/{subscription_id}:
patch:
tags:
- Webhooks
summary: Update Webhook Subscription
description: Update a managed subscription's url, event filter, or enabled flag.
operationId: update_webhook_subscription_api_webhooks_subscriptions__subscription_id__patch
security:
- HTTPBearer: []
parameters:
- name: subscription_id
in: path
required: true
schema:
type: string
format: uuid
title: Subscription Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Webhooks
summary: Delete Webhook Subscription
description: Remove a managed subscription. Its queued events cascade with the row.
operationId: delete_webhook_subscription_api_webhooks_subscriptions__subscription_id__delete
security:
- HTTPBearer: []
parameters:
- name: subscription_id
in: path
required: true
schema:
type: string
format: uuid
title: Subscription Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/webhooks/subscriptions/{subscription_id}/rotate-secret:
post:
tags:
- Webhooks
summary: Rotate Webhook Subscription Secret
description: Generate a new signing secret for one managed subscription.
operationId: rotate_webhook_subscription_secret_api_webhooks_subscriptions__subscription_id__rotate_secret_post
security:
- HTTPBearer: []
parameters:
- name: subscription_id
in: path
required: true
schema:
type: string
format: uuid
title: Subscription Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SecretRotateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
WebhookCreateRequest:
properties:
url:
type: string
maxLength: 2083
minLength: 1
format: uri
title: Url
events:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Events
type: object
required:
- url
title: WebhookCreateRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
WebhookTestRequest:
properties:
url:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Url
type: object
title: WebhookTestRequest
WebhookResponse:
properties:
id:
type: string
format: uuid
title: Id
url:
type: string
title: Url
events:
items:
type: string
type: array
title: Events
enabled:
type: boolean
title: Enabled
created_at:
type: string
format: date-time
title: Created At
type: object
required:
- id
- url
- events
- enabled
- created_at
title: WebhookResponse
WebhookTestSentRequest:
properties:
url:
type: string
title: Url
headers:
additionalProperties:
type: string
type: object
title: Headers
body:
type: string
title: Body
type: object
required:
- url
- headers
- body
title: WebhookTestSentRequest
description: 'The exact request we POSTed, echoed so the caller can replay it
(e.g. "Copy as cURL" in settings) or compare it against what their
receiver logged. Contains the signature header but never the secret —
the signature is what was transmitted, not credential material.'
WebhookCreateResponse:
properties:
id:
type: string
format: uuid
title: Id
url:
type: string
title: Url
events:
items:
type: string
type: array
title: Events
enabled:
type: boolean
title: Enabled
created_at:
type: string
format: date-time
title: Created At
secret:
type: string
title: Secret
type: object
required:
- id
- url
- events
- enabled
- created_at
- secret
title: WebhookCreateResponse
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
WebhookTestResponse:
properties:
success:
type: boolean
title: Success
response_time:
type: integer
title: Response Time
status_code:
anyOf:
- type: integer
- type: 'null'
title: Status Code
error:
anyOf:
- type: string
- type: 'null'
title: Error
event_id:
anyOf:
- type: string
- type: 'null'
title: Event Id
response_body:
anyOf:
- type: string
- type: 'null'
title: Response Body
response_headers:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Response Headers
request:
anyOf:
- $ref: '#/components/schemas/WebhookTestSentRequest'
- type: 'null'
type: object
required:
- success
- response_time
title: WebhookTestResponse
WebhookUpdateRequest:
properties:
url:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Url
events:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Events
enabled:
anyOf:
- type: boolean
- type: 'null'
title: Enabled
type: object
title: WebhookUpdateRequest
WebhookDeliveriesResponse:
properties:
items:
items:
$ref: '#/components/schemas/WebhookDeliveryItem'
type: array
title: Items
next_cursor:
anyOf:
- type: integer
- type: 'null'
title: Next Cursor
type: object
required:
- items
title: WebhookDeliveriesResponse
WebhookDeliveryItem:
properties:
id:
type: integer
title: Id
event_id:
type: string
format: uuid
title: Event Id
event_type:
type: string
title: Event Type
status:
type: string
title: Status
attempts:
type: integer
title: Attempts
status_code:
anyOf:
- type: integer
- type: 'null'
title: Status Code
sent_at:
type: string
format: date-time
title: Sent At
next_attempt_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Next Attempt At
last_error:
anyOf:
- type: string
- type: 'null'
title: Last Error
document_id:
anyOf:
- type: string
- type: 'null'
title: Document Id
session_id:
anyOf:
- type: string
- type: 'null'
title: Session Id
endpoint_url:
type: string
title: Endpoint Url
endpoint_kind:
type: string
title: Endpoint Kind
payload:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Payload
type: object
required:
- id
- event_id
- event_type
- status
- attempts
- sent_at
- endpoint_url
- endpoint_kind
title: WebhookDeliveryItem
description: 'One `webhook_events` row joined to its endpoint.
`payload` is included deliberately: this view exists for "what exactly
did you POST to my endpoint?" debugging, and the caller owns the data
either way. It is `null` once the retention sweep purges a terminal
row''s body (30d) — the row itself is the permanent audit trail.
`endpoint_url` is the org''s own configured destination, not a secret.'
SecretRotateResponse:
properties:
secret:
type: string
title: Secret
type: object
required:
- secret
title: SecretRotateResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer