---
title: "List Code Analysis Jobs"
method: GET
path: "/v1/inspect/analyze"
tags: ["Code Analysis"]
---

# List Code Analysis Jobs

`GET /v1/inspect/analyze`

## Request

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

Returns a paginated list of all code analysis jobs under the account, showing only the latest version of each test. Uses skip/limit pagination and supports filtering by status.

## Query parameters

- `status` 'Processing' | 'Completed' | 'Failed'
- `limit` integer, required

## Response `200`

A 200 response

- GithubComMailgunInspectInternalCodeanalysisCodeAnalysisListResponse
  - `meta` object, nullable: Metadata including pagination links and result counts
  - `items` GithubComMailgunInspectInternalCodeanalysisCodeAnalysisListItem[], required: List of code analysis tests
    - `test_id` string, required: Unique identifier for the code analysis test
    - `status` string, required: Current processing status of the test
    - `version` integer, required: Latest version number of this test
    - `created_at` string, date-time, required: Timestamp when the test was created
    - `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)
