Brand Webhooks
Overview
Brand webhooks allow you to receive real-time notifications when specific events occur for your brand. Currently supported topics include ‘Deals’, ‘Showings’, and ‘Contacts’.
Resource Group ¶
Create Brand Webhook ¶
Create Brand WebhookPOST/brands/:id/webhooks
Creates a new webhook for a brand that will receive notifications for the specified topic.
Example URI
POST /brands/:id/webhooks
URI Parameters
- id
string(required) Example: 07c154f8-c4da-4a60-83ef-1dd71430d241
Request
Body
{
"topic": "Showings",
"url": "https://localhost:3000"
}Response
200Body
{
"code": "OK",
"data": {
"id": "a041bd57-4547-4aca-92b9-453d56c7f8ae",
"created_at": 1778872027.653347,
"updated_at": 1778872027.653347,
"deleted_at": null,
"brand": "07c154f8-c4da-4a60-83ef-1dd71430d241",
"topic": "Showings",
"url": "https://localhost:3000",
"key": "02432bef75194f67f140c4a19c8f0e986c412291b20376b93b6792fd2b8a0220",
"tags": null,
"type": "brand_webhook"
}
}Get All Brand Webhooks ¶
Get All Brand WebhooksGET/brands/:id/webhooks
Gets a list of all webhooks for a brand. Does not return deleted records. To fetch a list of brand webhooks for a specific topic, use the topic query parameter.
Example URI
GET /brands/:id/webhooks
URI Parameters
- id
string(required) Example: 07c154f8-c4da-4a60-83ef-1dd71430d241
Response
200Body
{
"code": "OK",
"data": [
{
"id": "a041bd57-4547-4aca-92b9-453d56c7f8ae",
"created_at": 1778872027.653347,
"updated_at": 1778872027.653347,
"deleted_at": null,
"brand": "07c154f8-c4da-4a60-83ef-1dd71430d241",
"topic": "Showings",
"url": "https://localhost:3000",
"key": "02432bef75194f67f140c4a19c8f0e986c412291b20376b93b6792fd2b8a0220",
"tags": null,
"type": "brand_webhook"
}
],
"info": {
"count": 1,
"total": 0
}
}Delete Brand Webhook ¶
Delete Brand WebhookDELETE/brands/:id/webhooks/:wid
Deletes a specific webhook for a brand.
Example URI
DELETE /brands/:id/webhooks/:wid
URI Parameters
- id
string(required) Example: 07c154f8-c4da-4a60-83ef-1dd71430d241- wid
string(required) Example: a041bd57-4547-4aca-92b9-453d56c7f8ae
Response
204Body
All webhook requests include an HMAC-SHA256 signature in the headers for verification. The signature is generated using the webhook's secret key and should be validated to ensure the authenticity of incoming webhook calls.