Skip to content

List Logs


You can use this endpoint to list all the Unified, Proxy, Webhook and RapidBridge logs for your Truto account.

Endpoint

http
GET /log

Query parameters

Refer Specifying query parameters in Truto APIs

log_type
string
REQUIRED · 

The type of logs you want to filter by.

All possible enum values:
  • unified_proxy_api
  • rapid_bridge
  • webhook
created_at
object

The date-time range to filter the logs by.

gt
string · date-time

The logs created after this date-time. Should be in ISO 8601 format.

Example: 2021-10-01T00:00:00Z
lt
string · date-time

The logs created before this date-time. Should be in ISO 8601 format.

Example: 2021-10-01T00:00:00Z
limit
number

The number of logs to return. Default is 100.

next_cursor
string

The cursor to get the next set of logs.

log_type_filter
object

The filters to apply to fetch only specific logs.

request_type
string

The type of request for which the logs are generated. Can be used when log_type is unified_proxy_api.

All possible enum values:
  • proxy
  • unified

Response Body

result
object[]

The list of logs.

_id
string

Unique identifier for the log.

Example: 6660312f7183aa7f487bb924
timestamp
string · date-time

The timestamp when the log was created.

Example: 2021-05-21T09:00:00.000Z
metadata
object

The metadata for the log.

duration
number

The duration of the request in milliseconds from the time the request was received to the time the response was sent from Truto.

Example: 100
fetch_duration
number

The time it took to get the data from the remote API in milliseconds.

Example: 50
message
string

The message for the log.

Example: Request to fetch data from remote API.
method
string

The Truto method that was called.

Example: list
resource
string

The Truto resource that was called.

Example: cards-search
request_type
string

The type of request for which the logs are generated.

All possible enum values:
  • proxy
  • unified
Example: proxy
environment_id
string

The ID of the environment for which the logs are generated.

Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795
next_cursor
string

The cursor to get the next set of logs.