Duro API
ChangelogStatusApp
  • Welcome to Duro Dev Center
  • Getting Started
    • Introduction
    • Authentication
    • Hello World
  • Core Concepts
    • Components & Products
    • Documents
    • Change Orders
  • Advanced Topics
    • Searching and Filtering
    • Datarooms & RBAC
    • Webhooks
    • Error Handling
  • Library Configuration
    • Introduction to Duro's Config System
    • Category Registry
    • Revision Scheme
    • CPN Generation Scheme
    • CPN Schema Reference
  • Community
    • Developer Community
Powered by GitBook
On this page
  • Webhook Events
  • Configuring Webhooks
  • Webhook Payload Example
  • Security Best Practices
  • Next Steps
Export as PDF
  1. Advanced Topics

Webhooks

Learn how to receive real-time updates from Duro using webhooks.

Webhook Events

Duro can notify your systems about these events:

  • Component updates

  • Document changes

  • Change order status updates

  • Review approvals

  • Comment additions

Configuring Webhooks

mutation {
  createWebhook(input: {
    url: "https://your-domain.com/webhook"
    events: [
      COMPONENT_CREATED,
      COMPONENT_UPDATED,
      CHANGE_ORDER_STATUS_CHANGED
    ]
    secret: "your-webhook-secret"
  }) {
    webhook {
      id
      url
      events
    }
  }
}

Webhook Payload Example

{
  "event": "COMPONENT_UPDATED",
  "timestamp": "2024-03-21T15:30:00Z",
  "data": {
    "componentId": "comp_123",
    "changes": {
      "status": {
        "old": "IN_REVIEW",
        "new": "APPROVED"
      }
    }
  }
}

Security Best Practices

  • Verify webhook signatures

  • Use HTTPS endpoints

  • Implement retry logic

  • Monitor webhook health

Next Steps

PreviousDatarooms & RBACNextError Handling

Last updated 6 months ago

Learn about to make your integration robust.

Error Handling