Webhooks send HTTP requests to external URLs when events occur in PERSCOM. Use webhooks to integrate with messaging platforms like Slack, Telegram, or Discord, sync data with external databases, or trigger custom workflows in your applications.Documentation Index
Fetch the complete documentation index at: https://docs.perscom.io/llms.txt
Use this file to discover all available pages before exploring further.
Use Cases
Webhooks enable you to:- Send notifications to Discord or Slack when users are created or updated
- Sync personnel changes to external databases like Firebase or AWS
- Trigger custom reporting tools when records change
- Build real-time dashboards that reflect PERSCOM data
Create A Webhook
- In the sidebar, select Integrations > Webhooks.
- Select New webhook.
- Enter a Name to identify the webhook.
- Enter the URL that receives webhook requests.
- Select the Method (
GETorPOST). - Enter a Secret to sign requests for verification.
- Select the Events that trigger this webhook.
- Select Create.
Request Verification
Each webhook request includes aSignature header containing an HMAC signature. Use this signature to verify that requests originate from PERSCOM and haven’t been tampered with.
To verify a request:
- Extract the
Signatureheader from the incoming request. - Compute an HMAC-SHA256 hash of the request body using your webhook secret.
- Compare your computed signature with the
Signatureheader.
Events
Webhooks can subscribe to any of the following events:- Users
- Records
- Calendars & Events
- Messages
- Submissions
- Test
| Event | Description |
|---|---|
user.created | A new user was created |
user.updated | A user was updated |
user.deleted | A user was deleted |
Webhook Logs
PERSCOM logs all webhook requests for debugging purposes. To view logs:- In the sidebar, select Integrations > Webhooks.
- Select a webhook to view its details.
- Review the Logs section to see request history, including status codes and response times.
Automations
For more advanced webhook workflows with conditional logic and custom payloads, see Automations. Automations allow you to:- Add conditions to control when webhooks fire
- Customize the JSON payload sent to external services
- Use Twig templates for dynamic content