Sentry Test Results API

Retrieve test result metrics and test suites

Business capability
Software Quality Engineering BC-4200.50

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /organizations/{organization_id_or_slug}/prevent/test-results/ List test results · Sentry Retrieve paginated list of test results for repository, owner, and… #
Ask an LLM
“Which tests failed recently in my repository?”
“Can I page through test results for one repository?”
Tell an agent
List test results for {org}.
Show test results for repository {repositoryId} from cursor {cursor}.
GET /organizations/{organization_id_or_slug}/prevent/test-results/metrics/ Get aggregated test metrics · Sentry Retrieve aggregated test result metrics for repository, owner, and… #
Ask an LLM
“How flaky is my test suite overall?”
“What are the aggregated test metrics for a repository?”
Tell an agent
Get aggregated test result metrics for {org}.
Show test metrics for repository {repositoryId}.
GET /organizations/{organization_id_or_slug}/prevent/test-results/suites/ List test suites for a repository · Sentry Retrieve test suites belonging to a repository's test results #
Ask an LLM
“Which test suites appear in my repository's results?”
“Can I see suite names to narrow test results?”
Tell an agent
List test suites in {org}.
Show test suites for repository {repositoryId}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sentry-system:sentry-system-test-results-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sentry-system-test-results-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sentry Prevent Test Results API
  description: The Prevent API provides endpoints for managing repository integrations and test results in Sentry, including syncing repositories, managing branches, generating upload tokens, and retrieving test result metrics and test suites.
  version: 0.0.1
  contact:
    name: Sentry Support
    url: https://sentry.io/support/
    email: support@sentry.io
servers:
- url: https://sentry.io/api/0
  description: Sentry Production API
security:
- BearerAuth: []
tags:
- name: Test Results
  description: Retrieve test result metrics and test suites
paths:
  /organizations/{organization_id_or_slug}/prevent/test-results/:
    get:
      operationId: listTestResults
      summary: Sentry Retrieve paginated list of test results for repository, owner, and…
      description: Returns paginated test results for the organization.
      tags:
      - Test Results
      parameters:
      - $ref: '#/components/parameters/OrganizationIdOrSlug'
      - name: repositoryId
        in: query
        description: Filter by repository ID.
        schema:
          type: string
      - name: cursor
        in: query
        description: Pagination cursor.
        schema:
          type: string
      responses:
        '200':
          description: A list of test results.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TestResult'
        '401':
          description: Unauthorized.
  /organizations/{organization_id_or_slug}/prevent/test-results/metrics/:
    get:
      operationId: retrieveTestResultMetrics
      summary: Sentry Retrieve aggregated test result metrics for repository, owner, and…
      description: Returns aggregated test result metrics.
      tags:
      - Test Results
      parameters:
      - $ref: '#/components/parameters/OrganizationIdOrSlug'
      - name: repositoryId
        in: query
        description: Filter by repository ID.
        schema:
          type: string
      responses:
        '200':
          description: Aggregated test result metrics.
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalTests:
                    type: integer
                  passedTests:
                    type: integer
                  failedTests:
                    type: integer
                  skippedTests:
                    type: integer
                  avgDuration:
                    type: number
                  passRate:
                    type: number
        '401':
          description: Unauthorized.
  /organizations/{organization_id_or_slug}/prevent/test-results/suites/:
    get:
      operationId: listTestSuites
      summary: Sentry Retrieve test suites belonging to a repository's test results
      description: Returns test suites for a repository's test results.
      tags:
      - Test Results
      parameters:
      - $ref: '#/components/parameters/OrganizationIdOrSlug'
      - name: repositoryId
        in: query
        description: Filter by repository ID.
        schema:
          type: string
      - name: cursor
        in: query
        description: Pagination cursor.
        schema:
          type: string
      responses:
        '200':
          description: A list of test suites.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    totalTests:
                      type: integer
                    passedTests:
                      type: integer
                    failedTests:
                      type: integer
                    duration:
                      type: number
        '401':
          description: Unauthorized.
components:
  schemas:
    TestResult:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
          - passed
          - failed
          - skipped
          - error
        duration:
          type: number
          description: Duration in seconds.
        suite:
          type: string
        dateCreated:
          type: string
          format: date-time
      required:
      - id
      - name
      - status
  parameters:
    OrganizationIdOrSlug:
      name: organization_id_or_slug
      in: path
      required: true
      description: The ID or slug of the organization.
      schema:
        type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authentication token for the Sentry API.