# Testing Webhooks in different environment

**URL:** <https://community.hubspot.com/t/testing-webhooks-in-different-environment/90476>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [September 26, 2023, 11:34am UTC](https://community.hubspot.com/t/testing-webhooks-in-different-environment/90476 "2023-09-26T11:34:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAMoore](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@JAMoore](https://community.hubspot.com/u/JAMoore)\
**Post date:** [September 26, 2023, 11:34am UTC](https://community.hubspot.com/t/testing-webhooks-in-different-environment/90476/1 "2023-09-26T11:34:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![CNonato](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@CNonato](https://community.hubspot.com/u/CNonato)\
**Post date:** [September 25, 2023, 1:41pm UTC](https://community.hubspot.com/t/testing-webhooks-in-different-environment/90476/2 "2023-09-25T13:41:18Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 26, 2023, 5:24pm UTC](https://community.hubspot.com/t/testing-webhooks-in-different-environment/90476/3 "2023-09-26T17:24:33Z")

</div>

Hi, @CNonato 👋 Definitely no dumb questions here.

Looking at the [developer documentation for Webhooks](https://developers.hubspot.com/docs/api/webhooks#manage-settings-in-your-developer-account:~:text=the%20Target%20URL%20field%2C%20enter%20the%20URL%20that%20HubSpot%20will%20make%20a%20POST%20request%20to%20when%20events%20trigger.), there is only one targetURL field.

One question — have you investigated using [Webhooks in Workflows](https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows#:~:text=a%20JSON%20object.-,Customize%20your%20POST%20request,-If%20you%27re%20setting) for this project? They have the same restriction, only one targetURL field, but you can set more than one as an action.

Best,

Jaycee
