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

# List knowledge cards in a collection

> Returns a paginated list of knowledge cards extracted from documents in the collection. Supports filtering by type and full-text search.



## OpenAPI

````yaml https://staging.aigmented.io/api/v1/openapi.json get /api/v1/collections/{id}/knowledge-cards
openapi: 3.1.0
info:
  title: Aigmented API
  version: 1.0.0
  description: >-
    REST API for Aigmented — manage knowledge collections, upload files, search
    knowledge cards, and ask questions with LLM-powered answers.
  contact:
    name: Aigmented Support
    url: https://aigmented.com
servers:
  - url: https://aigmented.io
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Collections
    description: Create and manage knowledge collections
  - name: Files
    description: Upload and manage source documents
  - name: Search
    description: Semantic search over knowledge cards in a collection
  - name: Ask
    description: LLM-powered question answering over a collection
paths:
  /api/v1/collections/{id}/knowledge-cards:
    get:
      tags:
        - Collections
      summary: List knowledge cards in a collection
      description: >-
        Returns a paginated list of knowledge cards extracted from documents in
        the collection. Supports filtering by type and full-text search.
      operationId: listKnowledgeCards
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: Collection ID
        - name: page
          in: query
          schema:
            type: integer
            default: 1
            minimum: 1
          description: Page number
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 100
          description: Results per page (max 100)
        - name: type
          in: query
          schema:
            type: string
          description: Filter by knowledgeType value
        - name: search
          in: query
          schema:
            type: string
          description: Full-text search across title, statement, and verbatim content
      responses:
        '200':
          description: Paginated knowledge cards
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeCardsListResponse'
        '400':
          description: Invalid collection ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Collection not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    KnowledgeCardsListResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            collection:
              type: object
              properties:
                id:
                  type: integer
                name:
                  type: string
                status:
                  type: string
            knowledgeCards:
              type: array
              items:
                $ref: '#/components/schemas/KnowledgeCard'
            pagination:
              type: object
              properties:
                page:
                  type: integer
                limit:
                  type: integer
                totalCount:
                  type: integer
                totalPages:
                  type: integer
                hasNextPage:
                  type: boolean
                hasPreviousPage:
                  type: boolean
            typeCounts:
              type: object
              description: Count of cards grouped by knowledgeType
              additionalProperties:
                type: integer
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
      required:
        - error
    KnowledgeCard:
      type: object
      properties:
        id:
          type: integer
        collectionId:
          type: integer
        title:
          type: string
        statement:
          type: string
        verbatimContent:
          type: string
        knowledgeType:
          type: string
          description: Knowledge card category/type
        importanceScore:
          type: number
          format: float
          description: Relevance importance score (0–1)
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key (sk-...)
      description: >-
        Pass your API key as a Bearer token. Example: `Authorization: Bearer
        sk-xxxxxxxxxxxx`

````