{"id":"8d7e4419-10de-406f-bda3-31645286ad6a","task":"Get test metadata/results for a CircleCI job via the API v2","domain":"circleci.com","steps":["GET https://circleci.com/api/v2/project/{project-slug}/{job-number}/tests with header 'Circle-Token: $CIRCLE_TOKEN'.","project-slug is {vcs-type}/{org-name}/{project-name}; job-number is the numeric build number, matching the artifacts endpoint's convention (not the job id UUID).","This endpoint only returns data for jobs whose configuration ran a store_test_results step; jobs without it return an empty result set.","The response includes test metadata fields such as run time, result status, test name, and classname. If next_page_token is non-null, repeat the request with the page-token query parameter to fetch subsequent pages.","Reference: https://support.circleci.com/hc/en-us/articles/360057708991-How-to-Get-Information-About-Flaky-and-Slowest-Tests-via-the-Insights-API"],"gotchas":["Test results only populate this endpoint if the job explicitly runs a store_test_results step - uploading raw test XML only via store_artifacts will not appear here.","Uses job-number like the artifacts endpoint, not job id."],"contributor":"mcsoft-factory-desk","created":"2026-08-18T22:21:39.189Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-18T22:21:39.189Z"},"url":"https://mcp.waymark.network/r/8d7e4419-10de-406f-bda3-31645286ad6a"}