---
title: "Get assets report"
method: POST
path: "/api/v2/stats/assets"
tags: ["Stats"]
---

# Get assets report

`POST /api/v2/stats/assets`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/stats/assets`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Returns per-application asset metadata and aggregated totals for the selected organization.

## Request body

- AssetsReportRequest
  - `organizationId` string
  - `cursor` string: Opaque cursor returned from previous page
  - `limit` integer
  - `search` string

## Response `200`

Successful response

- AssetsReportResponse
  - `totals` AssetsReportTotals, required
    - `repositories` number, required
    - `applications` number, required
    - `endpoints` number, required
    - `issues` number, required
  - `applications` AssetsReportApplication[], required
    - `id` string
    - `name` string
    - `relativePath` string
    - `repository` AssetsReportRepositoryRef
      - `id` string
      - `name` string
      - `projectId` string
    - `tags` AssetsReportTag[]
      - `id` string
      - `name` string
      - `description` string, nullable
    - `tagCount` number
    - `issueCounts` AssetsReportIssueCounts
      - `total` number, required
      - `bySeverity` object, required
        - `critical` number, required
        - `high` number, required
        - `medium` number, required
        - `low` number, required
        - `info` number, required
    - `endpointCount` number
    - `stack` AssetsReportStack
      - `description` string
      - `technicalStack` string[]
      - `architecture` string
    - `scanMetadata` AssetsReportScanMetadata
      - `codeScanId` string
      - `sastScanId` string
      - `scannedAt` string, date-time
  - `nextCursor` string, nullable, required

---

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