I would like to register decentral webhooks for our integration, but i got stuck at the first step when I need to request a code with the oAuth codeflow.
Here is the request url I created:
Our return url in decoded form, which is added to the Nuki Advanced Integration tab as a return url:
If i put this into my browser I get the following page:
Can someone help what I am doign wrong.
Hi, does anyone have any suggestion what could be the problem. Many thx!
I forwarded it to our devs to have a look at your problem I will get back to you soon.
Could you check please the redirect URL setting on the General tab Oauth2 Redirect URL field. We currently see that it’s not set.
Wow, finaly! Thank you for pointing it our, I mixed it with the webhook url input filed on the advanced API tab. I managed to get back the bearer token.
Okay, so I am following the instrustions of the decentral webhook setup:
So I managed to get a “code” from point 2.
In point 3. a POST resquest need to send, I am using postman application with develpoment, here are screens how I setup the request:
Just want to mention here that I am using the redirekt urel from the General tab of the Nuki web integration page in url encoded form.
In my understanding all setup as instructied but I receive the following response.
<title>400 Bad Request</title>
<h1>400 Bad Request</h1>
Any suggestion wnat is wrong with the request?
Many thx in advance!
Actually we must correct the documentation. To get the token from the code, the request must contain the header “Content-Type=application/x-www-form-urlencoded” and the parameters should be added in an URL encoded way:
grant_type=authorization_code&code=tN6-zB....&redirect_uri=https://...&scope=smartlock smartlock.auth account webhook.decentral
Screen for the Body: