Overview
Listen to events from Contiguity on your webhook endpoint, like incoming messages, completed Identity verifications, and more to automatically trigger reactions.
When building applications using Contiguity’s API, you might want your applications to receive events as they occur. This way, you can automatically trigger reactions to certain events.
Webhooks are extremely powerful — for example, you could to automatically send a thank you message to a user when they successfully verify their identity. Or, you could build a chatbot that replies to incoming messages.
Getting Started
To get started with Contiguity Webhooks, you’ll need to:
- Create a webhook endpoint that receives POST requests and is secured with HTTPS.
- Test your webhook endpoint by sending a test request with sample data.
- Register your webhook endpoint with Contiguity using the Dashboard or API.
As of November 1st, 2024, webhook endpoints must be secured with HTTPS to protect sensitive data, like Identity verification reports. Webhook Signing will be available in Q1 2025.
Creating a Webhook Endpoint
Best Practices
Quickly return a 2xx response
Your webhook endpoint must quickly return a 2xx response (any successful HTTP status code) to Contiguity. If your webhook endpoint takes too long to respond, Contiguity may assume it’s failed and retry sending the event at a later time.* For example, you should return a response before processing and replying to a user’s message.
*Contiguity does not guarantee webhook retries. If you do not respond to a webhook event, or respond with a non-2xx status code, Contiguity may not retry certain events, or stop sending events to your endpoint entirely.
Handle events asynchronously
Configure your webhook endpoint to process incoming events with an asynchronous queue. You might encounter scalability issues if you choose to process events synchronously. Any large spike in webhook deliveries (for example, increased incoming messages or more identity verifications than usual) might overwhelm your endpoint host. Asynchronous queues allow you to process the concurrent events at a rate your system can support.
Was this page helpful?