application/json

Body Required

  • username string Required

    User login name

  • password string(password) Required

    User password

Responses

  • 200 application/json

    Successful login

    Hide response attributes Show response attributes object
    • expire string(date-time)
    • token string

      JWT bearer token for subsequent requests

  • 401 application/json

    Invalid credentials

    Hide response attributes Show response attributes object
    • message string
    • error string
POST /login
curl \
 --request POST 'https://middleware.example.com/api/login' \
 --header "Content-Type: application/json" \
 --data '{"username":"string","password":"string"}'
Request examples
{
  "username": "string",
  "password": "string"
}
Response examples (200)
{
  "expire": "2026-05-04T09:42:00Z",
  "token": "string"
}
Response examples (401)
{
  "message": "string",
  "error": "string"
}