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

# Get Code Analysis Results

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

## Request

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

Returns the latest version of code analysis test results for a given test ID.

## Path parameters

- `test_id` string, required

## Query parameters

- `slug` string
- `support_type` 'y' | 'a' | 'n' | 'u'
- `application_type` 'web' | 'mobile' | 'desktop'
- `group_by` 'notes'

## Response `200`

A 200 response

- GithubComMailgunInspectInternalCodeanalysisTestResultResponse
  - `meta` object, nullable: Metadata including status and counts and support statistics
  - `items` GithubComMailgunInspectInternalCodeanalysisTestResultItem, required
    - `id` string, required: Unique identifier for the test
    - `version` integer, required: Version number of this test result
    - `features` GithubComMailgunInspectInternalCodeanalysisMatchedResult[], required: List of email features detected in the analyzed HTML
      - `slug` string: URL-friendly identifier for this feature
      - `name` string: Name of the email feature
      - `description` string, nullable: Detailed information about what this email feature does
      - `category` string: Machine-readable category code that groups related features
      - `notes_lookup` object: Maps note reference IDs to their corresponding implementation notes
      - `instances` GithubComMailgunInspectInternalCodeanalysisInstance[], required
        - `id` string, required: Unique identifier for this instance of the feature in the HTML
        - `line` integer, required: Line number where the feature was found in the HTML source
        - `column` integer, required: Column number where the feature was found in the HTML source
        - `resolved` boolean, nullable: Whether this specific instance has been resolved
      - `support` GithubComMailgunInspectInternalCodeanalysisSupport, required
        - `y` GithubComMailgunInspectInternalCodeanalysisVariantReference[]: Email clients that fully support this feature
          - `id` string, required: Unique identifier for the email client variant (references dictionary variants)
          - `notes` string[]: Additional implementation notes or caveats for this client
        - `a` GithubComMailgunInspectInternalCodeanalysisVariantReference[]: Email clients that partially support this feature
          - `id` string, required: Unique identifier for the email client variant (references dictionary variants)
          - `notes` string[]: Additional implementation notes or caveats for this client
        - `n` GithubComMailgunInspectInternalCodeanalysisVariantReference[]: Email clients that do not support this feature
          - `id` string, required: Unique identifier for the email client variant (references dictionary variants)
          - `notes` string[]: Additional implementation notes or caveats for this client
        - `u` GithubComMailgunInspectInternalCodeanalysisVariantReference[]: Email clients with unknown support for this feature
          - `id` string, required: Unique identifier for the email client variant (references dictionary variants)
          - `notes` string[]: Additional implementation notes or caveats for this client

## 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)
