> ## Documentation Index
> Fetch the complete documentation index at: https://docs.niadra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data issues

> Null fields, values out of vocabulary, stale sources, schema drift, divergence and rule conflicts, returned to whoever owns the data, with no personal data.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/data-issues
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/data-issues:
    get:
      tags:
        - turns
      summary: Data issues
      description: >-
        Newest opened first: data problems, drift, divergence and rule
        conflicts, with no personal data.


        **Authentication.** Console person token with the `integration` role (or
        admin), or a source key with the `admin` scope. It answers only in a
        space with one of the `turns`, `state` features on (the `features`
        document); in a space with none of them, 404.
      operationId: data_issues_v1_data_issues_get
      parameters:
        - in: query
          name: status
          required: false
          schema:
            default: open
            enum:
              - open
              - acknowledged
              - all
            title: Status
            type: string
        - in: query
          name: kind
          required: false
          schema:
            anyOf:
              - maxLength: 64
                type: string
              - type: 'null'
            title: Kind
        - in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - maxLength: 200
                type: string
              - type: 'null'
            title: Cursor
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataIssuePage'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    DataIssuePage:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/DataIssue'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      required:
        - items
      title: DataIssuePage
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    DataIssue:
      additionalProperties: false
      description: >-
        A problem in the company's data, returned to its owner with no personal
        data: one open issue per

        class, type, field and source, counted each time it is found again.
      properties:
        acknowledged_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Once acknowledged, the next occurrence opens a new issue.
          title: Acknowledged At
        field:
          anyOf:
            - maxLength: 256
              minLength: 1
              type: string
            - type: 'null'
          title: Field
        issue_id:
          maxLength: 512
          minLength: 1
          title: Issue Id
          type: string
        kind:
          description: >-
            `null_field`, `out_of_vocabulary`, `stale_source`, `invalid_value`:
            a value an agent's tool showed; `coverage_drop`: a field filled less
            often than before; `divergence`: two sources of one value disagree;
            `drift`: the schema a type mirrors changed; `rule_conflict`: two
            rules decide one thing differently; `type_undeclared`: tools showed
            objects of a type the space never declared.
          enum:
            - null_field
            - out_of_vocabulary
            - stale_source
            - coverage_drop
            - invalid_value
            - divergence
            - drift
            - rule_conflict
            - type_undeclared
          title: Kind
          type: string
        last_seen_at:
          format: date-time
          title: Last Seen At
          type: string
        object_type:
          anyOf:
            - maxLength: 256
              minLength: 1
              type: string
            - type: 'null'
          title: Object Type
        occurrences:
          title: Occurrences
          type: integer
        opened_at:
          format: date-time
          title: Opened At
          type: string
        refs:
          description: The first objects it was seen on, up to 50.
          items:
            description: >-
              An object as `<type>:<namespace>:<id>`, e.g.
              `item_variant:store:991`.
            pattern: ^[a-z][a-z0-9_]{0,39}:[^:\s]{1,256}:\S{1,512}$
            type: string
          maxItems: 50
          title: Refs
          type: array
        source:
          anyOf:
            - maxLength: 256
              minLength: 1
              type: string
            - type: 'null'
          description: 'Where the data came from: a tool or a system of record.'
          title: Source
      required:
        - issue_id
        - kind
        - occurrences
        - opened_at
        - last_seen_at
      title: DataIssue
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````