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"
}