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

# Ingestion status

> Whether what was sent for a conversation or task became memory yet: open, processing, ready, failed or unknown. States only, never content.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/ingest/status
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/ingest/status:
    post:
      tags:
        - ingest
      summary: Ingestion status
      description: >-
        Whether what was sent for a conversation or task became memory yet:
        `open`, `processing`,

        `ready`, `failed` or `unknown`. States only, never content.


        **Authentication.** Source key: `Authorization: Bearer nia_sk_...`.
        Required scope: `track`.
      operationId: ingest_status_v1_ingest_status_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestStatusRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestStatus'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
components:
  schemas:
    IngestStatusRequest:
      additionalProperties: false
      description: >-
        `POST /v1/ingest/status`: the conversation or task goes in the body,
        never in a URL.
      properties:
        conversation_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Conversation Id
        task_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Task Id
      title: IngestStatusRequest
      type: object
    IngestStatus:
      additionalProperties: false
      description: >-
        Whether what was sent for a conversation or task became memory yet. No
        content, only states.
      properties:
        close_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Close Reason
        closed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Closed At
        extraction:
          anyOf:
            - enum:
                - ok
                - minimal
                - invalid
                - failed
              type: string
            - type: 'null'
          description: >-
            The latest extraction run of the last closed session, when there is
            one.
          title: Extraction
        last_event_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Event At
        masked:
          anyOf:
            - additionalProperties:
                type: integer
              type: object
            - type: 'null'
          description: >-
            Values held back from this conversation's or task's events before
            storage, by type (`card`, `cvv`, `password`, `secret`); absent when
            none was.
          title: Masked
        state:
          description: >-
            `open`: still receiving turns, memory comes after it closes by
            inactivity or `conversation.ended`. `processing`: closed, extraction
            queued or running. `ready`: extracted, memory applies it within
            seconds. `failed`: the extraction failed and a template episode
            stands in; the nightly pass extracts again. `unknown`: nothing was
            received under this id.
          enum:
            - unknown
            - open
            - processing
            - ready
            - failed
          title: State
          type: string
      required:
        - state
      title: IngestStatus
      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
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...

````