Search code examples
powerbipowerbi-rest-api

PowerBI REST API get reports


Making a GET call to https://api.powerbi.com/v1.0/myorg/groups returns workspace.

{
    "@odata.context": "https://wabi-canada-central-b-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups",
    "@odata.count": 1,
    "value": [
        {
            "id": "43d5dbb1-",
            "isReadOnly": false,
            "isOnDedicatedCapacity": false,
            "type": "Workspace",
            "name": "Workspace1"
        }
    ]
}

Making a GET call to https://api.powerbi.com/v1.0/myorg/reports is not returning any reports I have in the workspace.

{
    "@odata.context": "https://wabi-canada-central-b-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#reports",
    "value": []
}

I have two reports on the portal. enter image description here

How do I get reports using REST API?

Thanks,


Solution

  • You need to use Reports - Get Report In Group to get reports in a workspace.

    The one you are using above is Reports - Get Report which returns reports in My workspace.