Skip to content

Overview

This article will explain how you can authorize your API requests.

The REST API supports 2 methods of obtaining a bearer token; via an API Token, or using the OAuth 2 Authorization Code.

There are various benefits to either approach, but it really depends on your target use case.

API TokenOAuth 2 Authorization Code
Designed for individual usersDesigned for integrators and businesses
You can only access the devices registered in your Nuki Web accountYou can request access to the devices in other Nuki Web accounts
Simple to create and setup; ideal for users with less technical experienceMore complicated to setup
Do not expire; if they fall into the wrong hands, they can be exploited, just like a passwordGenerated access tokens expire periodically, increasing security

Take a more detailed look at the dedicated article for each type: