Query parameters

application/json

Body Required

Responses

POST /api/logins
curl \
 --request POST 'https://replace-with-own-host.iw-erp.de/api/logins' \
 --header "x-session-token: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"login":{"username":"string","password":"string","token":"string"}}'
Request examples
{
  "login": {
    "username": "string",
    "password": "string",
    "token": "string"
  }
}
Response examples (200)
{
  "id": 42,
  "sessionid": "string",
  "selectedcustomer": {
    "id": 42,
    "slackchannel": "string",
    "displayname": "string",
    "deleted": true,
    "created": "2025-05-04T09:42:00Z",
    "updated": "2025-05-04T09:42:00Z"
  },
  "start": "2025-05-04T09:42:00Z",
  "ip": "string",
  "valid": true,
  "is_api_key": true,
  "is_dg": true,
  "missing2fa": true,
  "start_in_vpn": true,
  "auth_by_credentials": true,
  "auth_by_google": true,
  "auth_by_microsoft": true,
  "auth_by_cloudflare": true
}