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

# Get Space Ingestion

> Read an ingestion with its operations and, for each, the page now and as each choice would leave it.



## OpenAPI

````yaml /openapi-v1.json get /api/v1/spaces/ingestions/{ingestion_id}
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/spaces/ingestions/{ingestion_id}:
    get:
      tags:
        - Spaces
      summary: Get Space Ingestion
      description: >-
        Read an ingestion with its operations and, for each, the page now and as
        each choice would leave it.
      operationId: core_api_v1_controllers_spaces_get_space_ingestion
      parameters:
        - in: path
          name: ingestion_id
          schema:
            title: Ingestion Id
            type: string
          required: true
        - in: query
          name: include_contents
          schema:
            default: true
            title: Include Contents
            type: boolean
          required: false
        - in: query
          name: wait_seconds
          schema:
            default: 0
            title: Wait Seconds
            type: integer
          required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceIngestionOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    SpaceIngestionOut:
      properties:
        object:
          default: space_ingestion
          title: Object
          type: string
        id:
          title: Id
          type: string
        space:
          title: Space
          type: string
        address:
          title: Address
          type: string
        source_name:
          title: Source Name
          type: string
        status:
          description: '''planning'', ''awaiting_decisions'', ''completed'' or ''failed''.'
          title: Status
          type: string
        review:
          title: Review
          type: string
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
        created_by:
          $ref: '#/components/schemas/SpaceIngestionActorOut'
        error:
          anyOf:
            - $ref: '#/components/schemas/SpaceIngestionErrorOut'
            - type: 'null'
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
        counts:
          $ref: '#/components/schemas/SpaceIngestionCountsOut'
        source_content:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Content
        source_file_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Source File Name
        unfiled_excerpts:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Unfiled Excerpts
        operations:
          anyOf:
            - items:
                $ref: '#/components/schemas/SpaceIngestionOperationOut'
              type: array
            - type: 'null'
          title: Operations
        decision_errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Decision Errors
      required:
        - id
        - space
        - address
        - source_name
        - status
        - review
        - created_by
        - counts
      title: SpaceIngestionOut
      type: object
    SpaceIngestionActorOut:
      properties:
        actor_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Actor Type
        actor_label:
          default: ''
          title: Actor Label
          type: string
        user:
          anyOf:
            - type: string
            - type: 'null'
          title: User
      title: SpaceIngestionActorOut
      type: object
    SpaceIngestionErrorOut:
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        internal:
          description: >-
            true: on AGO's side, retry later; false: caused by the input or
            access.
          title: Internal
          type: boolean
      required:
        - code
        - message
        - internal
      title: SpaceIngestionErrorOut
      type: object
    SpaceIngestionCountsOut:
      properties:
        created:
          title: Created
          type: integer
        updated:
          title: Updated
          type: integer
        unchanged:
          title: Unchanged
          type: integer
        awaiting_decision:
          title: Awaiting Decision
          type: integer
        skipped:
          title: Skipped
          type: integer
        failed:
          title: Failed
          type: integer
      required:
        - created
        - updated
        - unchanged
        - awaiting_decision
        - skipped
        - failed
      title: SpaceIngestionCountsOut
      type: object
    SpaceIngestionOperationOut:
      properties:
        id:
          title: Id
          type: string
        position:
          title: Position
          type: integer
        kind:
          description: '''create'', ''update'', ''unchanged'' or ''conflict''.'
          title: Kind
          type: string
        status:
          description: '''applied'', ''awaiting_decision'', ''skipped'' or ''failed''.'
          title: Status
          type: string
        page:
          anyOf:
            - $ref: '#/components/schemas/SpaceIngestionPageRefOut'
            - type: 'null'
        parent:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Create: address of the page it goes under.'
          title: Parent
        parent_operation_id:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Create under a page this ingestion creates: that operation.'
          title: Parent Operation Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        summary:
          title: Summary
          type: string
        source_excerpt:
          description: 'Conflict: the contradicting passage; else the passage filed.'
          title: Source Excerpt
          type: string
        passage:
          description: The whole passage of the material this operation files.
          title: Passage
          type: string
        existing_excerpt:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Conflict: the contradicted passage of the page. Unchanged: what
            already says it.
          title: Existing Excerpt
        options:
          description: Choices available now; empty unless awaiting a decision.
          items:
            type: string
          title: Options
          type: array
        unavailable_options:
          additionalProperties:
            type: string
          description: Choices that no longer apply, why.
          title: Unavailable Options
          type: object
        decision:
          anyOf:
            - $ref: '#/components/schemas/SpaceIngestionDecisionOut'
            - type: 'null'
        result:
          anyOf:
            - $ref: '#/components/schemas/SpaceIngestionResultOut'
            - type: 'null'
        error:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Error
        current_content:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Content
        proposed_content:
          anyOf:
            - type: string
            - type: 'null'
          title: Proposed Content
        option_contents:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Option Contents
      required:
        - id
        - position
        - kind
        - status
        - summary
        - source_excerpt
        - passage
        - options
      title: SpaceIngestionOperationOut
      type: object
    SpaceIngestionPageRefOut:
      properties:
        id:
          title: Id
          type: string
        address:
          title: Address
          type: string
        title:
          title: Title
          type: string
      required:
        - id
        - address
        - title
      title: SpaceIngestionPageRefOut
      type: object
    SpaceIngestionDecisionOut:
      properties:
        choice:
          title: Choice
          type: string
        decided_by:
          anyOf:
            - $ref: '#/components/schemas/SpaceIngestionActorOut'
            - type: 'null'
        decided_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided At
      required:
        - choice
      title: SpaceIngestionDecisionOut
      type: object
    SpaceIngestionResultOut:
      properties:
        version_number:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version Number
        content_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Hash
      title: SpaceIngestionResultOut
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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