Skip to main content

Get all login events.

GET 

/api/admin/logins

Returns all login events in the Unleash system. You can optionally get them in CSV format by specifying the Accept header as text/csv.

Responses

loginHistorySchema

Schema

    events

    object[]

    required

    A list of login events

  • Array [

  • id integerrequired

    The event's ID. Event IDs are incrementing integers. In other words, a more recent event will always have a higher ID than an older event.

    Possible values: >= 1

    Example: 13
    username string

    The username of the user that attempted to log in. Will return "Incorrectly configured provider" when attempting to log in using a misconfigured provider.

    Example: admin
    auth_type string

    The authentication type used to log in.

    Example: simple
    created_at date-time

    The date and time of when the login was attempted.

    Example: 2023-03-01T12:04:26.061Z
    successful boolean

    Whether the login was successful or not.

    Example: true
    ip stringnullable

    The IP address of the client that attempted to log in.

    Example: ::ffff:127.0.0.1
    failure_reason stringnullable

    The reason for the login failure. This property is only present if the login was unsuccessful.

    Example: No user found
  • ]

Loading...