Skip to content

Logs API

GET /api/logs?limit=100&wcp_id=notion:page_abc
Terminal window
curl "http://localhost:8000/api/logs?limit=50"

Query params

ParamTypeDefaultDescription
limitinteger100Max records to return
wcp_idstringFilter 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


Deletes all log entries. Irreversible.

DELETE /api/logs
Terminal window
curl -X DELETE http://localhost:8000/api/logs

Response 204 No Content