Skip to main content

Overview

Webhooks are essential for facilitating real-time communication between web applications. DocuMocu leverages webhooks to automate processes triggered by various events, ensuring seamless data transmission and enhancing operational efficiency. By instantly notifying systems of updates, webhooks enable agile and responsive workflows, making them integral to modern application integration strategies.

Payload

id
string
The id of the event. Unique for each event.
created
timestamp
When the resource was affected.
data
array
The affected resource.
type
string
The type of the event.

Retry mechanism

Documocu attempts to deliver a given event for a total of 3 times with an exponential back off. First time is immediate, the second one is after 10 seconds and the third one is after 1 minute and 40 seconds. In the webhook modal, you can view when the next retry will occur.

Example Payload
{
"id": "evt_593e00a1e5374398cd8da7a9",
"type": "document.updated",
"created": 1719322973,
"data": {
"activity": null,
"allow_download": false,
"allow_forwarding": true,
"archived_at": null,
"author": {
"email": "[email protected]",
"id": "u_c01bb6102b6ddadd4b1f020e",
"name": "John Doe"
},
"completed_at": null,
"cover_page": null,
"created_at": "2024-05-14T05:36:50+00:00",
"currency": "USD",
"declined_at": null,
"deleted_at": null,
"expiration_date": null,
"expiration_date_in_days": null,
"expiration_warning": false,
"expired_at": null,
"id": "doc_96kjrc28vp1xdjestep1fu25",
"modifier": "u_by5010epw5yhbrnb73hgxbjc",
"name": "Veniam rerum earum debitis et quia et.",
"page_orientation": "portrait",
"page_size": "a4",
"recipient_language": "en_US",
"recipients": null,
"recurring_reminder_frequency": null,
"recurring_reminder_period_unit": null,
"reminder_days": null,
"sent_at": null,
"sent_via": null,
"status": "draft",
"type": "regular",
"updated_at": "2024-05-15T06:12:34+00:00",
"value": 0,
"viewed_at": null
}
}