Getting Started with Webhooks
Webhooks allow you to collect information about events as they happen in near real-time. Provide a URL, select when and where you want the URL to receive data about events, and we’ll send it to you as the events take place. For more information about webhooks in general, visit https://en.wikipedia.org/wiki/Webhook.How Webhooks Work
- Registration: You register a URL endpoint on your server to receive webhook notifications
- Event Triggers: When specific events occur in SmarterMeasure (e.g., assessment completion), our system sends an HTTP POST request to your registered endpoint
- Processing: Your application receives and processes the webhook payload, taking appropriate actions based on the event type
Configuring Webhooks
Currently, webhooks must be configured by contacting our team at developers@smartermeasure.com. Please provide:- The URL endpoint where you want to receive webhook notifications
- The specific events you want to subscribe to
- The format you prefer (JSON or XML)
Securing Webhooks
We support both HTTP and HTTPS URLs, so you can have added security by using SSL-enabled URLs (and we suggest this). Keep in mind your endpoint will remain wide open to the Internet, and you might not want to allow others to submit random data to your systems.Verification Key
As an added layer of security, we provide a verification key in each request you can use to validate the request. The verification key is assigned when your webhooks are provisioned and applies to all webhook events.Header Method
The verification key is always sent in the header of the request as the parameterX-SmarterMeasure-Verification-Key.
URL Method
Some integrations do not support access to the header data. In this case, you can include the key in the URL. To do this, appendVerificationKey={VerificationKey} to your endpoint URL. The SmarterMeasure system will replace the {VerificationKey} value with your actual verification key at run-time.
Next Steps
- Learn about Events & Payloads to understand what data you’ll receive
- Review Testing & Troubleshooting for best practices
