Skip to content

Hubspot

HubSpot is a CRM platform with all the software, integrations, and resources you need to connect marketing, sales, content management, and customer service.

Categories: marketing-automation

Type: hubspot/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue
hapikeyHubspot API KeySTRINGAPI Key is used for registering webhooks.false

Actions

Delete Contact

Name: deleteContact

Move Contact to the recycling bin.

Properties

NameLabelTypeDescriptionRequired
contactIdContact IDSTRINGtrue

Example JSON Structure

{
"label" : "Delete Contact",
"name" : "deleteContact",
"parameters" : {
"contactId" : ""
},
"type" : "hubspot/v1/deleteContact"
}

Output

This action does not produce any output.

Get Contact

Name: getContact

Get contact details.

Properties

NameLabelTypeDescriptionRequired
contactIdContact IDSTRINGtrue

Example JSON Structure

{
"label" : "Get Contact",
"name" : "getContact",
"parameters" : {
"contactId" : ""
},
"type" : "hubspot/v1/getContact"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the newly created contact.
propertiesOBJECT
Properties {STRING(firstname), STRING(lastname), STRING(email), STRING(phone), STRING(company), STRING(website)}

Output Example

{
"id" : "",
"properties" : {
"firstname" : "",
"lastname" : "",
"email" : "",
"phone" : "",
"company" : "",
"website" : ""
}
}

Update Contact

Name: updateContact

Update Contact properties.

Properties

NameLabelTypeDescriptionRequired
contactIdContactSTRINGtrue
propertiesPropertiesOBJECT
Properties {STRING(firstname), STRING(lastname), STRING(email), STRING(phone), STRING(company), STRING(website)}
false

Example JSON Structure

{
"label" : "Update Contact",
"name" : "updateContact",
"parameters" : {
"contactId" : "",
"properties" : {
"firstname" : "",
"lastname" : "",
"email" : "",
"phone" : "",
"company" : "",
"website" : ""
}
},
"type" : "hubspot/v1/updateContact"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the newly created contact.
propertiesOBJECT
Properties {STRING(firstname), STRING(lastname), STRING(email), STRING(phone), STRING(company), STRING(website)}

Output Example

{
"id" : "",
"properties" : {
"firstname" : "",
"lastname" : "",
"email" : "",
"phone" : "",
"company" : "",
"website" : ""
}
}

Create Contact

Name: createContact

Create a contact with the given properties.

Properties

NameLabelTypeDescriptionRequired
propertiesPropertiesOBJECT
Properties {STRING(firstname), STRING(lastname), STRING(email), STRING(phone), STRING(company), STRING(website)}
false

Example JSON Structure

{
"label" : "Create Contact",
"name" : "createContact",
"parameters" : {
"properties" : {
"firstname" : "",
"lastname" : "",
"email" : "",
"phone" : "",
"company" : "",
"website" : ""
}
},
"type" : "hubspot/v1/createContact"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the newly created contact.
propertiesOBJECT
Properties {STRING(firstname), STRING(lastname), STRING(email), STRING(phone), STRING(company), STRING(website)}

Output Example

{
"id" : "",
"properties" : {
"firstname" : "",
"lastname" : "",
"email" : "",
"phone" : "",
"company" : "",
"website" : ""
}
}

Create Deal

Name: createDeal

Creates a new deal.

Properties

NameLabelTypeDescriptionRequired
propertiesPropertiesOBJECT
Properties {STRING(dealname), NUMBER(amount), DATE(closedate), STRING(pipeline), STRING(dealstage), STRING(hubspot_owner_id)}
false

Example JSON Structure

{
"label" : "Create Deal",
"name" : "createDeal",
"parameters" : {
"properties" : {
"dealname" : "",
"amount" : 0.0,
"closedate" : "2021-01-01",
"pipeline" : "",
"dealstage" : "",
"hubspot_owner_id" : ""
}
},
"type" : "hubspot/v1/createDeal"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the deal.
propertiesOBJECT
Properties {STRING(dealname), NUMBER(amount), DATE(closedate), STRING(pipeline), STRING(dealstage), STRING(hubspot_owner_id)}

Output Example

{
"id" : "",
"properties" : {
"dealname" : "",
"amount" : 0.0,
"closedate" : "2021-01-01",
"pipeline" : "",
"dealstage" : "",
"hubspot_owner_id" : ""
}
}

Get Ticket

Name: getTicket

Gets ticket details.

Properties

NameLabelTypeDescriptionRequired
ticketIdTicket IDSTRINGtrue

Example JSON Structure

{
"label" : "Get Ticket",
"name" : "getTicket",
"parameters" : {
"ticketId" : ""
},
"type" : "hubspot/v1/getTicket"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the ticket
propertiesOBJECT
Properties {STRING(content), STRING(hs_object_id), STRING(hs_pipeline), STRING(hs_pipeline_stage), STRING(hs_ticket_priority), STRING(subject)}

Output Example

{
"id" : "",
"properties" : {
"content" : "",
"hs_object_id" : "",
"hs_pipeline" : "",
"hs_pipeline_stage" : "",
"hs_ticket_priority" : "",
"subject" : ""
}
}

Triggers

New Contact

Name: newContact

Triggers when new contact is created.

Type: DYNAMIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
appIdApp IdSTRINGThe id of a Hubspot app used to register this trigger to.true

Output

Type: OBJECT

Properties

NameTypeDescription
eventIdSTRINGID of the event that triggered the workflow.
subscriptionIdSTRINGID of the subscription associated with this webhook event.
subscriptionTypeSTRINGType of the subscription, indicating the nature of event.
objectIdSTRINGID for the newly created contact.

JSON Example

{
"label" : "New Contact",
"name" : "newContact",
"parameters" : {
"appId" : ""
},
"type" : "hubspot/v1/newContact"
}

New Deal

Name: newDeal

Triggers when a new deal is added.

Type: DYNAMIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
appIdApp IdSTRINGThe id of a Hubspot app used to register this trigger to.true

Output

Type: OBJECT

Properties

NameTypeDescription
eventIdSTRINGID of the event that triggered the workflow.
subscriptionIdSTRINGID of the subscription associated with this webhook event.
subscriptionTypeSTRINGType of the subscription, indicating the nature of event.
objectIdSTRINGID for the newly created deal.

JSON Example

{
"label" : "New Deal",
"name" : "newDeal",
"parameters" : {
"appId" : ""
},
"type" : "hubspot/v1/newDeal"
}

New Ticket

Name: newTicket

Triggers when new ticket is created.

Type: DYNAMIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
appIdApp IdSTRINGThe id of a Hubspot app used to register this trigger to.true

Output

Type: OBJECT

Properties

NameTypeDescription
eventIdSTRINGID of the event that triggered the workflow.
subscriptionIdSTRINGID of the subscription associated with this webhook event.
subscriptionTypeSTRINGType of the subscription, indicating the nature of event.
objectIdSTRINGID for the newly created ticket.

JSON Example

{
"label" : "New Ticket",
"name" : "newTicket",
"parameters" : {
"appId" : ""
},
"type" : "hubspot/v1/newTicket"
}