---
title: "Get Asset Code Changes"
method: GET
path: "/api/v1/assets/{asset_id}/code-changes"
tags: ["code-changes", "Code Changes"]
---

# Get Asset Code Changes

`GET /api/v1/assets/{asset_id}/code-changes`

## Request

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

Get correlated code changes for an asset.

Returns git events (commits and PRs) from linked repositories that
are correlated with this asset, scored by relevance.

Args:
    asset_id: Asset internal ID
    since: Number of days to look back (default 7, max 90)
    ctx: Application context with session, user, and company info

Returns:
    StandardResponse with list of correlated code changes

## Path parameters

- `asset_id` integer, required

## Query parameters

- `since` integer: Days to look back

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