Get login history report

Get Login History Report

This endpoint returns login history records for customers within a specified date range. Each record includes identifying information for the user along with aggregated counts of successful and failed login attempts. Partners can use this data for security monitoring, auditing, and support investigations.

Endpoint

GET /Report/loginHistory

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Use this endpoint to audit customer login activity across a date range and identify unusual access patterns such as repeated failed login attempts. It is also useful for support workflows when a customer reports account access issues, allowing partners to confirm recent login events and detect potential unauthorized access.

Query Parameters

ParameterTypeRequiredDescription
fromstring (date-time)NoStart of the date range for login history. ISO 8601 format (e.g., 2025-01-01T00:00:00Z).
tostring (date-time)NoEnd of the date range for login history. ISO 8601 format (e.g., 2025-01-31T23:59:59Z).
typeinteger (enum)NoFilter by user type. See typeUser enum values: 1, 2, 3, 4, 5.

Response

200 OK

Returns an array of login history report objects.

FieldTypeDescription
profileIdinteger (int32)The unique identifier of the customer profile.
userProfileIdinteger (int32)The unique identifier of the user profile (subprofile or main user).
firstNamestring (nullable)First name of the user.
lastNamestring (nullable)Last name of the user.
typeUserinteger (enum)User type classification. Values: 1, 2, 3, 4, 5.
emailstring (nullable)Email address associated with the user account.
successCountinteger (int32)Number of successful login attempts within the queried period.
failCountinteger (int32)Number of failed login attempts within the queried period.
[
  {
    "profileId": 10045,
    "userProfileId": 20123,
    "firstName": "Jane",
    "lastName": "Smith",
    "typeUser": 1,
    "email": "[email protected]",
    "successCount": 12,
    "failCount": 2
  },
  {
    "profileId": 10046,
    "userProfileId": 20124,
    "firstName": "Robert",
    "lastName": "Johnson",
    "typeUser": 2,
    "email": "[email protected]",
    "successCount": 5,
    "failCount": 0
  }
]

Error Codes

CodeWhen it happens
400Missing required fields or validation error (e.g., malformed date-time format)
401Token missing, expired, or invalid
403Insufficient permissions to access login history data
404Resource not found
500Internal server error

Common Mistakes

  • Providing from or to dates in a non-ISO 8601 format will result in a 400 error; always use the date-time format (e.g., 2025-06-01T00:00:00Z).
  • Omitting both from and to may return a large dataset; narrow queries with a date range for performance and relevance.
  • Passing an invalid integer for the type parameter (outside of values 15) will result in a validation error.

Related Endpoints

  • GET /Report/transactionHistory — Retrieve transaction history records for a customer
  • GET /Report/accountActivity — Retrieve account activity summary for a customer

Example

curl -X GET "https://api.banking.netevia.dev/Report/loginHistory?from=2025-06-01T00%3A00%3A00Z&to=2025-06-07T23%3A59%3A59Z&type=1" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Query Params
date-time
date-time
int32
enum
Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json