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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Yacine911
Frequent Visitor

monitoring notebook via API

Hello everyone,

 

I'm running a notebook using the Fabric API, and while the execution works fine, I haven't found a way to monitor its status. Specifically, I can't retrieve the Job Instance ID that would allow me to track the notebook's execution progress

 

POST https://api.fabric.microsoft.com/v1/workspaces/XXXXX-XXXXX-XXXXXX/items/XXXXX-XXXXX-XXXXXX/jobs/inst...

 

this is what i get 

 

{
"itemId":"xxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxx",
"jobType":"RunNotebook",
"invokeType":"Manual",
"status":"NotStarted",
"failureReason":null,
"rootActivityId":"xxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxx",
"startTimeUtc":"2025-04-17T12:50:18.000000Z",
"endTimeUtc":null,
"ResponseHeaders":{
"Pragma":"no-cache",
"Transfer-Encoding":"chunked",
"Retry-After":"11",
"Strict-Transport-Security":"max-age=31536000; includeSubDomains",
"X-Frame-Options":"deny",
"X-Content-Type-Options":"nosniff",
"RequestId":"xxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxx",
"Access-Control-Expose-Headers":"RequestId,Retry-After",
"Cache-Control":"no-store, must-revalidate, no-cache",
"Date":"Thu, 17 Apr 2025 12:51:13 GMT",
"Content-Type":"application/json; charset=utf-8"
},
"executionDuration":63
}

1 ACCEPTED SOLUTION

hi,

The rootActivityId didn’t work, but funnily enough, the id is back, and it worked using that.

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @Yacine911,

 

Thank you for reaching out to Microsoft Fabric Community.

 

The response from the POST request to run a notebook will not include a field like named job Instance Id. But we can use the rootActivityId which we get from the response to monitor the notebook's execution status.

 

Run this below to get the rootActivityId:

POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances

 

Run this below one to get the status:

GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances/{root...

{workspaceId} – your workspace Id

{notebookId} – the notebook item Id

{rootActivityId} – from the POST response

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

hi,

The rootActivityId didn’t work, but funnily enough, the id is back, and it worked using that.

Hi @Yacine911,

 

Thank you for the response, since the issue is resolved, I request you if any of the responses helped, kindly consider marking it as accept as solution or please mark the above post as accept as solution. This helps others in the community find it more easily. 

 

Thanks and regards,

Anjan Kumar Chippa

Hi @Yacine911,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 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.