---
title: "Get All Code Analysis Versions"
method: GET
path: "/v1/inspect/analyze/{test_id}/versions"
tags: ["Code Analysis"]
---

# Get All Code Analysis Versions

`GET /v1/inspect/analyze/{test_id}/versions`

## Request

- Base URL: `https://api.mailgun.net`
- URL: `https://api.mailgun.net/v1/inspect/analyze/{test_id}/versions`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/mailgun/apis/email-preview-api/docs/v1/inspect/analyze/:test_id/versions/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all versions available for a given test ID.

## Path parameters

- `test_id` string, required

## Response `200`

A 200 response

- GithubComMailgunInspectInternalCodeanalysisVersionListResponse
  - `meta` object, nullable: Metadata about the version list including count
  - `items` GithubComMailgunInspectInternalCodeanalysisVersionListItem, required
    - `versions` GithubComMailgunInspectInternalCodeanalysisVersionInfo[], required
      - `id` string, required: Unique identifier for the test
      - `version` integer, required: Version number of the test result
      - `links` GithubComMailgunInspectInternalCodeanalysisLinks, required
        - `self` string, required: URL to access this resource

## Other responses

- `401`: A 401 response
- `404`: A 404 response

---

[API](https://skmtc.dev/mailgun/apis/email-preview-api.md) - [All operations](https://skmtc.dev/mailgun/apis/email-preview-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailgun/apis/email-preview-api/revisions/c8a18f02bc8b?raw)
