Authentication
2 min
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:
{
"accessKey": "L0l1a2v3i4",
"secretKey": "TtMdrH&a8MfjdyUnFs*#dypaX15%qpXtXQt2n$"
}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: Customer 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.