Prerequisites
Log endpoints require file logging to be enabled:Get Logs
endpoint
/v0/management/logsRequest
Query Parameters
integer
Maximum number of log lines to return (most recent)
integer
Unix timestamp to filter logs after (for incremental loading)
Response
string[]
Array of log lines
number
Total number of lines processed
number
Unix timestamp of the most recent log entry (use for next incremental request)
Delete Logs
endpoint
/v0/management/logs- Truncates active log file (
main.log) - Removes all rotated log files (
main.log.1,main-2026-03-11.log, etc.)
Request
Response
boolean
Whether deletion was successful
string
Success message
number
Number of rotated log files removed
Get Request Error Logs
endpoint
/v0/management/request-error-logsrequest-log is disabled.
Request
Response
object[]
When
request-log: true, this endpoint returns an empty array since all requests are logged to the main log file.Download Error Log by Name
endpoint
/v0/management/request-error-logs/:nameRequest
Response
File download withContent-Disposition: attachment.
Get Request Log by ID
endpoint
/v0/management/request-log-by-id/:idRequest
Path Parameters
string
required
Request ID to search for (matches log file suffix
*-{id}.log)Response
File download with the matched log file.Error Responses
Log File Formats
Main Log Format
- Timestamp:
[YYYY-MM-DD HH:MM:SS] - Level:
INFO,DEBUG,WARN,ERROR - Message
Error Log File Naming
Error logs use the format:error-2026-03-11-10-30-45-req123.log
Rotated Log File Naming
Two rotation formats are supported: Numeric rotation:Incremental Log Loading
Use theafter parameter with latest-timestamp for efficient polling:
How It Works
- First request returns last 100 lines with
latest-timestamp: 1710172860 - Second request with
after=1710172860returns only lines newer than that timestamp - Continue polling with the latest timestamp for incremental updates
Log Configuration Endpoints
Get Request Log Setting
Enable Request Logging
Get Logging to File Setting
Enable File Logging
Log Rotation Settings
Get Max Total Size
Set Max Total Size
Set maximum total size for all log files in MB (0 = unlimited):Get Max Error Log Files
Set Max Error Log Files
Set maximum number of error log files to retain:Complete Logging Configuration
Error Responses
Logging Disabled
logging-to-file: false.
Log Directory Not Configured
Log File Not Found
Invalid Request ID
Log Directory Location
Logs are written to:- Directory specified in log configuration (if set)
./logs/directory relative to server working directory (default)
Use Cases
Real-time Log Monitoring
Download All Error Logs
Clear Old Logs
Next Steps
- Configuration Endpoints - Configure logging settings
- OAuth Endpoints - Monitor OAuth authentication events
- Quota Endpoints - Track quota exceeded events