Get Filtered Logs
GET/api/v1/logs
Retrieve filtered logs with pagination and filters
Request
Query Parameters
from string
to string
level string
Comma-separated log levels (1, 2, 4, 8, 16)
name string
Comma-separated module names to filter by
message string
Case-insensitive regex search on message or module
page string
Default value: 1
limit string
Default value: 25
sort string
Default value: desc
Sort order by timestamp (asc or desc)
Responses
- 200
- 500
Successful response with logs and pagination
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data undefined[]required
status numberrequired
pagination object
currentPage numberrequired
totalPages numberrequired
totalCount numberrequired
limit numberrequired
hasNext booleanrequired
hasPrev booleanrequired
{
"success": true,
"message": "string",
"data": [
null
],
"status": 0,
"pagination": {
"currentPage": 0,
"totalPages": 0,
"totalCount": 0,
"limit": 0,
"hasNext": true,
"hasPrev": true
}
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Loading...