cURL
curl --request POST \ --url https://api.logfleet.io/api/v1/auth/login \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "password": "<string>" } '
{ "token": "<string>", "expires_in": 123, "user": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "[email protected]", "name": "<string>", "role": "admin" }, "organization": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "slug": "<string>" } }
Authenticate user and obtain JWT token
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Login successful
JWT token
Token expiration in seconds
Show child attributes