servers
Get runtime logs for a server
Fetch recent runtime logs for the server's deployed Worker, grouped by invocation (requires ownership).
get/servers/{namespace}/logs
Path parameters
namespacestring required
Query parameters
fromstring
Example:2026-01-01T00:00:00Z
Start of time range (ISO 8601).
tostring
Example:2026-01-01T01:00:00Z
End of time range (ISO 8601).
limitinteger
Example:50
Max invocations to return. Defaults to 50.
Response
Logs fetched successfully
Example response
{
"invocations": [
{
"id": "625f9ce6-f179-4f23-b3e3-4de28b52b39d",
"timestamp": "2026-01-04 10:53:39",
"request": {
"method": "POST",
"url": "https://gateway.smithery.ai/@smithery/unicorn"
},
"response": {
"status": 200,
"outcome": "ok"
},
"duration": {
"cpuMs": 5,
"wallMs": 743
},
"logs": [
{
"timestamp": "2026-01-04 10:53:39",
"level": "info",
"message": "Processing request..."
}
],
"exceptions": [
{
"timestamp": "2026-01-04 10:53:39",
"name": "TypeError",
"message": "Cannot read property 'x' of undefined",
"stack": "at handler (main.js:42:15)"
}
]
}
]
}