In the API v2 documentation webpage, there is no topic in the Jobs section, explaining how to get the artifacts from a job. Is this intentional or a accidental miss?
Hi @ggetchev -
Thanks for flagging this — you’re right that the “Get a job’s artifacts” operation isn’t currently showing up in the Job section of the v2 API reference. This looks like an accidental gap rather than an intentional removal; the endpoint itself is still live and fully functional.
In the meantime, here’s how to use it directly:
GET https://circleci.com/api/v2/project/{project-slug}/{job-number}/artifacts
Example:
curl --request GET \
--url "https://circleci.com/api/v2/project/gh/YOUR_ORG/YOUR_REPO/123/artifacts" \
--header "Circle-Token: $CIRCLE_TOKEN"
This returns a paginated list of artifacts with path, node_index, and url for each one. If next_page_token comes back non-null, pass it as a query param to get the next page.