Skip to main content

Listen to events

You can use webhooks to get real-time updates from Lumin Sign via a callback url. Webhooks are useful for updating your application state after an asynchronous event.

Create event subscription

You can subscribe to a document event via a callback URL.

info

Refer Document events for a list of event types.

Request

POST /v1/event-subscriptions
Content-Type: application/json
Authorization: Bearer oauth2_access_token

{
"documentId": "624fe419cd66d9e6db9982e9",
"callback": "https://myapp.com/api/callback/bananasign",
"event": "document.created"
}

Parameters

KeyTypeDescription
documentIdstringID of the document to subscribe to
callbackstringCallback URL Lumin Sign used to notify new event
eventstringThe event type to subscribe

Update event subscription

Update an event subscription to change its callback URL or event type.

Request

PUT /v1/event-subscriptions/:subscription_id
Content-Type: application/json
Authorization: Bearer oauth2_access_token

{
"callback": "https://myapp.com/api/callback/bananasign",
"event": "document.created"
}

Parameters

KeyTypeDescription
subscription_idstringThe subscription's ID
callbackstringCallback URL Lumin Sign used to notify new event
eventstringThe event type to subscribe

Delete event subscription

Unsubscribe from a document event to no longer receive callback.

Request

DELETE /v1/event-subscriptions/:subscription_id
Content-Type: application/json
Authorization: Bearer oauth2_access_token

Parameters

KeyTypeDescription
subscription_idstringThe subscription's ID