Skip to main content
Question

Create Webhook V2 with primary key

  • May 22, 2025
  • 2 replies
  • 51 views

Forum|alt.badge.img

Hello

I need to post event to a third party application from Box via Webhook. Can someone guide me on how to set primary key and secondary key in Webhook V2 via api?

I don't see it in payload at https://developer.box.com/reference/post-webhooks/ 

Thanks,

Bakul

2 replies

Forum|alt.badge.img

You configure the Primary and Secondary keys on the configuration page for your Box application within the developer console (these keys are global for your app).  Configuring these are optional, but do provide you with an added layer of security.

These keys will be returned in the headers of the webhook payload that is fired from Box for the events you subscribe to.  See the details here:
V2 Webhooks - Box Developer Documentation


You can then grab the values from the headers and use them to validate the authenticity of the webhook payload.

Hope this helps,

Tim


Forum|alt.badge.img

"You configure the Primary and Secondary keys on the configuration page for your Box application within the developer console (these keys are global for your app)."   -- This helps to connect the dots. Thanks a lot.