Appearance
Webhooks documentation
This document describes every webhook the system sends to client endpoints, the payload each one carries, and how to verify that a request genuinely came from us.
Webhook security
To receive webhooks you must first generate a webhook secret token by calling the /admin/client/regenerate-secret endpoint, and register the URL we should post to.
Every delivery is a POST with Content-Type: application/json and an HMAC-SHA256 signature of the raw request body, keyed on your secret:
| Header | Sent by | Description |
|---|---|---|
X-Depot-HMAC-Signature | All webhooks | HMAC-SHA256 of the exact request body bytes, keyed on your client secret. |
X-Depot-Timestamp | Company, sector, site and profile webhooks only | The created_at value of the payload, repeated as a header. |
To verify, compute HMAC-SHA256 over the raw body as received (do not re-serialise the JSON first, as key order and whitespace both feed the signature) and compare it to the header.
Signature encoding differs by source
The encoding of the signature depends on which service emitted the webhook. Compare against the encoding listed for that event.
| Source | Events | Signature encoding |
|---|---|---|
| Companies | company-added, company-updated, company-removed, sector-added, sector-updated, sector-removed, profile-added, site-merged, site-moved, profile-moved | Lowercase hex |
| Reviews | new-reviews | Base64 |
| Admin | deleted-profile, new-topic, removed-topic, new-taxonomy, removed-taxonomy | Base64 |
Envelope shapes
Most webhooks use a lower case envelope:
| Property | Type | Description |
|---|---|---|
type | string | The event type, for example company-added. |
data | object | The event payload. |
created_at | string | When the webhook message was created. Format: YYYY-MM-DDTHH:mm:ss.sssZ. |
The admin webhooks (deleted-profile, new-topic, removed-topic, new-taxonomy, removed-taxonomy) currently use a Pascal case envelope with no created_at, and nest their payload one level deeper:
| Property | Type | Description |
|---|---|---|
Type | string | The event type, for example new-topic. |
Data | object | A wrapper containing a single named object, for example topic or taxonomy. |
Parse defensively for these five: they are scheduled to move onto the lower case envelope with a created_at and a hex signature. That change will be announced before it ships.
Delivery behaviour
- Company, sector, site and profile events are sent to every registered client. Review and profile deletion events are sent only to clients subscribed to that profile.
- Failed deliveries may be retried from the queue, so endpoints should be idempotent and respond quickly.
- A client with no webhook URL or no secret registered is skipped.
Webhooks
Company specific
Added company
Summary: Provides the name and uuid of a company that has been added to the system.
Data:
| Property | Type | Description |
|---|---|---|
company_uuid | string | The uuid of the company. |
company_name | string | The name of the company. |
Payload:
json
{
"type": "company-added",
"data": {
"company_uuid": "00000000-0000-0000-0000-000000000000",
"company_name": "ACME Inc."
},
"created_at": "2025-03-01T00:00:00.000Z"
}Updated company
Summary: Provides the name and uuid of a company that has been updated within the system.
Not currently emitted
The delivery path for this event is live, but no system action raises it today. It is documented so that integrations can handle it when it begins firing.
Data:
| Property | Type | Description |
|---|---|---|
company_uuid | string | The uuid of the company. |
company_name | string | The name of the company. |
Payload:
json
{
"type": "company-updated",
"data": {
"company_uuid": "00000000-0000-0000-0000-000000000000",
"company_name": "ACME Inc."
},
"created_at": "2025-03-01T00:00:00.000Z"
}Removed company
Summary: Provides the name and uuid of a company that has been removed from the system.
Data:
| Property | Type | Description |
|---|---|---|
company_uuid | string | The uuid of the company. |
company_name | string | The name of the company. |
Payload:
json
{
"type": "company-removed",
"data": {
"company_uuid": "00000000-0000-0000-0000-000000000000",
"company_name": "ACME Inc."
},
"created_at": "2025-03-01T00:00:00.000Z"
}Sector specific
Not currently emitted
The three sector events below have a live delivery path, but no system action raises them today. They are documented so that integrations can handle them when they begin firing.
Added sector
Summary: Provides the name and uuid of a sector that has been added to the system.
Data:
| Property | Type | Description |
|---|---|---|
sector_uuid | string | The uuid of the sector. |
sector_name | string | The name of the sector. |
Payload:
json
{
"type": "sector-added",
"data": {
"sector_uuid": "00000000-0000-0000-0000-000000000000",
"sector_name": "Bars"
},
"created_at": "2025-03-01T00:00:00.000Z"
}Updated sector
Summary: Provides the name and uuid of a sector that has been updated within the system.
Data:
| Property | Type | Description |
|---|---|---|
sector_uuid | string | The uuid of the sector. |
sector_name | string | The name of the sector. |
Payload:
json
{
"type": "sector-updated",
"data": {
"sector_uuid": "00000000-0000-0000-0000-000000000000",
"sector_name": "Food & Drink"
},
"created_at": "2025-03-01T00:00:00.000Z"
}Removed sector
Summary: Provides the name and uuid of a sector that has been removed from the system.
Data:
| Property | Type | Description |
|---|---|---|
sector_uuid | string | The uuid of the sector. |
sector_name | string | The name of the sector. |
Payload:
json
{
"type": "sector-removed",
"data": {
"sector_uuid": "00000000-0000-0000-0000-000000000000",
"sector_name": "Food & Drink"
},
"created_at": "2025-03-01T00:00:00.000Z"
}Site and profile details
Added profile
Summary: Provides the uuid of a profile that has been added, along with the site and company it belongs to.
Data:
| Property | Type | Description |
|---|---|---|
company_uuid | string | The uuid of the company that the profile has been added to. |
company_name | string | The name of the company that the profile has been added to. |
site_uuid | string | The uuid of the site that the profile has been added to. |
site_name | string | The name of the site that the profile has been added to. |
profile_uuid | string | The uuid of the profile. |
Payload:
json
{
"type": "profile-added",
"data": {
"company_uuid": "00000000-0000-0000-0000-000000000000",
"company_name": "ACME Inc.",
"site_uuid": "00000000-0000-0000-0000-000000000000",
"site_name": "Coyote Anvils",
"profile_uuid": "00000000-0000-0000-0000-000000000000"
},
"created_at": "2025-03-01T00:00:00.000Z"
}Merged site
Summary: Sent when a site is absorbed into another site during deduplication. The old site no longer exists, and everything that belonged to it now belongs to the new site.
The company pair is always present. Both merge paths are within a single company today, so the old and new company values are currently always equal, but they are carried as a pair so that a cross-company merge needs no payload change.
One webhook is sent per absorbed site: a cluster of three sites merging into one survivor produces two site-merged events.
Data:
| Property | Type | Description |
|---|---|---|
old_site_uuid | string | The uuid of the site that was removed. |
old_site_name | string | The name of the site that was removed. |
new_site_uuid | string | The uuid of the surviving site. |
new_site_name | string | The name of the surviving site. |
old_company_uuid | string | The uuid of the company the removed site belonged to. |
old_company_name | string | The name of the company the removed site belonged to. |
new_company_uuid | string | The uuid of the company the surviving site belongs to. |
new_company_name | string | The name of the company the surviving site belongs to. |
Payload:
json
{
"type": "site-merged",
"data": {
"old_site_uuid": "00000000-0000-0000-0000-000000000000",
"old_site_name": "Coyote Anvils (Duplicate)",
"new_site_uuid": "00000000-0000-0000-0000-000000000000",
"new_site_name": "Coyote Anvils",
"old_company_uuid": "00000000-0000-0000-0000-000000000000",
"old_company_name": "ACME Inc.",
"new_company_uuid": "00000000-0000-0000-0000-000000000000",
"new_company_name": "ACME Inc."
},
"created_at": "2025-03-01T00:00:00.000Z"
}Moved site
Summary: Sent when a site is reassigned from one company to another. The site keeps its identity, so it is named once, while the company is given as an old and new pair.
Data:
| Property | Type | Description |
|---|---|---|
site_uuid | string | The uuid of the site that moved. |
site_name | string | The name of the site that moved. |
old_company_uuid | string | The uuid of the company the site moved from. |
old_company_name | string | The name of the company the site moved from. |
new_company_uuid | string | The uuid of the company the site moved to. |
new_company_name | string | The name of the company the site moved to. |
Payload:
json
{
"type": "site-moved",
"data": {
"site_uuid": "00000000-0000-0000-0000-000000000000",
"site_name": "Coyote Anvils",
"old_company_uuid": "00000000-0000-0000-0000-000000000000",
"old_company_name": "ACME Inc.",
"new_company_uuid": "00000000-0000-0000-0000-000000000000",
"new_company_name": "Roadrunner Ltd."
},
"created_at": "2025-03-01T00:00:00.000Z"
}Moved profile
Summary: Sent when a single profile is reassigned from one site to another. Here it is the site that changes, so both sites are given as an old and new pair. The companies are also always given as a pair, whether or not the move crossed a company, so that the payload parses the same way either way.
Data:
| Property | Type | Description |
|---|---|---|
profile_uuid | string | The uuid of the profile that moved. |
profile_type | string | The review source of the profile, for example google or tripadvisor. |
old_company_uuid | string | The uuid of the company the profile moved from. |
old_company_name | string | The name of the company the profile moved from. |
old_site_uuid | string | The uuid of the site the profile moved from. |
old_site_name | string | The name of the site the profile moved from. |
new_company_uuid | string | The uuid of the company the profile moved to. |
new_company_name | string | The name of the company the profile moved to. |
new_site_uuid | string | The uuid of the site the profile moved to. |
new_site_name | string | The name of the site the profile moved to. |
Payload:
json
{
"type": "profile-moved",
"data": {
"profile_uuid": "00000000-0000-0000-0000-000000000000",
"profile_type": "google",
"old_company_uuid": "00000000-0000-0000-0000-000000000000",
"old_company_name": "ACME Inc.",
"old_site_uuid": "00000000-0000-0000-0000-000000000000",
"old_site_name": "Coyote Anvils",
"new_company_uuid": "00000000-0000-0000-0000-000000000000",
"new_company_name": "Roadrunner Ltd.",
"new_site_uuid": "00000000-0000-0000-0000-000000000000",
"new_site_name": "Roadrunner Depot"
},
"created_at": "2025-03-01T00:00:00.000Z"
}Deleted profile
Summary: Sent to each subscribed client when a profile is deleted.
Pascal case envelope
This webhook uses the Type / Data envelope, carries no created_at, and its signature is base64. See envelope shapes.
Data:
| Property | Type | Description |
|---|---|---|
profile.profile_uuid | string | The uuid of the deleted profile. |
profile.profile_reference | string | The reference of the deleted profile. |
Payload:
json
{
"Type": "deleted-profile",
"Data": {
"profile": {
"profile_uuid": "00000000-0000-0000-0000-000000000000",
"profile_reference": "acme-coyote-anvils-google"
}
}
}Reviews
New reviews
Summary: Delivers a batch of newly collected reviews for a profile. Sent only to clients subscribed to that profile.
Fixed created_at
The reviews webhook currently sends a constant created_at of 0001-01-01T00:00:00. Do not use it as a delivery time. Its signature is base64 and it carries no X-Depot-Timestamp header.
Reviews with an empty review text are excluded from the batch. Every field is always present: an absent number is sent as 0 and an absent string as "". The only field that can be null is management_response.
Data object
| Property | Type | Description |
|---|---|---|
profile_uuid | string | The uuid of the profile the reviews were collected for. |
reviews | array | Array of review objects. |
Review object
| Property | Type | Description |
|---|---|---|
review_uuid | string | The uuid of the review. |
review_source | string | The source of the review, for example google or tripadvisor. |
review_title | string | The title of the review. |
review_text | string | The text content of the review. |
review_rating | number | The rating of the review (1 to 5). |
language_code | string | The language code of the review. |
review_url | string | The URL to the review. |
source_url | string | The URL of the source listing the review was collected from. |
review_management_response | string | The management response comment, or "" when there is none. |
management_response | object | null | The full management response object, or null when there is none. |
review_date | string | The date of the review. Format: YYYY-MM-DDTHH:mm:ss. |
reviewer | object | The reviewer profile object. |
meta_data | object | Additional metadata for the review. |
Management response object
| Property | Type | Description |
|---|---|---|
name | string | The name of the user who left the management response. |
date | string | The date the response was left. Format: YYYY-MM-DDTHH:mm:ss. |
comment | string | The comment left against the review. |
Reviewer object
| Property | Type | Description |
|---|---|---|
profile_source | string | The source of the reviewer profile, for example google. |
profile_id | string | The id of the reviewer profile. |
profile_url | string | The URL to the reviewer profile. |
profile_name | string | The name of the reviewer. |
profile_picture | string | The profile picture of the reviewer. |
Meta data object
| Property | Type | Description |
|---|---|---|
additional_ratings | object | Additional ratings such as atmosphere and cleanliness. |
review_feedback_ratings | object | Feedback ratings such as likes and downvotes. |
review_images | array | Array of image URLs associated with the review. |
Additional ratings object
| Property | Type | Description |
|---|---|---|
atmosphere | number | Rating of atmosphere (1 to 5). |
checkin_boarding | number | Rating of check in and boarding (1 to 5). |
cleanliness | number | Rating of cleanliness (1 to 5). |
food | number | Rating of food (1 to 5). |
legroom | number | Rating of legroom (1 to 5). |
location | number | Rating of location (1 to 5). |
seat_comfort | number | Rating of seat comfort (1 to 5). |
service | number | Rating of service (1 to 5). |
value | number | Rating of value (1 to 5). |
Feedback ratings object
| Property | Type | Description |
|---|---|---|
likes | number | The number of likes the review received. |
downvotes | number | The number of downvotes the review received. |
Payload:
json
{
"type": "new-reviews",
"data": {
"profile_uuid": "00000000-0000-0000-0000-000000000000",
"reviews": [
{
"review_uuid": "00000000-0000-0000-0000-000000000000",
"review_source": "google",
"review_title": "",
"review_text": "Great anvils, fast delivery.",
"review_rating": 5,
"language_code": "en",
"review_url": "",
"source_url": "",
"review_management_response": "Thanks for the review!",
"management_response": {
"name": "Coyote Anvils",
"date": "2025-03-02T09:15:00",
"comment": "Thanks for the review!"
},
"review_date": "2025-03-01T00:00:00",
"reviewer": {
"profile_source": "google",
"profile_id": "",
"profile_url": "",
"profile_name": "W. E. Coyote",
"profile_picture": ""
},
"meta_data": {
"additional_ratings": {
"atmosphere": 0,
"checkin_boarding": 0,
"cleanliness": 0,
"food": 0,
"legroom": 0,
"location": 0,
"seat_comfort": 0,
"service": 0,
"value": 0
},
"review_feedback_ratings": {
"likes": 0,
"downvotes": 0
},
"review_images": []
}
}
]
},
"created_at": "0001-01-01T00:00:00"
}Aggregations topics and taxonomies
Pascal case envelope
The four webhooks in this section use the Type / Data envelope, carry no created_at, nest their payload under a named object, and are signed with a base64 signature. See envelope shapes.
New topic
Summary: Provides the name, id and uuid of a topic that has been added for use within the aggregations, along with the taxonomies and sectors it is associated with.
Data:
| Property | Type | Description |
|---|---|---|
topic.topic_id | number | The id of the topic. |
topic.uuid | string | The uuid of the topic. |
topic.topic_name | string | The name of the topic. |
topic.associated_taxonomies | number[] | The ids of the taxonomies this topic belongs to. |
topic.associated_sectors | string[] | The uuids of the sectors this topic applies to. |
Payload:
json
{
"Type": "new-topic",
"Data": {
"topic": {
"topic_id": 1,
"uuid": "00000000-0000-0000-0000-000000000000",
"topic_name": "Service speed",
"associated_taxonomies": [1],
"associated_sectors": ["00000000-0000-0000-0000-000000000000"]
}
}
}Removed topic
Summary: Provides the name, id and uuid of a topic that has been removed from use within the aggregations.
Data:
| Property | Type | Description |
|---|---|---|
topic.topic_id | number | The id of the topic. |
topic.uuid | string | The uuid of the topic. |
topic.topic_name | string | The name of the topic. |
Payload:
json
{
"Type": "removed-topic",
"Data": {
"topic": {
"topic_id": 1,
"uuid": "00000000-0000-0000-0000-000000000000",
"topic_name": "Service speed"
}
}
}New taxonomy
Summary: Provides the name, id and uuid of a taxonomy that has been added for use within the aggregations.
Data:
| Property | Type | Description |
|---|---|---|
taxonomy.taxonomy_id | number | The id of the taxonomy. |
taxonomy.uuid | string | The uuid of the taxonomy. |
taxonomy.taxonomy_name | string | The name of the taxonomy. |
Payload:
json
{
"Type": "new-taxonomy",
"Data": {
"taxonomy": {
"taxonomy_id": 1,
"uuid": "00000000-0000-0000-0000-000000000000",
"taxonomy_name": "Service"
}
}
}Removed taxonomy
Summary: Provides the name, id and uuid of a taxonomy that has been removed from use within the aggregations.
Data:
| Property | Type | Description |
|---|---|---|
taxonomy.taxonomy_id | number | The id of the taxonomy. |
taxonomy.uuid | string | The uuid of the taxonomy. |
taxonomy.taxonomy_name | string | The name of the taxonomy. |
Payload:
json
{
"Type": "removed-taxonomy",
"Data": {
"taxonomy": {
"taxonomy_id": 1,
"uuid": "00000000-0000-0000-0000-000000000000",
"taxonomy_name": "Service"
}
}
}