Skip to main content

Action - Send a Webhook

Updated over 2 weeks ago

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

  • 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 URL

Query parameters, add desired static values here.

Example: group = false and label=Sales

Authentication type

API key

API key

Add 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 location

Request header

Test action

Test the request. Make sure to execution is successful and returns status code 200

POST : Send message to phone number

Webhook URL

Authentication type

API key

API key

Add 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 location

Request header

Request body

Select "Customize request body".

Customize request body

Add property with key phone . Select the Phone Number as a value

Customize request body

Add static value with key whatsapp_account_phone . Type your own Phone Number in an International format as a value

Customize request body

Add static value with key text . Add desired WhatsApp message text as a value

Test action

Test the request. Make sure to execution is successful and returns status code 200

Did this answer your question?