List the artifacts produced by a given WORKFLOW within a build

Hi all,

I know that on the API reference ( https://circleci.com/docs/api/v1-reference/) it says:

GET: /project/:vcs-type/:reponame/:project/:build_num/artifacts
List the artifacts produced by a given build

I want to list the artifacts produced by a given WORKFLOW within a build. Something like:

GET: /project/:vcs-type/:reponame/:project/:build_num/:workflow/artifacts

Get the idea? Is that possible?

Basically my case scenario I have to download the artifact only when generated by the ARCHIVE workflow that I have in my config.yml on CircleCI.

I’ve found this solution:

curl "https://circleci.com/api/v1.1/project/github/:repo/:project/latest/artifacts?branch=master&tag=latest?circle-token=$CIRCLE_TOKEN"