---
title: "Get Median Open Age by Severity Report"
method: POST
path: "/api/reporting/{deploymentId}/reports/median-open-age/by-severity"
tags: ["ReportsService"]
---

# Get Median Open Age by Severity Report

`POST /api/reporting/{deploymentId}/reports/median-open-age/by-severity`

## Request

- The document declares no server URL.
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/semgrep/apis/semgrep-web-app/docs/api/reporting/:deploymentId/reports/median-open-age/by-severity/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `deploymentId` string, int64, required: The unique numerical identifier of the deployment associated with the report.

## Request body

- ProtosReportingV1GetReportRequest
  - `filters` ProtosReportingV1ReportFilters
    - `timePeriod` ProtosReportingV1TimePeriod: ****************************************** Shared types ******************************************
      - `since` string, date-time
      - `until` string, date-time
    - `timeBucketSize` 'TIME_BUCKET_SIZE_DAY' | 'TIME_BUCKET_SIZE_WEEK' | 'TIME_BUCKET_SIZE_MONTH', enum: | value | description | |-------|---------------| | TIME_BUCKET_SIZE_DAY | | | TIME_BUCKET_SIZE_WEEK | | | TIME_BUCKET_SIZE_MONTH | |
    - `findingTypes` string[]: | value | description | |-------|---------------| | FINDING_TYPE_CODE | | | FINDING_TYPE_SCA | | | FINDING_TYPE_SECRETS | |
    - `findingSeverities` string[]: | value | description | |-------|---------------| | FINDING_SEVERITY_LOW | | | FINDING_SEVERITY_MEDIUM | | | FINDING_SEVERITY_HIGH | | | FINDING_SEVERITY_CRITICAL | |
    - `projects` string[]: Case sensitive project names, prefer project_ids for filtering.
    - `tags` string[]
    - `confidence` string[]: | value | description | |-------|---------------| | FINDING_CONFIDENCE_LOW | | | FINDING_CONFIDENCE_MEDIUM | | | FINDING_CONFIDENCE_HIGH | |
    - `reachability` string[]: | value | description | |-------|---------------| | FINDING_REACHABILITY_REACHABLE | | | FINDING_REACHABILITY_ALWAYS_REACHABLE | | | FINDING_REACHABILITY_CONDITIONALLY_REACHABLE | | | FINDING_REACHABILITY_NO_REACHABILITY_ANALYSIS | | | FINDING_REACHABILITY_UNREACHABLE | |
    - `validity` string[]: | value | description | |-------|---------------| | FINDING_VALIDITY_VALID | | | FINDING_VALIDITY_INVALID | | | FINDING_VALIDITY_ERROR | | | FINDING_VALIDITY_NO_VALIDATOR | |
    - `teams` string[]
    - `ruleIds` string[]
    - `aiVerdicts` string[]: | value | description | |-------|---------------| | VERDICT_TRUE_POSITIVE | | | VERDICT_FALSE_POSITIVE | | | VERDICT_NO_VERDICT | |
    - `deploymentStatuses` string[]: | value | description | |-------|---------------| | DEPLOYMENT_STATUS_UNKNOWN | | | DEPLOYMENT_STATUS_DEPLOYED | | | DEPLOYMENT_STATUS_NOT_DEPLOYED | |
    - `publicExposures` string[]: | value | description | |-------|---------------| | PUBLIC_EXPOSURE_UNKNOWN | | | PUBLIC_EXPOSURE_PUBLIC | | | PUBLIC_EXPOSURE_NOT_PUBLIC | |
    - `findingCategories` string[]
    - `projectIds` string[]

## Response `200`

OK

- ProtosReportingV1GetMedianOpenAgeBySeverityReportResponse
  - `buckets` ProtosReportingV1GetMedianOpenAgeBySeverityReportResponseBucket[]
    - `timePeriod` ProtosReportingV1TimePeriod: ****************************************** Shared types ******************************************
      - `since` string, date-time
      - `until` string, date-time
    - `low` integer
    - `medium` integer
    - `high` integer
    - `critical` integer

---

[API](https://skmtc.dev/semgrep/apis/semgrep-web-app.md) - [All operations](https://skmtc.dev/semgrep/apis/semgrep-web-app/llms.txt) - [OpenAPI document](https://skmtc.dev/semgrep/apis/semgrep-web-app/revisions/6483eeecd582?raw)
