Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Acroustique
Advocate I
Advocate I

Fabric REST API - List Data Pipelines - Unauthorized

Hello,

 

I'm trying to get a list of pipelines using this:

Items - List Data Pipelines - REST API (DataPipeline) | Microsoft Learn

 

This is the behaviour I have noticed:

Workspace contains pipelines -> Status 200 OK

Workspace does NOT contain pipelines -> Status 401 Unautorized

 

Surely it should be 200 regardless of the content? Has anyone else noticed this? Is this a known issue?

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Not the only inconsistency in the API responses.

 

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

View solution in original post

3 REPLIES 3
Acroustique
Advocate I
Advocate I

It turns out I got confused with what the service principal can and cannot access!


I first got a list of workspace ids using:

 

GET https://api.fabric.microsoft.com/v1/admin/workspaces

 

Then, I assumed I could get the list of pipelines within those workspaces using: 

 

GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/dataPipelines  

 

As it happens, the service principal had access to the workspaces containing pipelines but not the other ones (hence the confusion). 

 

Now I know that I need to run an admin API call to get all pipelines from all workspaces (regardless of individual workspace permissions), such as:

 

GET https://api.fabric.microsoft.com/v1/admin/items?type=dataPipeline  

 

Documentation here:

https://learn.microsoft.com/en-us/rest/api/fabric/admin/items/list-items

Acroustique
Advocate I
Advocate I

Thanks! I just wanted to double-check that I wasn't missing something before submitting a support ticket!

lbendlin
Super User
Super User

Not the only inconsistency in the API responses.

 

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.