Rest Api for getting workflow id (XNAT ver:1.8.3)

16 views
Skip to first unread message

Binita Shrestha

unread,
Feb 26, 2026, 12:15:03 AM (6 days ago) Feb 26
to xnat_discussion
Hi everyone,

I’m trying to retrieve a workflow or workflow ID using the REST API, but I haven’t been able to get it working.
For example, I tried:

GET /data/workflows?wrk:workflowData/id=1234

I currently have the following information available:
Project ID,Subject ID,Experiment (session) ID,Pipeline name,Launch time

Is there a REST API endpoint that allows me to retrieve the workflow ID using these details?

Any guidance would be greatly appreciated.
Thank you!

akluiber

unread,
Feb 26, 2026, 12:14:18 PM (5 days ago) Feb 26
to xnat_discussion
Something you can try is parsing the json return of the session's history and match up the pipeline name with event_action, launch time with event_date (convert from epoch), and extract the event_id

Binita Shrestha

unread,
Feb 27, 2026, 2:27:23 AM (5 days ago) Feb 27
to xnat_discussion
Hi ,
Thank you . This api works. However, I noticed we can have pipeline name like "Modified MRScan", "Added Test Pipeline","TestPipeline". So I was expecting, we will have pipeline name only from xml only like TestPipeline for TestPipeline.xml if that is run and in my system (queue system that store pipeline run jobs and execute one by one )pipeline name like TestPipeline are only stored. At the moment, I am filtering based on user and latest eventTime and get workflowID and update workflow status.
Is there any other reliable approach to get workflow id if we have user and datatype i.e pipeline name only?
Reply all
Reply to author
Forward
0 new messages