You need to list the repositories in your Azure DevOps project to find the repository ID, using an API call :
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories?api-version=6.0
After getting the repository ID, list the branches in that repository.
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/refs?filter=heads/&api-version=6.0
Then you list all pipelines in your Data Factory.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines?api-version=2018-06-01
Once you have the list of pipelines, you need to manually filter them based on the branch information retrieved from Azure DevOps. Unfortunately, ADF does not directly support filtering pipelines by branch, so this step requires additional logic in your code to match pipelines with the appropriate branch.