---
title: "List repositories a container image can be linked to"
method: POST
path: "/api/v2/containerImages/listRepositories"
tags: ["Container Scanning"]
---

# List repositories a container image can be linked to

`POST /api/v2/containerImages/listRepositories`

## Request

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

List the non-ephemeral repositories the caller can access, as id+name pairs, for picking which repository to link a container image to. Powers the repository selector in the scan dialog and the image detail page.

## Request body

- ContainerImageListRepositoriesRequest: Input for listing the repositories a container image can be linked to (the non-ephemeral repositories the caller can access).
  - `organizationId` string: Organization ID (optional).

## Response `200`

Repositories retrieved

- ContainerImageListRepositoriesResponse: Repositories the caller can link a container image to, as id+name pairs.
  - `repositories` object[], required
    - `id` string, required
    - `name` string, required

## Other responses

- `401`: 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)
