Skip to main content

App Webhook

  • September 4, 2023
  • 10 replies
  • 377 views

rmrodrigues

Hi folks,
I’m receiving web hooks on my app but the web hook data structure is slight different from the one defined here:

monday apps framework

Example:

{
	"exp": 1693915983,
	"dat": {
		"client_id": "....",
		"user_id": .....,
		"account_id": ....,
		"slug": "...",
		"app_id": ...,
		"app_version_id": ...,
		"install_id": ....,
		"is_admin": true,
		"is_view_only": false,
		"is_guest": false,
		"user_kind": "admin"
	}
}

Any suggestions?

The app is not listed on the marketplace.

Cheers
rmrodrigues.

10 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 4, 2023

Hello there @rmrodrigues and welcome to the community!

Would you be able to please send this over to support using this form with an explanation on which webhook you are receiving (with which event) and the app ID, so we can take a closer look from there?

Looking forward to hearing from you!

Cheers,
Matias


  • Participating Frequently
  • September 5, 2023

That is the payload of the JWT. const payload = jwt.verify(authHeader, clientSecret), payload would have the structure you showed.

The data structure you are seeing in the documentation, is the body of the request.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 5, 2023

Thank you @anon29275264!

That might be the case here @rmrodrigues. But you can still reply in our email thread if you want!

Cheers,
Matias


rmrodrigues
  • Author
  • New Participant
  • September 5, 2023

In this case, the body is empty.

Cheers,

rmrodrigues.


  • Participating Frequently
  • September 5, 2023

How are you generating the webhook? You should be generating it when you install/uninstall the app from the “install” section (on the left menu, one item below “webhooks”).


rmrodrigues
  • Author
  • New Participant
  • September 5, 2023

That’s exactly what I’m doing. I think this worked in the past.


  • Participating Frequently
  • September 5, 2023

Still does for me.

Only other “obvious” thing is confirm you’re using https not http for the URL. I don’t think that would cause this for the body, but its only thing I can think of that could cause it. Beyond that its either some sort of issue on the monday side, or something odd on your backend.

If you find an answer let us know, in case anyone else encounters it.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 6, 2023

Hello there,

We are taking a look into it with our R&D team 😁


rmrodrigues
  • Author
  • New Participant
  • September 12, 2023

Hi there.
I’ve deleted the app and created a new one. This has solved my issue. So, now I’m receiving events correctly.

Cheers.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 12, 2023

Thank you for sharing this @rmrodrigues !