Heroku Test Case API

The Test Case API from Heroku — 1 operation(s) for test case.

GitHub OpenAPI

Operations 1

GET /test-runs/{test-run_id}/test-cases List #

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/heroku:heroku-test-case-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

heroku-test-case-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform Test Case API
  version: '3'
  description: The platform API empowers developers to automate, extend and combine Heroku with other services. Converted mechanically from the provider-published JSON Hyper-Schema at https://api.heroku.com/schema.
  contact:
    name: Heroku
    url: https://devcenter.heroku.com/articles/platform-api-reference
servers:
- url: https://api.heroku.com
security:
- bearerAuth: []
tags:
- name: Test Case
paths:
  /test-runs/{test-run_id}/test-cases:
    get:
      operationId: testCaseList
      summary: List
      description: List test cases
      tags:
      - Test Case
      parameters:
      - name: test-run_id
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: instances
      x-source: https://api.heroku.com/schema#/definitions/test-case/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/test-case'
components:
  schemas:
    test-case:
      $schema: http://json-schema.org/draft-04/hyper-schema
      title: Test Case
      description: A single test case belonging to a test run
      stability: prototype
      strictProperties: true
      type:
      - object
      definitions:
        id:
          description: unique identifier of a test case
          readOnly: true
          format: uuid
          type:
          - string
        description:
          description: description of the test case
          type:
          - string
        diagnostic:
          description: meta information about the test case
          type:
          - string
        directive:
          description: special note about the test case e.g. skipped, todo
          type:
          - string
        passed:
          description: whether the test case was successful
          type:
          - boolean
        number:
          description: the test number
          type:
          - integer
        identity:
          anyOf:
          - $ref: '#/components/schemas/test-case/definitions/id'
        created_at:
          description: when test case was created
          format: date-time
          readOnly: true
          type:
          - string
        updated_at:
          description: when test case was updated
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        id:
          $ref: '#/components/schemas/test-case/definitions/id'
        created_at:
          $ref: '#/components/schemas/test-case/definitions/created_at'
        updated_at:
          $ref: '#/components/schemas/test-case/definitions/updated_at'
        description:
          $ref: '#/components/schemas/test-case/definitions/description'
        diagnostic:
          $ref: '#/components/schemas/test-case/definitions/diagnostic'
        directive:
          $ref: '#/components/schemas/test-case/definitions/directive'
        passed:
          $ref: '#/components/schemas/test-case/definitions/passed'
        number:
          $ref: '#/components/schemas/test-case/definitions/number'
        test_node:
          description: the test node which executed this test case
          properties:
            id:
              $ref: '#/components/schemas/test-node/definitions/identity'
          type:
          - object
        test_run:
          description: the test run which owns this test case
          properties:
            id:
              $ref: '#/components/schemas/test-run/definitions/identity'
          type:
          - object
    test-run:
      $schema: http://json-schema.org/draft-04/hyper-schema
      title: Test Run
      description: An execution or trial of one or more tests
      stability: prototype
      strictProperties: true
      type:
      - object
      definitions:
        actor_email:
          description: the email of the actor triggering the test run
          type:
          - string
          format: email
        clear_cache:
          description: whether the test was run with an empty cache
          type:
          - boolean
          - 'null'
        commit_branch:
          description: the branch of the repository that the test run concerns
          type:
          - string
        commit_message:
          description: the message for the commit under test
          type:
          - string
        commit_sha:
          description: the SHA hash of the commit under test
          type:
          - string
        debug:
          description: whether the test run was started for interactive debugging
          type:
          - boolean
        app_setup:
          description: the app setup for the test run
          type:
          - 'null'
          - object
        id:
          description: unique identifier of a test run
          readOnly: true
          format: uuid
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/test-run/definitions/id'
        created_at:
          description: when test run was created
          format: date-time
          readOnly: true
          type:
          - string
        message:
          description: human friendly message indicating reason for an error
          type:
          - string
          - 'null'
        number:
          description: the auto incrementing test run number
          type:
          - integer
        source_blob_url:
          description: The download location for the source code to be tested
          type:
          - string
        status:
          description: current state of the test run
          enum:
          - pending
          - cancelled
          - creating
          - building
          - running
          - succeeded
          - failed
          - errored
          - debugging
          readOnly: true
          type:
          - string
        updated_at:
          description: when test-run was updated
          format: date-time
          readOnly: true
          type:
          - string
        warning_message:
          description: human friently warning emitted during the test run
          type:
          - string
          - 'null'
      properties:
        actor_email:
          $ref: '#/components/schemas/test-run/definitions/actor_email'
        clear_cache:
          $ref: '#/components/schemas/test-run/definitions/clear_cache'
        commit_branch:
          $ref: '#/components/schemas/test-run/definitions/commit_branch'
        commit_message:
          $ref: '#/components/schemas/test-run/definitions/commit_message'
        commit_sha:
          $ref: '#/components/schemas/test-run/definitions/commit_sha'
        debug:
          $ref: '#/components/schemas/test-run/definitions/debug'
        app_setup:
          $ref: '#/components/schemas/test-run/definitions/app_setup'
        created_at:
          $ref: '#/components/schemas/test-run/definitions/created_at'
        dyno:
          description: the type of dynos used for this test-run
          properties:
            size:
              $ref: '#/components/schemas/dyno/definitions/size'
          type:
          - 'null'
          - object
        id:
          $ref: '#/components/schemas/test-run/definitions/id'
        message:
          $ref: '#/components/schemas/test-run/definitions/message'
        number:
          $ref: '#/components/schemas/test-run/definitions/number'
        organization:
          description: the team that owns this test-run
          properties:
            name:
              $ref: '#/components/schemas/team/definitions/name'
          type:
          - 'null'
          - object
        pipeline:
          description: the pipeline which owns this test-run
          properties:
            id:
              $ref: '#/components/schemas/pipeline/definitions/identity'
          type:
          - object
        status:
          $ref: '#/components/schemas/test-run/definitions/status'
        source_blob_url:
          $ref: '#/components/schemas/test-run/definitions/source_blob_url'
        updated_at:
          $ref: '#/components/schemas/test-run/definitions/updated_at'
        user:
          $ref: '#/components/schemas/account'
        warning_message:
          $ref: '#/components/schemas/test-run/definitions/warning_message'
    test-node:
      $schema: http://json-schema.org/draft-04/hyper-schema
      title: Test Node
      description: A single test node belonging to a test run
      stability: prototype
      strictProperties: true
      type:
      - object
      definitions:
        id:
          description: unique identifier of a test node
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        attach_url:
          description: a URL to stream output from for debug runs or null for non-debug runs
          example: rendezvous://rendezvous.runtime.heroku.com:5000/{rendezvous-id}
          readOnly: true
          type:
          - string
          - 'null'
        created_at:
          description: when test node was created
          format: date-time
          readOnly: true
          type:
          - string
        error_status:
          description: the status of the test run when the error occured
          type:
          - string
          - 'null'
        exit_code:
          description: the exit code of the test script
          type:
          - integer
          - 'null'
        identity:
          anyOf:
          - $ref: '#/components/schemas/test-node/definitions/id'
        index:
          description: The index of the test node
          type:
          - integer
        message:
          description: human friendly message indicating reason for an error
          type:
          - string
          - 'null'
        output_stream_url:
          description: the streaming output for the test node
          example: https://example.com/output.log
          type:
          - string
        setup_stream_url:
          description: the streaming test setup output for the test node
          example: https://example.com/test-setup.log
          type:
          - string
        status:
          description: current state of the test run
          enum:
          - pending
          - cancelled
          - creating
          - building
          - running
          - succeeded
          - failed
          - errored
          - debugging
          readOnly: true
          type:
          - string
        updated_at:
          description: when test node was updated
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        created_at:
          $ref: '#/components/schemas/test-node/definitions/created_at'
        dyno:
          description: the dyno which belongs to this test node
          properties:
            id:
              $ref: '#/components/schemas/dyno/definitions/identity'
            attach_url:
              $ref: '#/components/schemas/test-node/definitions/attach_url'
          type:
          - object
          - 'null'
        error_status:
          $ref: '#/components/schemas/test-node/definitions/error_status'
        exit_code:
          $ref: '#/components/schemas/test-node/definitions/exit_code'
        id:
          $ref: '#/components/schemas/test-node/definitions/identity'
        index:
          $ref: '#/components/schemas/test-node/definitions/index'
        message:
          $ref: '#/components/schemas/test-node/definitions/message'
        output_stream_url:
          $ref: '#/components/schemas/test-node/definitions/output_stream_url'
        pipeline:
          description: the pipeline which owns this test node
          properties:
            id:
              $ref: '#/components/schemas/pipeline/definitions/identity'
          type:
          - object
        setup_stream_url:
          $ref: '#/components/schemas/test-node/definitions/setup_stream_url'
        status:
          $ref: '#/components/schemas/test-node/definitions/status'
        updated_at:
          $ref: '#/components/schemas/test-node/definitions/updated_at'
        test_run:
          description: the test run which owns this test node
          properties:
            id:
              $ref: '#/components/schemas/test-run/definitions/identity'
          type:
          - object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'OAuth access token or API key (see https://devcenter.heroku.com/articles/platform-api-reference#authentication). Requests must send Accept: application/vnd.heroku+json; version=3.'
x-generated-from: json-hyper-schema
x-source: https://api.heroku.com/schema
x-generated: '2026-11-25'