Skip to main content

Set up and manage webhooks​

France only

Learn how to create, verify, and manage webhook subscriptions for the AFNOR connector API. Webhooks allow you to receive real-time notifications about document events without repeatedly polling the API.

Prerequisites​

Webhook lifecycle​

  1. Create a webhook subscription and specify the events to monitor.
  2. Store the returned webhookId and signingKey securely.
  3. Receive notifications at your callbackUrl.
  4. Validate each notification using the Afnor-Signature and Afnor-Signature-Timestamp headers.
  5. Process the notification after successful validation.
  6. Retrieve your webhook subscriptions when you need to manage them.
  7. Delete a subscription when it is no longer required.