---
title: "Get scan details"
method: GET
path: "/api/v1/deployments/{deploymentId}/scan/{scanId}"
tags: ["ScansService"]
---

# Get scan details

`GET /api/v1/deployments/{deploymentId}/scan/{scanId}`

Request the details of a scan including the associated deployment, repository, and commit information.

## Path parameters

- `deploymentId` string, int64, required — Deployment ID (numeric). Example: `123`. Can be found at `/deployments`, or in your Settings in the web UI.
- `scanId` string, int64, required — Scan ID (numeric). Example: `456`. Can be found at `/deployments/{deploymentId}/scans/search`.

## Response `200`

OK

- ProtosOpenapiV1GetScanResponse
  - `completed_at` string — imestamp of when the scan started.
  - `deployment_id` integer — The unique ID of the deployment associated with the scanned repository.
  - `enabled_products` string[] — The products used when running the scan.
  - `exit_code` integer
  - `has_logs` boolean
  - `id` integer — The unique ID representing this scan.
  - `meta` ProtosOpenapiV1GetScanResponseScanMeta
    - `true` string — What triggered this scan, if applicable.
    - `branch` string — The branch that was scanned, if applicable.
    - `commit` string — The commit SHA associated with the scan, if applicable.
    - `config` string — The path of the configuration file used for this scan, if applicable.
    - `repo_url` string — The URL of the scanned repository, if applicable.
    - `ci_job_url` string — The URL of the CI job that ran the scan, if applicable.
    - `repository` string — The name and organization of the scanned repository, if applicable.
    - `commit_title` string — The commit message associated with the scan, if applicable.
    - `pull_request_id` string — The ID of the pull request associated with the scan, if applicable.
    - `pull_request_title` string — The title of the pull request associated with the scan if applicable.
    - `commit_author_name` string — The name of the author of the commit associated with the scan, if applicable.
    - `commit_author_image_url` string — The avatar image url of the author of the commit associated with the scan, if applicable.
    - `commit_author_email` string — The email of the author of the commit associated with the scan, if applicable.
    - `commit_author_username` string — The username of the author of the commit associated with the scan, if applicable.
    - `pull_request_author_username` string — The username of the author of the pull request associated with the scan, if applicable.
    - `pull_request_author_image_url` string — The avatar image url of the author of the pull request associated with the scan, if applicable.
  - `repository_id` integer — The unique ID of the repository that was scanned.
  - `started_at` string — when the scan was started
  - `stats` object — Miscellaneous statistics about the scan, like number of findings found and scan duration.

---

[API](https://skmtc.net/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.net/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/versions/6483eeecd582/schema)
