Authentication
Last updated
Last updated
To create an API key, please refer to step 3 of .
Once you have an API key you will pass the key to the nlapi endpoint with the header {"nlapi-key" : "[YOUR_KEY]""}
.
In addition to passing an api-key to the NLAPI you need to pass your user's authentication token.
To take advantage of user permissions you already have set up with your api, we need to give you a way to pass-through authentication. Therefore the Authorization header that you pass to the NLAPI for a call will be forwarded to your application. This way you can identify your user as you normally would. Some developers generate a unique access token for a user to use the NLAPI specifically.
When using Devii's Authentication system, you can authenticate your users as you normally would with Devii. Then just pass the following header to the NLAPI {"Authorization" : "Bearer [ACCESS_TOKEN]"}
and all the policies you have for that user will apply to the NLAPI during that run.