Getting the logs using API, but no data is returned

  • 27 June 2023
  • 2 replies
  • 36 views

Badge +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

Userlevel 2
Badge

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.

Badge +1

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

Reply