> ## Documentation Index
> Fetch the complete documentation index at: https://api-documentation.kare-app.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one audit finding



## OpenAPI

````yaml /api/ad/openapi.json get /ad/anomalies/v1/{id}
openapi: 3.0.3
info:
  title: KARE API
  description: Backend API for the KARE platform
  version: dev
servers:
  - url: http://localhost:3000
    description: Local dev
security: []
tags:
  - name: better-auth
    description: >-
      Better Auth's own endpoints (sign-in, session, MFA, password) - generated
      from the audience's live config via `generateOpenAPISchema()`, not
      hand-written.
paths:
  /ad/anomalies/v1/{id}:
    get:
      tags:
        - anomalies
      summary: Get one audit finding
      operationId: getAnomalyADV1
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - actions-info
                - updatable-fields
                - project
              description: >-
                Extend options (JSON-encoded array, e.g.
                `?extend=["category"]`):

                - "actions-info": Adds `actions` { canBeUpdated, canBeDeleted,
                canBeResolved, canBeUnresolved }.

                - "updatable-fields": Adds `updatableFields` - editable-field
                flags.

                - "project": Hydrates the parent mission (id, ref, name).
          in: query
          name: extend
          required: false
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  ref:
                    type: string
                    maxLength: 40
                    pattern: ^[A-Z]+-[1-9]\d*(?:-[A-Z]+-[1-9]\d*)*$
                  type:
                    type: string
                    enum:
                      - audit
                  status:
                    type: string
                    enum:
                      - extracted
                      - unreviewed
                      - pending
                      - resolved
                  risk:
                    type: string
                    enum:
                      - low
                      - medium
                      - high
                      - critic
                  title:
                    type: string
                    minLength: 1
                    maxLength: 300
                  description:
                    nullable: true
                    type: string
                    maxLength: 5000
                  location:
                    nullable: true
                    type: string
                    maxLength: 200
                  resolutionDelay:
                    nullable: true
                    type: string
                    pattern: >-
                      ^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$
                  comment:
                    nullable: true
                    type: string
                    maxLength: 2000
                  screenshot:
                    nullable: true
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 255
                      mimeType:
                        type: string
                        minLength: 1
                        maxLength: 100
                      size:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        maximum: 1073741824
                      storageKey:
                        type: string
                        minLength: 1
                        maxLength: 512
                      presignedUrl:
                        type: string
                        format: uri
                    required:
                      - name
                      - mimeType
                      - size
                      - storageKey
                      - presignedUrl
                    additionalProperties: false
                  projectId:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  observedAt:
                    nullable: true
                    type: string
                    format: date-time
                  resolvedAt:
                    nullable: true
                    type: string
                    format: date-time
                  resolvedComment:
                    nullable: true
                    type: string
                    maxLength: 2000
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  actions:
                    type: object
                    properties:
                      canBeUpdated:
                        type: boolean
                      canBeDeleted:
                        type: boolean
                      canBeResolved:
                        type: boolean
                      canBeUnresolved:
                        type: boolean
                    required:
                      - canBeUpdated
                      - canBeDeleted
                      - canBeResolved
                      - canBeUnresolved
                    additionalProperties: false
                  updatableFields:
                    type: object
                    properties:
                      title:
                        type: boolean
                      risk:
                        type: boolean
                      description:
                        type: boolean
                      location:
                        type: boolean
                      resolutionDelay:
                        type: boolean
                      comment:
                        type: boolean
                    required:
                      - title
                      - risk
                      - description
                      - location
                      - resolutionDelay
                      - comment
                    additionalProperties: false
                  project:
                    nullable: true
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      ref:
                        type: string
                        maxLength: 40
                        pattern: ^[A-Z]+-[1-9]\d*(?:-[A-Z]+-[1-9]\d*)*$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 150
                    required:
                      - id
                      - ref
                      - name
                    additionalProperties: false
                required:
                  - id
                  - ref
                  - type
                  - status
                  - risk
                  - title
                  - description
                  - location
                  - resolutionDelay
                  - comment
                  - screenshot
                  - projectId
                  - observedAt
                  - resolvedAt
                  - resolvedComment
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false

````