List logs
/log
Query Parameters
The type of logs you want to filter by.
unified_proxy_apirapid_bridgewebhookmcp
The date-time range to filter the logs by.
The logs created after this date-time. Should be in ISO 8601 format. If specified, lt must also be provided and should NOT be greater than 1 month apart from gt.
2021-10-01T00:00:00ZThe logs created before this date-time. Should be in ISO 8601 format.
2021-10-01T00:00:00ZThe number of logs to return. Default is 100.
The cursor to get the next set of logs.
The filters to apply to fetch only specific logs.
Filter logs by client name. Can be used when log_type is mcp.
Filter logs by client version. Can be used when log_type is mcp.
Filter logs by environment ID. Can be used when log_type is mcp.
Filter logs by integrated account ID. Can be used when log_type is mcp.
Filter logs by MCP method. Can be used when log_type is mcp.
initializenotifications/initializedtools/listtools/callprompts/listresources/listping
Filter logs by MCP server ID. Can be used when log_type is mcp.
Filter logs by method. Can be used when log_type is mcp.
Filter logs by request ID. Can be used when log_type is mcp.
The type of request for which the logs are generated. Can be used when log_type is unified_proxy_api.
proxyunified
Filter logs by resource. Can be used when log_type is mcp.
Filter logs by tool name. Can be used when log_type is mcp.
Response Body
The cursor to get the next set of logs
The list of logs.
Unique identifier for the log entry.
6660312f7183aa7f487bb924Structured metadata captured for the log entry. Fields vary by log_type.
9 properties
Total time, in milliseconds, between Truto receiving the request and sending the response.
100The environment in which the log was generated.
1ba1f401-7183-47c5-9e39-e8e257e3c795Time, in milliseconds, spent fetching data from the upstream API.
50The integrated account that the request was made against, when applicable.
1ba1f401-7183-47c5-9e39-e8e257e3c795The integration name that handled the request, when applicable.
hubspotHuman-readable message describing what happened.
Request to fetch data from remote API.The Truto method that was called (list, get, create, update, delete, or a custom method name).
listWhether the request was served by a Unified API, a Proxy API, or an MCP server.
proxyproxyunifiedmcp
The Truto resource that was called.
cards-searchThe time at which the log entry was recorded.
2021-05-21T09:00:00.000Zcurl -X GET 'https://api.truto.one/log' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/log', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/log"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())import Truto from '@truto/truto-ts-sdk';
const truto = new Truto({
token: '<your_api_token>',
});
for await (const item of truto.log.list()) {
console.log(item);
}import asyncio
from truto_python_sdk import TrutoApi
truto_api = TrutoApi(token="<your_api_token>")
async def main():
async for item in truto_api.logs.list():
print(item)
asyncio.run(main())