| title | HubSpot sample | ||
|---|---|---|---|
| description | Simple usage of the HubSpot API | ||
| integrations |
|
||
| categories |
|
This AutoKitteh project demonstrates integration with HubSpot.
It sends a couple of requests to the HubSpot API, adds a contact, retrieves deals, and prints the responses back to the user.
API details:
- Create a new contact in HubSpot with predefined details
- Retrieve and list all deals from HubSpot, displaying their IDs and names
- Initialize your HubSpot connection
- Copy the webhook URLs from the "Triggers" tab (see the instructions here)
Important
Ensure the HubSpot connection is properly initialized; otherwise the workflow will raise a ConnectionInitError.
Send HTTP GET and POST requests to the webhook URLs from step 2 in the Cloud Usage section above.
For create_contact_webhook:
curl -i -X POST "${WEBHOOK_URL}" -d email=meow@autokitteh.com \
-d firstname=Kitty -d lastname=MeowingtonFor list_deals_webhook:
curl -i "${WEBHOOK_URL}"Tip
The list_deals workflow can also be triggered manually by clicking the "Run" button in the UI, and setting the list_deals function as the entry point.
Follow these detailed instructions to deploy the project on a self-hosted server.