We are using the Get-Logs API to fetch the logs. We recently got to know that the “date” in the response can be string or an object. However we are unable to get any logs that has date as an object. So do we have any sample response for that? Also wanted to know if the date will always come in the response?
Is there also any way to track the changes made in the API over the time?
We are using Get-Logs API to collect the logs periodically and we use the “date“ key from the response to update the query parameters for the next call. So wanted to know that can there be a scenario where the date in the response will be empty or invalid? Also wanted to know all possible format of date we can get in the output. Currently we are getting “2025-10-28T12:00:00“ format.
After doing some research, I can confirm the following details for you:
within the logs, the date will always be included as it’s a mandatory field of a log and will always be in ISO 8601 UTC format;
the only mention of the date being either a string or an object that I could find is in the get-logs-by-user API, but I could not validate an instance where the date is being returned consistently as an object.
Essentially, there is no scenario where the date will be returned as an object, nor empty or invalid, from the Auth0 API.
One precaution that I can think of based on your use-case is in the case there are multiple logs that occurred at the same exact time, these will be treated as two separate logs, but it could get missed depending on your integration. To isolate each log, it is more reliable to use log_id, since this identifier is unique to each log, even if multiple have the same date.