{
  "tool": "hubspot",
  "format": "steps",
  "artifact": [
    "In HubSpot, create a deal-based workflow that starts when the deal enters the stage \"Paid\" (or the stage you use for a client who has accepted).",
    "Add a \"Send a webhook\" action: method POST, URL https://dashboard.sintr.dev/api/automation/drafts/{siteId}/publish where {siteId} is the deal property \"Sintr site ID\". Add the header Authorization: Bearer {{SINTR_TOKEN}}.",
    "Create a custom deal property named \"Sintr site ID\" (single-line text).",
    "Store siteId on the deal: your n8n or Clay step that creates the draft writes the siteId from the site.draft_ready event (data.siteId) into that property.",
    "Receive Sintr events in HubSpot through a workflow webhook trigger or a middle step such as n8n, and verify the Sintr-Signature header with {{SINTR_SIGNING_SECRET}}."
  ],
  "notes": [
    "Dedupe on the Sintr-Event-Id header: a delivery can rarely be sent twice, so ignore an event id you have already handled.",
    "Add ?org=<organisation id> to the Sintr URLs only if your token covers more than one organisation.",
    "Replace {{SINTR_TOKEN}} with an automation token.",
    "HubSpot cannot compute the signature check itself, so route events through a step that can run code."
  ]
}