Exchange credentials for a JWT

POST/api/v1/auth/login

Parameters

usernamebodystringrequired
passwordbodystringrequired

Responses

200Authentication succeeded
401Invalid credentials

Request

curl -X POST "https://api.knowledgetree.dev/api/v1/auth/login" \
  -H "Authorization: Bearer $KT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "username": "admin",
  "password": "••••••••"
}'

Response

200Authentication succeeded
Example response not yet documented.