---
title: "Get application OpenAPI specs"
method: GET
path: "/api/v1/oas/{appId}/mapping"
tags: ["Hosted OAS"]
---

# Get application OpenAPI specs

`GET /api/v1/oas/{appId}/mapping`

Retrieves all OpenAPI specifications mapped to the specified application.


> Requires `read:scan_config` permission.

## Path parameters

- `appId` string, uuid, required

## Response `200`

Get the OAS specs mapped to this application for use with HawkScan.

- AppOasGetApplicationMappedOASResponse — Get the OAS specs mapped to this application for use with HawkScan.
  - `appId` string — The requested applicationId
  - `assets` OpenApiSpecOASAsset[] — OASAssets that have been mapped included to this application
    - `oasId` string — UUID of the hosted OAS files
    - `repositoryId` string — Repository UUID
    - `repositoryName` string — The name of the repository
    - `sourceRootPath` string — Source code path in repository the OAS was derived from
  - `repoIds` string[] — repository IDs mapped to this application

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/stackhawk/apis/stackhawk-public-api.md) · [All operations](https://skmtc.net/stackhawk/apis/stackhawk-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stackhawk/stackhawk-public-api/revisions/ad3dfd54cb63/schema)
