REST APIPro
Access log data via HTTP REST endpoints. The REST API provides a simple HTTP interface for fetching logs, tabs, pins, and markers.
REST API#
Access your logs programmatically through HTTP REST endpoints. The API runs on the same port as the MCP server and provides endpoints for:
- Tabs: List all tabs and their metadata
- Logs: Fetch logs with cursor-based pagination
- Search: Query logs with text search and filters
- Pins: Manage pinned log entries
- Markers: Add visual markers to the log view
Endpoints#
| Endpoint | Method | Description |
|---|---|---|
/api/tabs |
GET | List all tabs |
/api/tabs/:id/logs |
GET | Get logs with pagination |
/api/tabs/:id/logs/search |
GET | Search/filter logs |
/api/tabs/:id/pins |
GET | Get pinned log IDs |
/api/tabs/:id/pins |
POST | Pin a log |
/api/tabs/:id/pins/:log_id |
DELETE | Unpin a log |
/api/tabs/:id/markers |
GET | List markers |
/api/tabs/:id/markers |
POST | Add marker |
/api/tabs/:id/markers/:marker_id |
DELETE | Remove marker |
Example Usage#
# List all tabs
curl http://localhost:9712/api/tabs
# Get logs from a tab
curl http://localhost:9712/api/tabs/{tab_id}/logs?limit=100
# Search logs
curl http://localhost:9712/api/tabs/{tab_id}/logs/search?q=error