APIs & Integrations

JAMoore
Member

Testing Webhooks in different environment

My company has 3 different environment: development, staging, and production.

 

I am working on creating a public app to access HubSpot's API, add some custom properties and use Webhooks.

 

My question is, what is the expected workflow for Webhooks to be tested when only a single URL can be configured?

 

Only workaround I can think of is to create a app for each environment, but I am not sure if that will be hard to maintain. As I want the apps to all be the same except for where the webhook events are sent. 

0 Upvotes
2 Replies 2
CNonato
Contributor

Testing Webhooks in different environment

Hi I was wondering if I can have 3 different targets URL for my app webhook? I want one for each environment we have (tst, acc and prd) but using the same webhook.

 

thanks and sorry if it's dumb, I'm asking in the name of my devs 🙂

 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Testing Webhooks in different environment

Hi, @CNonato 👋 Definitely no dumb questions here.

 

Looking at the developer documentation for Webhooks, there is only one targetURL field. 

 

One question — have you investigated using Webhooks in Workflows for this project? They have the same restriction, only one targetURL field, but you can set more than one as an action.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes