Hubspot (Webhook)
HubSpot Webhook Configuration
This guide explains how to configure HubSpot webhooks and connect them to OnLink so CRM events — such as a new deal — can create or update tickets in the configured Jira or JSM project.
HubSpot sends a lightweight event that identifies the record that changed. OnLink uses the HubSpot access token you provide to retrieve the full record, so any HubSpot property can be mapped to Jira fields.
Here's a quick video showing the integration between HubSpot and OnLink:
At a glance
Setting | Value |
|---|---|
Where to configure | HubSpot app → Webhooks tab (Target URL + subscriptions) |
Format / method | JSON array of events / POST |
Authentication | Request signing with the app's client secret ( |
OnLink auth scheme |
|
Example event | DEAL.CREATION |
Before you begin
Confirm you are a HubSpot Super Admin, or have permission to create and manage apps in HubSpot.
Have a HubSpot app (a private app works) with read scopes for the objects you'll subscribe to, e.g.
crm.objects.deals.read. You'll need its access token and client secret.Confirm that the target OnLink webhook mapping and Jira project are available.
Review the OnLink Webhooks documentation before you start.
1. Review the HubSpot webhook requirements
Review HubSpot's webhooks documentation, including subscription types and request validation:
2. Configure authentication in OnLink
Open the OnLink webhook mapping and add the following configuration parameters:
config:auth_scheme=request_signing_hubspot
config:signature_token=<client secret from HubSpot app>
config:hubspot_url=https://api.hubapi.com/crm/v3/
config:hubspot_api_key=<access token from HubSpot app>Parameter | Purpose |
|---|---|
| The app's client secret. HubSpot signs every request with it; OnLink uses it to verify the signature. |
| HubSpot CRM API base URL that OnLink calls to retrieve the record. |
| The app's access token, used to retrieve the record identified in the event. |
Security: Treat the client secret and access token as passwords. Do not commit them to source control or include them in screenshots, tickets, or chat. If you rotate either in HubSpot, update OnLink at the same time.
3. Create the webhook subscription in HubSpot
In HubSpot, open your app and go to its Webhooks tab.
Under Target URL, enter the OnLink webhook URL.
Click Create subscription and choose the object and event — for example, Deal → Created, or Deal → Property changed with the property you care about (e.g.
dealstage).Save the subscription, then make sure it is active — new subscriptions can start paused.
Copy the app's client secret and access token into OnLink (step 2).
4. Verify the HubSpot webhook payload
HubSpot delivers a JSON array of events; a single request can batch up to 100 events. Here is a sample payload for a deal.creation event:
[
{
"eventId": 3816279340,
"subscriptionId": 2481039,
"portalId": 44871022,
"appId": 3165421,
"occurredAt": 1761847512345,
"subscriptionType": "deal.creation",
"attemptNumber": 0,
"objectId": 18842291045,
"changeFlag": "CREATED",
"changeSource": "CRM_UI",
"sourceId": "userId:62015438"
}
]The event only identifies the record (objectId). OnLink uses config:hubspot_api_key to retrieve the deal from the CRM API, which returns a record like this — these are the fields you map in step 5:
{
"id": "18842291045",
"properties": {
"dealname": "Acme Corp – Annual Subscription",
"amount": "48000",
"dealstage": "contractsent",
"pipeline": "default",
"closedate": "2026-11-30T17:00:00Z",
"createdate": "2026-10-30T18:05:12.345Z",
"hubspot_owner_id": "62015438"
},
"createdAt": "2026-10-30T18:05:12.345Z",
"updatedAt": "2026-10-30T18:05:14.120Z",
"archived": false
}Property change events (e.g. deal.propertyChange) also include propertyName and propertyValue for the property that changed.
5. Configure the OnLink field mapping
Map values from the retrieved HubSpot record to the Jira fields OnLink populates when it creates the ticket. The sample below uses the deal ID as the key and maps deal name, amount, stage and dates to custom fields.
key:id=customfield_10121
map:properties.dealname=customfield_10065
map:properties.amount=customfield_10066
map:properties.dealstage=customfield_10104
map:properties.closedate=customfield_10105
map:properties.createdate=customfield_10053Syntax | Purpose |
|---|---|
| The HubSpot record ID (same as |
| Any HubSpot property on the record, by its internal name, e.g. |
Any property supported by HubSpot can be mapped this way. To list every deal property and its internal name, call GET https://api.hubapi.com/crm/v3/properties/deals with your access token. Replace the customfield_XXXXX IDs with the field IDs from your Jira project.
6. Test and confirm ticket creation
Create a test deal in HubSpot (or trigger the event you subscribed to).
Review the OnLink Job logs for signature, retrieval or parsing errors.
Verify that a ticket was created in the configured Jira project.
Check that the mapped fields contain the expected values — especially the deal ID, name, amount and stage.
Troubleshooting
Signature failure: Confirm that
config:auth_schemeisrequest_signing_hubspotand thatconfig:signature_tokenis the client secret of the same app that owns the webhook subscription.No events arrive: Confirm the Target URL is the OnLink webhook URL and that the subscription is active, not paused.
Ticket created but fields are empty: Check
config:hubspot_api_keyand that the app has read scope for the object (e.g.crm.objects.deals.read). Confirm property internal names with the properties API.Duplicate tickets: Property change subscriptions fire for every change. Subscribe only to the events and properties you need.
For any other errors, check the OnLink Job logs.
Completion criteria: The webhook subscription is active in HubSpot, signature validation succeeds, the selected events are delivered to OnLink, and OnLink creates a correctly populated ticket in the configured project.