Skip to main content

Getting the logs using API, but no data is returned

  • June 27, 2023
  • 2 replies
  • 43 views

Forum|alt.badge.img+1

Hi,

 

Im trying to get the logs using the API. i do get a 200 response but there is no data. 

 

I’m using the following request :

Invoke-WebRequest -Uri 'https://api.miro.com/v1/audit/logs?createdAfter=2023-05-27T05%3A34%3A08.000Z&createdBefore=2023-06-27T05%3A34%3A08.000Z&limit=500

 

The response is : {
  "type": "list",
  "limit": 500,
  "offset": 0,
  "size": 0,
  "data": []
}

 

Any idea what i am doing wrong?

2 replies

Elena Ignatik
Mironeer
Forum|alt.badge.img
  • Mironeer
  • 25 replies
  • July 4, 2023

Hi @Rob Schenk,

Thank you for reporting this! Could you please verify that audit logs are reported on UI for the period you’re requesting? You can do it in the company settings menu.

Thanks,

Elena.


Forum|alt.badge.img+1
  • Author
  • New Here
  • 1 reply
  • July 4, 2023

Yes, i’ve got 15000+ entry’s in the UI.