MIRO API Rest : Error 404 - Organization not found

  • 22 August 2022
  • 3 replies
  • 31 views

Badge +1

Hello, 

When I used the page https://developers.miro.com/reference/get-logs to test my app, I have this error message :

 

{
  "status": 404,
  "code": "notFound",
  "message": "Organization not found",
  "type": "error"
}

 

My request is : 

 

$headers=@{}
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "Bearer I mask it it is better :) ")
$response = Invoke-RestMethod -Uri 'https://api.miro.com/v1/audit/logs?createdAfter=2022-08-01T09%3A45%3A00.000%2B02%3A00&createdBefore=2022-08-01T10%3A45%3A00.000%2B02%3A00&limit=10&offset=0' -Method GET -Headers $headers

 

My app has the auditlogs:read role as requested and I am admin. 

 

Do you have an idea why it is not working ? 

 

Thanks in advance

 

Regards


3 replies

Badge +1

Thanks I change the Team, It works correctly now :) 

 

Have a good day 

Badge +1

Thank you for your answer !

I am using the team named “Dev Team”, how can I check if it is in the Enterprise plan ? 

Userlevel 5
Badge +1

Hi @Lonni PRONNIER,

 

The audit logs API is available only for Miro teams that are part of the Enterprise plan. In which team are you trying this developer app? 

Reply