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.
6660312f7183aa7f487bb924The metadata for the log.
7 properties
The duration of the request in milliseconds from the time the request was received to the time the response was sent from Truto.
100The ID of the environment for which the logs are generated.
1ba1f401-7183-47c5-9e39-e8e257e3c795The time it took to get the data from the remote API in milliseconds.
50The message for the log.
Request to fetch data from remote API.The Truto method that was called.
listThe type of request for which the logs are generated.
proxyproxyunified
The Truto resource that was called.
cards-searchThe timestamp when the log was created.
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())