How to get Workflow ID from Workflow name in API

Hello All,

I am looking for API where I can give Workflow name as an input and it should return “id” of that workflow.

I found similar APi for Source -

Is there any similar API for Workflow where we can pass name in either query params or body and it will give id field in response ?

@mandarsane by checking the list-workflows | SailPoint Developer Community, it currently does not support filtering options like other objects (sources, roles, etc.).

If you need this , you’ll have to iterate through the response and look up the ID based on the name.

Hi @mandarsane,

You can utilize list-workflows | SailPoint Developer Community under params you can give name and value as the name of the workflow.

To narrow it down to just the ID, you can use postman response filter to $[*].id

Right now, SailPoint’s Workflows API doesn’t support direct filtering by name the way Sources or Roles do. That’s why you’re not finding a one‑shot endpoint that takes a workflow name and returns its ID.

What you can do

  • List Workflows APIGET /v3/workflows This returns all workflows with their metadata (including id and name).
  • Since filtering by name isn’t supported server‑side, you’ll need to iterate through the response and match the name field yourself.
  • Once you find the workflow object with the matching name, you can extract its id

Use the below code in the scripts of the Get List of Workflow API, and in the console you can see the ID of that workflow. Change the name in the script for your convenience.

let workflows = pm.response.json();

let ids = workflows
    .filter(wf => wf.name === "DP- Access Request Multi approval")
    .map(wf => wf.id);

console.log(ids);

LMK if this helps.

Thank you all for your reply. I understood that due to unavailability of such API, I need to iterate over objects and map the expected workflow with name and read “id” field

Thanks @Santhakumar for sharing code.

I am able to see id in console with this code.

Hope this works for your solution.

If it resolved your problem, please mark my reply as a solution. Thanks.