Hi everyone, 
I’m new to API integrations, and I’m trying to automate keypad code creation for my guests using the Nuki Web API and a Google Apps Script.
OAuth2 seems correctly configured:
I followed the documentation and successfully obtained the access token via my own redirect URI (hosted on Netlify). The token is refreshed properly, and my API requests are returning HTTP 200 or 204 responses without errors.
However, when trying to create a type: 13
authorization (keypad code) for either of my two Smart Locks, no code appears in the Nuki app or on web.nuki.io.
Additionally, on the web.nuki.io interface, I cannot save the redirect URL in the API section — it throws a 500 Internal Server Error
. Could this be related?
My goal: Automatically generate a 6-digit code (based on the guest’s phone number) and assign it to both locks when a reservation email arrives.
Has anyone else experienced this issue?
Could the fact that the redirect URI can’t be saved be blocking the API in some way?
Thanks a lot for any help or guidance! 
Fred
Hi Fred 
You are correct, there is an error at the moment with regards to updating your redirect URL. We’re currently fixing this and hope to release an update within the next couple of days. I’ll let you know as soon as that update has been released.
The problem above is most likely having some impact on your ability to create keypad codes at the moment, so I kindly ask for your patience and to try again in a couple of days when the issue has been resolved. Additionally, please take note that our Web API is asynchronous, meaning 200 and 204 status codes do not necessarily mean the request was successful. Please refer to page 36 in the API documentation (v 1.5.3) for more information.
Hi Andrew,
Thank you very much for your quick reply and for the information
.
I appreciate your team’s efforts to resolve the redirect URL issue
. I’ll be patient and will test the keypad code creation again once the update is released.
By the way, I don’t have access to the full API documentation (v1.5.3) and can’t find page 36 as mentioned
.
Could you please share a link to the document or point me to the relevant section about asynchronous responses and status codes?
Thanks again for your support—looking forward to seeing the fix in action soon! 
Best regards,
Fred
Hi Fred,
You can find the API documentation for download here: Nuki Web API
I’ll keep you updated as soon as the aforementioned issue is fixed.
Kind regards,
Andrew