Logs & monitoring
Track API requests, monitor response times, and analyze usage patterns with built-in request and activity logs.
Overview
MockAPI provides two types of logging to help you monitor and debug your mock APIs:
- Request logs: Record of every API request to your mock endpoints
- Activity logs: Audit trail of actions performed in the dashboard
Additionally, the Dashboard provides visual analytics including request trends, popular endpoints, and quota usage.
Request logs
Request logs capture every API call made to your mock endpoints. Navigate to Monitor → Request logs in the sidebar to view them.
Log fields
| Field | Description |
|---|---|
| Endpoint | The URL path that was requested |
| Method | The HTTP method used (GET, POST, PUT, etc.) |
| Status code | The HTTP status code returned |
| Response time | How long the request took to process (in milliseconds) |
| Timestamp | When the request was received |
Searching
Use the search box above the table to find requests by endpoint path.
Log retention
Request logs are automatically deleted after a retention period that depends on your plan:
| Plan | Retention period |
|---|---|
| Free | 3 days |
| Developer | 7 days |
| Team | 30 days |
| Business | 90 days |
| Enterprise | 90 days |
Info
Logs are automatically cleaned up daily at 2 AM UTC. Logs older than your plan's retention period are permanently deleted.
Activity logs
Activity logs provide an audit trail of actions performed by team members within the dashboard. Navigate to Monitor → Activity to view them.
Tracked activities
| Field | Description |
|---|---|
| User | The team member who performed the action |
| Action | What was done (create, update, delete, etc.) |
| Entity type | What type of resource was affected (model, endpoint, schema, etc.) |
| Details | Additional context about the change |
| Timestamp | When the action occurred |
Dashboard analytics
The Dashboard page provides a visual overview of your API usage and project statistics.
Metric cards
Four key metrics are displayed at the top of the dashboard:
- Total projects: Number of projects in your account
- Models: Number of data models in the selected project
- Endpoints: Number of REST and GraphQL endpoints in the selected project
- API requests: API calls to the selected project this month
Monthly quota usage
A progress bar shows the selected project's usage this month against its monthly quota. The bar changes color as the project approaches its quota:
- Neutral: below 80% of quota
- Yellow/warning: between 80% and 95% of quota
- Red/critical: above 95% of quota
Warning
When a project reaches 100% of its monthly quota, requests to its mock endpoints are rejected with a 403 status code. Upgrade your plan or wait for the 1st of the next month to restore access.
API usage chart
A chart shows the selected project's requests per day and covers the last 7 days.
Popular endpoints
A table shows your most frequently called endpoints from the last 30 days, including the endpoint path, HTTP method, and total request count. This helps identify which endpoints are most active.