DEVELOPER GUIDE

Authentication

2min

Introduction

Klavi API uses JWT tokens to authenticate requests.

With a accessKey and a secretKey you can get an token and pass it to the Authorization Header via bearer token.

Request it at /v1/auth passing int the body the JSON:

JSON


Usage example:

Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...uKHsXAvSDaK0RdV9xq3-OSrLA

All requests must be done via HTTPS. Authenticated requests must be submitted with the appropriate authorization header.

Grant authorization

Klavi provides two types of APIs: Product API and Management API. Although both use JWT token authentication method, because of the different use scenarios of the two APIs, different accessKey and secretKey are required.