Skip to content

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:

HeaderSent byDescription
X-Depot-HMAC-SignatureAll webhooksHMAC-SHA256 of the exact request body bytes, keyed on your client secret.
X-Depot-TimestampCompany, sector, site and profile webhooks onlyThe 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.

SourceEventsSignature encoding
Companiescompany-added, company-updated, company-removed, sector-added, sector-updated, sector-removed, profile-added, site-merged, site-moved, profile-movedLowercase hex
Reviewsnew-reviewsBase64
Admindeleted-profile, new-topic, removed-topic, new-taxonomy, removed-taxonomyBase64

Envelope shapes ​

Most webhooks use a lower case envelope:

PropertyTypeDescription
typestringThe event type, for example company-added.
dataobjectThe event payload.
created_atstringWhen 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:

PropertyTypeDescription
TypestringThe event type, for example new-topic.
DataobjectA 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:

PropertyTypeDescription
company_uuidstringThe uuid of the company.
company_namestringThe 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:

PropertyTypeDescription
company_uuidstringThe uuid of the company.
company_namestringThe 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:

PropertyTypeDescription
company_uuidstringThe uuid of the company.
company_namestringThe 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:

PropertyTypeDescription
sector_uuidstringThe uuid of the sector.
sector_namestringThe 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:

PropertyTypeDescription
sector_uuidstringThe uuid of the sector.
sector_namestringThe 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:

PropertyTypeDescription
sector_uuidstringThe uuid of the sector.
sector_namestringThe 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:

PropertyTypeDescription
company_uuidstringThe uuid of the company that the profile has been added to.
company_namestringThe name of the company that the profile has been added to.
site_uuidstringThe uuid of the site that the profile has been added to.
site_namestringThe name of the site that the profile has been added to.
profile_uuidstringThe 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:

PropertyTypeDescription
old_site_uuidstringThe uuid of the site that was removed.
old_site_namestringThe name of the site that was removed.
new_site_uuidstringThe uuid of the surviving site.
new_site_namestringThe name of the surviving site.
old_company_uuidstringThe uuid of the company the removed site belonged to.
old_company_namestringThe name of the company the removed site belonged to.
new_company_uuidstringThe uuid of the company the surviving site belongs to.
new_company_namestringThe 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:

PropertyTypeDescription
site_uuidstringThe uuid of the site that moved.
site_namestringThe name of the site that moved.
old_company_uuidstringThe uuid of the company the site moved from.
old_company_namestringThe name of the company the site moved from.
new_company_uuidstringThe uuid of the company the site moved to.
new_company_namestringThe 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:

PropertyTypeDescription
profile_uuidstringThe uuid of the profile that moved.
profile_typestringThe review source of the profile, for example google or tripadvisor.
old_company_uuidstringThe uuid of the company the profile moved from.
old_company_namestringThe name of the company the profile moved from.
old_site_uuidstringThe uuid of the site the profile moved from.
old_site_namestringThe name of the site the profile moved from.
new_company_uuidstringThe uuid of the company the profile moved to.
new_company_namestringThe name of the company the profile moved to.
new_site_uuidstringThe uuid of the site the profile moved to.
new_site_namestringThe 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:

PropertyTypeDescription
profile.profile_uuidstringThe uuid of the deleted profile.
profile.profile_referencestringThe 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

PropertyTypeDescription
profile_uuidstringThe uuid of the profile the reviews were collected for.
reviewsarrayArray of review objects.

Review object

PropertyTypeDescription
review_uuidstringThe uuid of the review.
review_sourcestringThe source of the review, for example google or tripadvisor.
review_titlestringThe title of the review.
review_textstringThe text content of the review.
review_ratingnumberThe rating of the review (1 to 5).
language_codestringThe language code of the review.
review_urlstringThe URL to the review.
source_urlstringThe URL of the source listing the review was collected from.
review_management_responsestringThe management response comment, or "" when there is none.
management_responseobject | nullThe full management response object, or null when there is none.
review_datestringThe date of the review. Format: YYYY-MM-DDTHH:mm:ss.
reviewerobjectThe reviewer profile object.
meta_dataobjectAdditional metadata for the review.

Management response object

PropertyTypeDescription
namestringThe name of the user who left the management response.
datestringThe date the response was left. Format: YYYY-MM-DDTHH:mm:ss.
commentstringThe comment left against the review.

Reviewer object

PropertyTypeDescription
profile_sourcestringThe source of the reviewer profile, for example google.
profile_idstringThe id of the reviewer profile.
profile_urlstringThe URL to the reviewer profile.
profile_namestringThe name of the reviewer.
profile_picturestringThe profile picture of the reviewer.

Meta data object

PropertyTypeDescription
additional_ratingsobjectAdditional ratings such as atmosphere and cleanliness.
review_feedback_ratingsobjectFeedback ratings such as likes and downvotes.
review_imagesarrayArray of image URLs associated with the review.

Additional ratings object

PropertyTypeDescription
atmospherenumberRating of atmosphere (1 to 5).
checkin_boardingnumberRating of check in and boarding (1 to 5).
cleanlinessnumberRating of cleanliness (1 to 5).
foodnumberRating of food (1 to 5).
legroomnumberRating of legroom (1 to 5).
locationnumberRating of location (1 to 5).
seat_comfortnumberRating of seat comfort (1 to 5).
servicenumberRating of service (1 to 5).
valuenumberRating of value (1 to 5).

Feedback ratings object

PropertyTypeDescription
likesnumberThe number of likes the review received.
downvotesnumberThe 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:

PropertyTypeDescription
topic.topic_idnumberThe id of the topic.
topic.uuidstringThe uuid of the topic.
topic.topic_namestringThe name of the topic.
topic.associated_taxonomiesnumber[]The ids of the taxonomies this topic belongs to.
topic.associated_sectorsstring[]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:

PropertyTypeDescription
topic.topic_idnumberThe id of the topic.
topic.uuidstringThe uuid of the topic.
topic.topic_namestringThe 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:

PropertyTypeDescription
taxonomy.taxonomy_idnumberThe id of the taxonomy.
taxonomy.uuidstringThe uuid of the taxonomy.
taxonomy.taxonomy_namestringThe 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:

PropertyTypeDescription
taxonomy.taxonomy_idnumberThe id of the taxonomy.
taxonomy.uuidstringThe uuid of the taxonomy.
taxonomy.taxonomy_namestringThe name of the taxonomy.

Payload:

json
{
    "Type": "removed-taxonomy",
    "Data": {
        "taxonomy": {
            "taxonomy_id": 1,
            "uuid": "00000000-0000-0000-0000-000000000000",
            "taxonomy_name": "Service"
        }
    }
}