1
Create a Local Endpoint
In your application, create a route that accepts POST requests. Below is an example using Node.js with Express:Whenever you receive an event, respond with
HTTP 200 OK to acknowledge receipt.2
Register Your Endpoint
Use the Create Webhook API to register your endpoint and generate an
endpointId. Use the Create Event API to subscribe your endpoint to an event. The sandbox.verification.updated event is great for testing purposes.3
Test Your Endpoint
Send a few test requests to confirm that your endpoint receives events. If your endpoint is subscribed to the
sandbox.verification.updated event, you can call the Create Verification API with sandbox credentials and sandbox values for testing purposes.4
Deploy Your Endpoint
After testing, deploy your endpoint to your production environment. Use the Create Webhook API to register your production URL so that live events can be delivered.