---
title: "Get asynchronous code scan status"
method: POST
path: "/api/v2/async-code-scans/status"
tags: ["Async Code Scans"]
---

# Get asynchronous code scan status

`POST /api/v2/async-code-scans/status`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/async-code-scans/status`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Returns the current state of a queued, running, completed, or failed async code scan job. Repository jobs authorize repository view access; standalone jobs require the submitting token or user.

## Request body

- AsyncCodeScanJobRequest
  - `jobId` string, uuid, required

## Response `200`

Current job status

- AsyncCodeScanStatusResponse
  - `jobId` string, uuid, required
  - `repositoryId` string, nullable, required
  - `status` 'queued' | 'running' | 'completed' | 'failed', required
  - `codeScanId` string, nullable, required
  - `error` string, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `startedAt` string, date-time, nullable, required
  - `completedAt` string, date-time, nullable, required
  - `resultExpiresAt` string, date-time, nullable, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `403`: Error Response
- `404`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
