Skip to main content
Question

Unable to create Webhook

  • May 22, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

Hi Team,

While I am creating webhook on a folder, getting 400 Bad request exception.

This is my request body which I am passing along with request.

{
  "target": {
    "id": "124648447279",
    "type": "folder"
  },
  "address": "http://localhost:8080/box/callback/webhooks",
  "triggers": [
    "FILE.UPLOADED"
  ]
}
 
And this is the response which I getting.
 
{
    "type": "error",
    "status": 400,
    "code": "bad_request",
    "context_info": {
        "errors": [
            {
                "reason": "invalid_parameter",
                "name": "address",
                "message": "Invalid address specified."
            }
        ]
    },
    "message": "Bad Request",
    "request_id": "au5m8qgjx4h0ihb0"
}
 
We are using http://localhost:8080/ for the testing purpose here. Kindly let us know, what is the wrong with address parameter here, We will really appreciate if some one can help us on this.
 
Thanks
-Vivek
 

1 reply

Forum|alt.badge.img

Hi Vivek

The Box webhook is an event that is fired from the Box platform, so referencing localhost will not work, it has to be a publicly available endpoint. See https://developer.box.com/guides/webhooks/limitations/

For initial testing purposes, we recommend you use something like https://webhook.site/ which automatically creates a URL for you and shows the webhook payload directly in the browser. For further deployment, most cloud computing providers have a serverless offering that is well suited for webhooks. AWS Lambdas, Azure Web Functions etc.

Best Regards,
Peter Christensen, Platform Solutions Engineer, Box