Articles on: HubSpot Workflows

Action: Send a Webhook

via HubSpot Workflows

This article contains examples of "Send a webhook" HubSpot action with TimelinesAI Public API.

Open your HubSpot account > Automation > Workflows
Create workflow from scratch
Configure the desired trigger ( how workflow should start)
Add an action > click "Data Ops" > click "Send a Webhook"
Select the desired Method: GET or POST

TimelinesAI Public API supports the following GET and POST requests: https://app.timelines.ai/integrations/api/redoc . Below are examples for each request type.

GET : Get a full or filtered list of all chats in TimelinesAI Workspace



Webhook URLapp.timelines.ai/integrations/api/chats
Query parameters. Add desired static values here.Supported parameters: https://app.timelines.ai/integrations/api/redoc#/paths/~1chats/get. Example: group = false and label=Sales
Authentication typeAPI key
API keyAdd secret. Name must be Authorization and value must be Bearer XXX, where XXX must be replaced with your TimelinesAI token from https://app.timelines.ai/integrations/api/
API key locationRequest header
Test actionTest the request. Make sure to execution is successful and returns status code 200


POST : Send message to phone number



Webhook URLapp.timelines.ai/integrations/api/messages
Authentication typeAPI key
API keyAdd secret. Name must be Authorization and value must be Bearer XXX, where XXX must be replaced with your TimelinesAI token from https://app.timelines.ai/integrations/api/
API key locationRequest header
Request bodyCustomize request body. Supported keys: https://app.timelines.ai/integrations/api/redoc#/paths/~1messages/post
Customize request bodyAdd property with key phone . Select the Phone Number as a value
Customize request bodyAdd static value with key whatsapp_account_phone . Type your own Phone Number in an International format as a value
Customize request bodyAdd static value with key text . Add desired WhatsApp message text as a value
Test actionTest the request. Make sure to execution is successful and returns status code 200

Updated on: 06/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!