Authentciation
Authentication Token Generation 🛡️
Overview
To interact with our API, you will need an authentication token. Please refrain from generating a new token for each request. Tokens are valid for 24 hours.
Getting Started
Initially, you have to register yourself here Signup LLA. With your e-mail and password you can generate your token. Important: at the moment we have no staging enviornment and you will test on production.
📧 For going on production, please contact: [email protected]
Authentication Endpoint
POST /api/authenticate
Request
Provide the username and password in the body of your request:
{
"username": "your_username",
"password": "your_password"
}
Response
A successful response returns a JSON object containing the bearer token which you will use for subsequent API requests.
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJccrhGZbraHoi3HGGJWA",
"expiresInMinutes": 1440
}
Errors
If there's an error with the authentication (e.g., incorrect credentials), the server will return an error response:
{
"error": "Unauthorized",
"message": "Authentication failed due to invalid credentials."
}
Updated 9 months ago