---
title: "List Repositories For Asset"
method: GET
path: "/api/v1/assets/{asset_id}/repositories"
tags: ["git-integration", "Git Integration"]
---

# List Repositories For Asset

`GET /api/v1/assets/{asset_id}/repositories`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/assets/{asset_id}/repositories`
- Auth: none declared

List all repositories linked to an asset.

Args:
    asset_id: Asset public ID (UUID or name)
    enabled_only: Only return enabled links
    ctx: Application context with session, user, and company info

Returns:
    StandardResponse with list of linked repositories

## Path parameters

- `asset_id` string, required

## Query parameters

- `enabled_only` boolean

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
