Skip to main content
Wherobots retains event logs for 90 days. To preserve logs beyond this period, export them using the Audit Logs REST API endpoint. This guide discusses how to programmatically format requests to use the Audit Logs REST API endpoint. If you’d prefer a detailed tutorial on the Audit Logs graphical user interface on Wherobots Cloud, see Audit Logs.
90 day log retention
Wherobots retains audit logs for a period of 90 days. To prevent data loss and ensure continuous access to your log records, we recommend implementing a scheduled script that utilizes this endpoint to export your logs and download the resulting CSV file. This proactive measure will safeguard your valuable audit data beyond the 90-day retention period.

Before you start

Before using Audit Logs, ensure that you have the following required resources:
What do I need before I get started?

Request body schema

ISO 8601 Date and Time Format
ISO format refers to the ISO 8601 standard, which defines a way to represent dates and times. This format ensures consistency and avoids ambiguity when exchanging date and time information.
Here’s a breakdown of the basic ISO 8601 format, YYYY-MM-DDTHH:mm:ss.sssZ:
  • YYYY: Year (e.g., 2025)
  • MM: Month (e.g., 02 for February)
  • DD: Day of the month (e.g., 20)
  • T: Separator indicating the start of the time component
  • HH: Hour (24-hour clock, e.g., 18 for 6 PM)
  • mm: Minute (e.g., 09)
  • ss: Second (e.g., 30)
  • sss: Optional fractional seconds (e.g., 123 for milliseconds)
  • Z: Indicates UTC (Coordinated Universal Time)
Example: February 20, 2025 6:09PM PST in ISO 8601 format is 2025-02-20T18:09:00-08:00
Timezone offset
Include the timezone offset, -08:00, because Pacific Standard Time is UTC-8.
Route: #!json GET /audit-logs/export
Example
  • In line 3, replace 2025-01-27T00:07:29Z with your desired start time in ISO 8601 format. For more information, see Explanation.
  • In line 4, replace 2025-01-27T00:07:29Z with your desired end time in ISO 8601 format. For more information, see Explanation.
  • In line 5, replace example with your desired search term. For more information, see Explanation.
  • In line 6, replace YOUR-API-KEY with a Wherobots API key.

Explanation

Response body schema

The CSV will be in the following format:

Response body example

Response example

Response codes

The following table details a comprehensive listing of response codes encountered during a run’s execution.

Limitations

  • API requests are limited to 100 requests per 5 seconds. This endpoint has no additional rate limits.
  • This feature can only be accessed by the Wherobots Organization’s Admin. For more information on the Admin role, see Organization Roles.
  • Wherobots retains audit logs for a period of 90 days. To prevent data loss and ensure continuous access to your log records, we recommend implementing a scheduled script that utilizes this endpoint to export your logs and download the resulting CSV file. This proactive measure will safeguard your valuable audit data beyond the 90-day retention period.