Every API request handled by DMSI Advanced API is logged to the dmsi_aapi_logs database table.
What Is Logged #
Each log entry captures the following fields:
| Field | Description |
|---|---|
| Endpoint | The API path that was requested |
| HTTP Method | GET, POST, PUT, DELETE, etc. |
| Status Code | The HTTP status code returned |
| Response Time | Time taken to process the request, in milliseconds |
| IP Address | The client IP address |
| User Agent | The client user agent string |
| Request Size | Size of the incoming request body |
| Response Size | Size of the outgoing response body |
| Request ID | The unique X-Request-Id for the request |
| Error Message | Error detail, if the request resulted in an error |
Log Write Behavior #
Logs are written on the WordPress shutdown hook. This deferred insert happens after the response has been sent to the client, so logging does not add latency to API requests.
Log Retention #
Log records are retained for 30 days. Records older than 30 days can be cleaned up to manage database storage.
Viewing Logs #
Navigate to DDLS > Developer > Monitoring to view the request log table. Available filters include:
- Endpoint path
- HTTP status code
- Date range
- API key
