Txlog Portal
The
PortalTransaction Log Portal API provides access to detailed transactionrecordslogsfromforportalPortalaccessservices,pointsenablingwithin the Zequenze system. These endpoints allow youdevelopers toretrieveretrieve, filter, and analyze useraccessauthenticationpatterns,activities,monitor securitysession events, andgeneratesystemcomprehensiveinteractions.auditThisreportsendpoint is essential forcompliancemonitoring user behavior, debugging authentication issues, andoperationalgeneratingpurposes.compliance reports.
Base URL: https://gate.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Portal Transaction Log Portal API enablesallows you to access comprehensive monitoring and auditinglogs of all portal-basedPortal-related transactions within your Zequenze infrastructure. This API is essential for security teams, facility managers, and compliance officers who need to track user access patterns, investigate security incidents, and maintain detailed audit trails.
Portal transactions represent real-time events occurring at physical or virtual access points throughout your organization. EachThese transactionlogs capturescapture criticala informationwide range of activities including user identity,authentication, accesslogin/logout pointevents, location,session timestamp,management, transactionpayment type,processing, and outcome.system Thistriggers.
Key is invaluable for:Features:
-
SecurityComprehensiveMonitoringFiltering::TrackFilterunauthorizedlogs by transaction type, date range, user, location, and accessattempts,point
Common Use Cases:
The APItransaction supportslogs flexibleinclude filtering26 optionsdifferent allowingtransaction youtypes, from basic authentication (ua) and login events (ui) to queryadvanced transactionsfeatures bylike user,payment location,processing access point, time range,(pp) and transactionemail type.validation Results(ve). areEach paginatedlog forentry optimalprovides performancedetailed whencontext dealingincluding withuser largeinformation, datasetslocation spanningdata, extendedtimestamps, timeand periods.status codes.
Endpoints
GET /txlog_portal/
Description: Retrieves a comprehensivepaginated list of portalPortal transactionstransaction logs with advancedcomprehensive filtering capabilities.options. This endpoint is the primary method for accessing historical transaction datadata, monitoring real-time activities, and supportsgenerating multiplereports filterfor parameterssecurity, tocompliance, narrowor resultsanalytical based on specific criteria such as user identity, location, time range, and transaction type.purposes.
Use Cases:
GenerateMonitor failed authentication attempts for securityauditanalysis
Full URL Example:
https://gate.zequenze.com/api/v1/txlog_portal/?user=123type=ui&start_date=2024-01-01&end_date=2024-01-31&type=access&limit=50
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| type | string | query | No | Filter |
| start_date | string | query | No | |
| end_date | string | query | No | |
| user | integer | query | No | Filter transactions by specific user ID |
| page | integer | query | No | |
| access_point | integer | query | No | Filter transactions by specific access point ID |
| location | integer | query | No | Filter transactions by specific location ID |
| cursor | string | query | No | |
| limit | integer | query | No |
cURL Example:
curl -X GET "https://gate.zequenze.com/api/v1/txlog_portal/?user=123type=ui&start_date=2024-01-15&end_date=2024-01-1601&limit=50"25" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"count": 247,
"next": "https://gate.zequenze.com/api/v1/txlog_portal/?cursor=eyJpZCI6MTIzNDU2fQ%eyJpZCI6MTAwfQ%3D%3D&limit=50"25",
"previous": null,
"results": [
{
"id": 78945,12345,
"datetime": "2024-01-15T14:30:25.123456Z",
"type": "ui",
"organization": 1,
"source": "u",
"status": "h200",
"message": "User successfully authenticated",
"service": 101,
"service_name": "Corporate WiFi Portal",
"authservice": 201,
"authservice_name": "LDAP Authentication",
"user": {
"id": 123,5678,
"username": "john.doe"doe@company.com",
"first_name"email": "John"john.doe@company.com",
"last_name"external_id": "Doe"emp_12345",
"employee_id"new_user": false,
"session_id": "EMP001234"
}sess_abc123def456",
"access_point"external_session": {"ext_sess_789xyz",
"id"payment_transaction_log": 15,null,
"name"site": "portal.company.com",
"page": 301,
"page_url": "https://portal.company.com/login",
"action": "li",
"location": 401,
"location_name": "Main Entrance -Office Building A",
"code"access_point": 501,
"access_point_name": "BLDG-A-MAIN"Lobby-AP-01",
"type"ssid": "entry"
}CompanyGuest",
"location"user_agent": {601,
"id"remote_ip_addr": 5,192168001100,
"name"captured_ip_addr": "Corporate Headquarters",192168001100,
"address"mac_addr": "123 Business Plaza",123456789012,
"timezone"http_referer": "America/New_York"
},
"type": "access",
"status": "granted",
"timestamp": "2024-01-15T08:42:15Z",
"method": "card_swipe",
"device_info": {
"reader_id": "RDR-001",
"firmware_version": "2.1.3"
},
"metadata": {
"card_number": "****1234",
"response_time_ms": 250,
"additional_verification": false
}701
},
{
"id": 78944,12344,
"user": {
"id": 456,
"username"datetime": "jane.smith",
"first_name": "Jane",
"last_name": "Smith",
"employee_id": "EMP001235"
},
"access_point": {
"id": 22,
"name": "Secure Lab - Level 3",
"code": "LAB-L3-001"2024-01-15T14:28:15.987654Z",
"type": "restricted"
}ua",
"location"organization": {1,
"id": 7,
"name"source": "Research Facility",
"address": "456 Innovation Drive",
"timezone": "America/New_York"
},
"type": "denied"u",
"status": "insufficient_clearance"h401",
"timestamp"message": "2024-01-15T08:35:22Z"Authentication failed - invalid credentials",
"method"service": 101,
"service_name": "biometric"Corporate WiFi Portal",
"device_info"authservice": {201,
"reader_id"authservice_name": "BIO-003"LDAP Authentication",
"firmware_version"user": null,
"username": "3.2.1"
}invalid.user@company.com",
"metadata": {
"clearance_required"email": "Level-3"invalid.user@company.com",
"user_clearance"external_id": null,
"new_user": false,
"session_id": "Level-2"sess_failed_auth_123",
"escalation_triggered"external_session": truenull,
}"payment_transaction_log": null,
"site": "portal.company.com",
"page": 301,
"page_url": "https://portal.company.com/login",
"action": "ma",
"location": 401,
"location_name": "Main Office Building A",
"access_point": 501,
"access_point_name": "Lobby-AP-01",
"ssid": "CompanyGuest",
"user_agent": 602,
"remote_ip_addr": 192168001101,
"captured_ip_addr": 192168001101,
"mac_addr": 123456789013,
"http_referer": 701
}
]
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns |
| 400 | Bad Request - Invalid filter parameters or date format |
| 401 | Unauthorized - Invalid or missing |
| 403 | Forbidden - Insufficient permissions to access transaction logs |
Common Use Cases
Use Case 1: Security Incident Investigation
WhenMonitor investigatingfailed aauthentication securityattempts breachand orsuspicious unauthorizedlogin accesspatterns attempt,by combinefiltering multiplefor filtersauthentication totypes reconstruct(ua, the incident timeline. Use date range filtersui) with specificfailed accessstatus pointscodes (h401, h403). Combine with IP address and reviewlocation denied transactionsdata to identify suspiciouspotential patterns.security threats.
https://gate.zequenze.com/api/v1/txlog_portal/?type=denied&access_point=15ua&start_date=2024-01-15T20:15T00:00:00&end_date=2024-01-16T06:00:0015T23:59:59
Use Case 2: User AccessActivity Pattern AnalysisReporting
MonitorGenerate specificcomprehensive employeeuser accessactivity patternsreports by filtering transactions for individualspecific users across differentdate timeranges. periods.Include Thissession isdata, usefullocation forinformation, HRand investigations,transaction compliancetypes audits,to orcreate understandingdetailed employeeuser workjourney patterns.reports.
https://gate.zequenze.com/api/v1/txlog_portal/?user=123&start_date=2024-01-01&end_date=2024-01-31&limit=100
Use Case 3: Facility Usage Reporting
Generate comprehensive facility usage reports by filtering transactions for specific locations and time ranges. This data helps optimize facility resources and understand peak usage periods.
https://gate.zequenze.com/api/v1/txlog_portal/?location=5&type=access5678&start_date=2024-01-01&end_date=2024-01-31
Use Case 4:3: Real-timeLocation-Based Security MonitoringAnalytics
ImplementAnalyze real-timeusage monitoringpatterns byacross repeatedlydifferent queryingphysical recent transactions with short time windowslocations and focusing on denied access attemptspoints orto unusualoptimize activitynetwork patterns.resources and identify high-traffic areas.
https://gate.zequenze.com/api/v1/txlog_portal/?location=401&access_point=501&start_date=2024-01-15T08:00:00&type=denied&limit=2001
Use Case 5:4: CompliancePayment AuditTransaction Trail GenerationMonitoring
CreateTrack detailedpayment-related audittransactions trailsand their associated Portal activities for regulatoryfinancial compliance by extracting complete transaction histories for specific time periods, including all user activitiesreconciliation and systemfraud responses.detection.
https://gate.zequenze.com/api/v1/txlog_portal/?type=pp&start_date=2024-01-01&end_date=2024-03-31&limit=1000
Use Case 5: System Performance Monitoring
Monitor session timeouts, disconnections, and system triggers to identify performance issues and optimize Portal configuration.
https://gate.zequenze.com/api/v1/txlog_portal/?type=st&type=si&type=di&start_date=2024-01-15
Transaction Types Reference
Best Practices
-
OptimizeUse DateRangeRanges:Queries:AlwaysUsespecifyspecificreasonable date rangesrathertothanavoidopen-endedretrievingqueriesexcessivetodata and improve performanceand reduce API response times. The API performs better with focused time windows. -
Implement
ProperPagination:Pagination:UseFor large datasets, usethe cursor-based pagination(cursorparameter) rather than offset-based pagination (pageparameter)forconsistentlargeresultsdatasets to prevent timeouts andbettermemoryperformance.issues -
Filter Strategically: Combine multiple filters (type, user, location) to narrow down results effectively
FilterError Early,Handling: FilterAlways Often:check Applystatus multiplecodes filterand parametersimplement toproper reduceerror resulthandling setfor sizefailed atauthentication the API level rather than filtering large datasets in your application code.
HandleSecurity: RateNever Limitslog Gracefully:or Implement exponential backoff and retry logic forexpose API requests,tokens especiallyin whenclient-side processing large time rangescode or generatingpublic comprehensive reports.
SecureTime TokenZones: Management: Store and rotate Bearer tokens securely. Transaction logs contain sensitive access control information that requires appropriate security measures.
Monitor for Anomalies: Set up automated monitoring using the API to detect unusual access patterns, such as after-hours access attempts or repeated denied transactions from the same user.
Use Appropriate Date Formats: Always use ISO 8601 formatted datesformat with timezone information for accurate date filtering across different geographical locations and daylight saving time transitions.