Forum

Browse topics, discover Works With Legrand community!

Webhook verification issue

Hello everyone,

I can’t verify my webhook.

I registered my webhook via the request form but I haven’t received the verification code.

 

Could someone help me?

Thank you

Hello Raffaele,

I suppose you used this form : https://developer.legrand.com/request-to-create-a-webhook-for-home-control/

If yes, I didn’t receive your request. Can you please try to redo it and tell me once done ?

Concerning the verificationCode, we don’t send one. We just need you to put in the body of your webpage :

“validationCode”: “7d4b4c96-4964-4763-abdd-b9a1efdef632

It’s a way for us to be sure that you are the owner of the endpoint

Have a good day,

Leslie – Community Manager

Hello Lesli,

I done a new request right now.

But which verificationCode I have to put in my request body?

 

Thank you

Raffaele,

I well received it. You can just simply write the sentence : “validationCode”: “7d4b4c96-4964-4763-abdd-b9a1efdef632” and it will be OK for me. I’ll then warn you when the manual verification will be done

Have a good day,

Leslie – Community Manager

Goog morning Leslie,

4 days ago I received a POST request with the validationCode (that is different from the validationCode into your previous post).

So I made a new request via my app with my authorization code and my subscription key into the header, and my plantid and the validationCode received into the body.

But I get 400 error code.

Hello,

is it possible that after a certain period of time the subscription to events for a plant expire?

 

Hello Raffaele,

The validationCode has just to be set up once, and it’s for webhooks only. It’s the way for us to verify that the endpoint you requested actually belong to you

Maybe you are talking about the /authorize request, according to get a “code” value to be used then in your /token request ? (step 1 from the tutorial : https://developer.legrand.com/tutorials/0auth2-end-point-url/). This code starts with eyJra….

Can you please confirm ?

Have a good day,

Leslie – Community Manager

No,

sometimes my webhook doesn’t receive the scene event.

I trigger a scene, for example the Home scene via the wireless Home/Away scenario controls (https://catalogue.bticino.com/BTI-K4570CW-EN) but my webhook doesn’t receive anythings.

Then after a random quantity of time I press another time the command and my webhook receive the event

Raffaele,

On my side your subscription seems still active

<span style=”color: #575757; font-family: ‘Segoe UI’, ‘Noto Sans’, sans-serif;”>”sometimes my webhook doesn’t receive the scene event.” <= </span>do you know in which conditions it happens ?

You could try to redo a call to /addsubscription method (https://portal.developer.legrand.com/docs/services/59e9ad7f8bda9e0b3caea28c/operations/addsubscription) and launch a scene via your app to see if you receive a webhook alert for it

Have a good day,

Leslie – Community Manager

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.