Hubspot

Hubspot

Creates a new company in Hubspot whenever an event is triggered.

Configuration

OptionDescription
Hubspot connection
Type: integration
Required: True
Company ID
Type: string
Required: True

A unique identifier that you assign to a company.

Property mapping
Type: dictionary
Required: True

Map any event properties to Hubspot properties.

Using our REST API you can create this destination like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "destination",
"name": "Hubspot",
"inputs": {
"oauth": {
"value": ""
},
"companyId": {
"value": ""
},
"properties": {
"value": ""
}
},
"enabled": true,
"template_id": "template-hubspot-company"
}'

Community questions

Questions about this page? or post a community question.