---
title: "List AI memory violation results"
method: GET
path: "/api/v2/static-analysis/ai/memory"
tags: ["Static Analysis"]
---

# List AI memory violation results

`GET /api/v2/static-analysis/ai/memory`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/static-analysis/ai/memory`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Get all AI memory violation results for the authenticated organization.

## Response `200`

Successful response

- AiMemoryViolationResultsResponse: Response containing a list of AI memory violation results.
  - `data` AiMemoryViolationResultResponseData[], required: The list of AI memory violation results.
    - `attributes` AiMemoryViolationResultResponseAttributes, required: Response attributes of an AI memory violation result.
      - `created_at` string, date-time, required: The creation timestamp.
      - `created_by` string, required: The identifier of the user who created the result.
      - `line` integer, required: The line number where the violation was found.
      - `message` string, required: A message explaining the violation result.
      - `name` string, required: The file path where the violation was found.
      - `repository_id` string, required: The repository identifier.
      - `rule` string, required: The rule identifier in the format ruleset/rule.
      - `sha` string, required: The git commit SHA where the violation was found.
      - `type` 'TP' | 'FP', required: The type of AI memory violation result indicating whether it is a true positive or false positive.
    - `id` string, required: The numeric identifier of the violation result.
    - `type` 'ai_memory_violation_result', required: AI memory violation result resource type.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `429`: Too many requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
