Logs API
List logs
Section titled “List logs”GET /api/logs?limit=100&wcp_id=notion:page_abccurl "http://localhost:8000/api/logs?limit=50"Query params
| Param | Type | Default | Description |
|---|---|---|---|
limit | integer | 100 | Max records to return |
wcp_id | string | — | Filter by specific entity |
Response 200 OK
[ { "id": 1, "wcp_id": "notion:page_abc", "source_app": "notion", "target_app": "sheets", "capability": "write_row", "status": "success", "detail": "", "created_at": "2026-04-03T10:00:03Z" }, { "id": 2, "wcp_id": "notion:page_xyz", "source_app": "notion", "target_app": "sheets", "capability": "write_row", "status": "error", "detail": "Tool call failed: sheets.append_row returned 403", "created_at": "2026-04-03T10:00:04Z" }]Status values: success, error, skipped, conflict
Clear logs
Section titled “Clear logs”Deletes all log entries. Irreversible.
DELETE /api/logscurl -X DELETE http://localhost:8000/api/logsResponse 204 No Content