Retrieving trigger-enabled workflows

Retrieve the details of workflows that are trigger-enabled.

Procedure

  1. In a REST client platform, add the authentication details of the tenant from where you want to get the details of the trigger-enabled workflow.
    
    //In case of Instance API key 
    Headers:
    {
    "x-instance-api-key": "instance_api_key"
    }
     
    // In case of MCSP or ISV token
    Headers:
    {
    "Authorization": "mcsp_or_isv_token"
    }
    
  2. Make a GET request at the URL of the project.
    URL Syntax: <domain>/apis/v1/rest/projects/:project/trigger-flows QueryParams: skip=number (default=0), limit=number (default=1000)

    In this URL request, :project is the name of the project or the UID of the project from where you want to get the details of the trigger-enabled workflow.

    Method: GET

    If the request is successful, you receive the response code for success.
    {
    output: {
            "objects": [
                {
                    "uid": "<workflow_uid>",
                    "sid": <workflow_sid>
                    "name": "<workflow_name>",
                    "tenant_uid": "<tenant_uid>",
                    "project_uid": "<project_uid>",
                    "trigger": {
                                    "provider": "<trigger_provider>",
                                    "label": "<trigger_label>",
                                    "title": "<trigger_title>",
                                    "uid": "<trigger_uid>"      
                         }              
                }        
            ],
            "count": <trigger_workflow_count>
        }
    }
    Note: This operation gets the workflows that have triggers attached to it in the current workflow version. The workflows without triggers attached are not shown in the output.