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

# Ingest pages from a Confluence space

> Given a connector_id and space_key, fetch all pages from the Confluence space,
create placeholder documents, and index them in the background.



## OpenAPI

````yaml /api-reference/knowledge-api.json post /v1/knowledge/ingest/confluence
openapi: 3.1.0
info:
  title: Strattum Knowledge API
  description: >-
    REST API that serves semantic document search — embeddings via the
    configured LLM provider, indexed in Qdrant, with metadata stored in
    PostgreSQL. (PRD-004, Workstream 1.4)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/knowledge/ingest/confluence:
    post:
      tags:
        - ingest
        - ingest
      summary: Ingest pages from a Confluence space
      description: >-
        Given a connector_id and space_key, fetch all pages from the Confluence
        space,

        create placeholder documents, and index them in the background.
      operationId: ingest_confluence_v1_knowledge_ingest_confluence_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfluenceIngestRequest'
        required: true
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfluenceIngestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConfluenceIngestRequest:
      properties:
        connector_id:
          type: string
          title: Connector Id
        space_key:
          type: string
          title: Space Key
        teams:
          items:
            type: string
          type: array
          title: Teams
          default: []
        tags:
          items:
            type: string
          type: array
          title: Tags
          default: []
      type: object
      required:
        - connector_id
        - space_key
      title: ConfluenceIngestRequest
      description: Body for POST /v1/knowledge/ingest/confluence.
    ConfluenceIngestResponse:
      properties:
        space_key:
          type: string
          title: Space Key
        space_name:
          type: string
          title: Space Name
        source:
          type: string
          title: Source
        documents:
          items:
            $ref: '#/components/schemas/ConfluencePageResult'
          type: array
          title: Documents
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - space_key
        - space_name
        - source
        - documents
        - total_pages
      title: ConfluenceIngestResponse
      description: Response for POST /v1/knowledge/ingest/confluence.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConfluencePageResult:
      properties:
        doc_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Id
        page_id:
          type: string
          title: Page Id
        title:
          type: string
          title: Title
        chunks:
          type: integer
          title: Chunks
          default: 0
        skipped:
          type: boolean
          title: Skipped
          default: false
        skip_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Skip Reason
      type: object
      required:
        - page_id
        - title
      title: ConfluencePageResult
      description: Result for a single Confluence page ingested.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````