Skip to main content

Action: Send a Webhook

Updated this week

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

  1. Open your HubSpot account > Automation > Workflows

  2. Create workflow from scratch

  3. Configure the desired trigger ( how workflow should start)

  4. Add an action > click "Data Ops" > click "Send a Webhook"

  5. 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

app.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 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

app.timelines.ai/integrations/api/messages

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?