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

# Record what the cell inferred

> Cell route: what it inferred from traffic, as an applied diff by `niadra:observed`.



## OpenAPI

````yaml openapi/en/control.json POST /v1/config/observed
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/config/observed:
    post:
      summary: Record what the cell inferred
      description: >-
        What a cell inferred of a document from the space's traffic, as an
        applied diff by `niadra:observed`;

        it changes no declaration.


        **Authentication.** Cell credential (`X-Niadra-Cell-Token`). Used by
        Niadra cells, not by your code.
      operationId: record_observed_v1_config_observed_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProposalCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiffOut'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - cellToken: []
components:
  schemas:
    ProposalCreate:
      additionalProperties: false
      properties:
        cell_id:
          title: Cell Id
          type: string
        document:
          title: Document
        reason:
          maxLength: 1000
          minLength: 3
          title: Reason
          type: string
        space_id:
          format: uuid
          title: Space Id
          type: string
        type:
          title: Type
          type: string
      required:
        - space_id
        - type
        - document
        - reason
        - cell_id
      title: ProposalCreate
      type: object
    DiffOut:
      additionalProperties: false
      properties:
        applied_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Applied Version
          description: The version the diff created when it was applied.
        author_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Author Id
        author_label:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Who proposed it, to show: the person's e-mail, or the label of an
            author that is not a person (`control_plane`, `assistant@<cell>`).
            Null only for a person who no longer exists.
          title: Author Label
        base_version:
          title: Base Version
          type: integer
          description: >-
            The configuration version the diff was written against. A diff
            written against an outdated document is refused at approval.
        created_at:
          format: date-time
          title: Created At
          type: string
        decided_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Decided At
        decided_by:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Decided By
        decided_by_label:
          anyOf:
            - type: string
            - type: 'null'
          description: The e-mail of the person who approved or rejected it.
          title: Decided By Label
        diff_id:
          format: uuid
          title: Diff Id
          type: string
        document:
          title: Document
        reason:
          title: Reason
          type: string
        rollback_of:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Rollback Of
          description: The diff this one rolled back.
        space_id:
          format: uuid
          title: Space Id
          type: string
        status:
          $ref: '#/components/schemas/DiffStatus'
        type:
          title: Type
          type: string
      required:
        - diff_id
        - space_id
        - type
        - status
        - reason
        - base_version
        - author_id
        - author_label
        - decided_by
        - decided_at
        - applied_version
        - rollback_of
        - created_at
        - document
      title: DiffOut
      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
    DiffStatus:
      enum:
        - pending
        - proposed
        - applied
        - rejected
      title: DiffStatus
      type: string
  securitySchemes:
    cellToken:
      type: apiKey
      in: header
      name: X-Niadra-Cell-Token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.