Home / All Integrations / Hubspot CRM

pro

Connect Hubspot CRM to your chatbot

Manage CRM data on Hubspot CRM


Manage contacts and companies in Hubspot CRM.

To get started, create an API Key, in your Hubspot account settings under Integrations > API Key.

Companies

Hubspot API Reference: https://developers.hubspot.com/docs/api/crm/companies

Create

Create a new company.

do App(
  "hubspot/crm",
  object="companies"
  method="create",
  properties={
    "city": "Cambridge",
    "domain": "biglytics.net",
    "industry": "Technology",
    "name": "Biglytics",
    "phone": "(877) 929-0687",
    "state": "Massachusetts"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "city": "Cambridge",
      "createdate": "2019-10-30T03:30:17.883Z",
      "domain": "biglytics.net",
      "hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "industry": "Technology",
      "name": "Biglytics",
      "phone": "(877) 929-0687",
      "state": "Massachusetts"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }

Read

Retrieve a company by its ID

do App(
  "hubspot/crm",
  object="companies"
  method="read",
  id="512"
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "city": "Cambridge",
      "createdate": "2019-10-30T03:30:17.883Z",
      "domain": "biglytics.net",
      "hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "industry": "Technology",
      "name": "Biglytics",
      "phone": "(877) 929-0687",
      "state": "Massachusetts"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Update

Update an existing company.

do App(
  "hubspot/crm",
  object="companies"
  method="update",
  properties={
    "city": "Cambridge",
    "domain": "biglytics.net",
    "industry": "Technology",
    "name": "Biglytics",
    "phone": "(877) 929-0687",
    "state": "Massachusetts"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "city": "Cambridge",
      "createdate": "2019-10-30T03:30:17.883Z",
      "domain": "biglytics.net",
      "hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "industry": "Technology",
      "name": "Biglytics",
      "phone": "(877) 929-0687",
      "state": "Massachusetts"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Delete

Delete an existing company.

do App(
  "hubspot/crm",
  object="companies"
  method="delete",
  id="512"
)

Example response

{
  "success": true
}

Contacts

Hubspot API Reference: https://developers.hubspot.com/docs/api/crm/contacts

Create

Create a new contact.

do App(
  "hubspot/crm",
  object="contacts"
  method="create",
  properties={
    "company": "Biglytics",
    "email": "bcooper@biglytics.net",
    "firstname": "Bryan",
    "lastname": "Cooper",
    "phone": "(877) 929-0687",
    "website": "biglytics.net"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "company": "Biglytics",
      "createdate": "2019-10-30T03:30:17.883Z",
      "email": "bcooper@biglytics.net",
      "firstname": "Bryan",
      "lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "lastname": "Cooper",
      "phone": "(877) 929-0687",
      "website": "biglytics.net"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }

Read

Retrieve a contact by its ID

do App(
  "hubspot/crm",
  object="contacts"
  method="read",
  id="512"
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "company": "Biglytics",
      "createdate": "2019-10-30T03:30:17.883Z",
      "email": "bcooper@biglytics.net",
      "firstname": "Bryan",
      "lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "lastname": "Cooper",
      "phone": "(877) 929-0687",
      "website": "biglytics.net"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Update

Update an existing contact.

do App(
  "hubspot/crm",
  object="contacts"
  method="update",
  properties={
    "company": "Biglytics",
    "email": "bcooper@biglytics.net",
    "firstname": "Bryan",
    "lastname": "Cooper",
    "phone": "(877) 929-0687",
    "website": "biglytics.net"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "company": "Biglytics",
      "createdate": "2019-10-30T03:30:17.883Z",
      "email": "bcooper@biglytics.net",
      "firstname": "Bryan",
      "lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "lastname": "Cooper",
      "phone": "(877) 929-0687",
      "website": "biglytics.net"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Delete

Delete an existing contact.

do App(
  "hubspot/crm",
  object="contacts"
  method="delete",
  id="512"
)

Example response

{
  "success": true
}
Discover similar integrations:
Salesforce

Join the Community
on Slack Slack

Come and learn all about CSML with other chatbot enthusiasts on the CSML Community Slack! ūü§ó