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

# List knowledge facts

> Cursor-paginated, newest first. Active facts by default; `view: archived` lists the archived (suppressed) ones instead.




## OpenAPI

````yaml https://app.pepline.ai/api/v1/openapi.yaml get /knowledge_facts
openapi: 3.1.0
info:
  title: pepline API
  version: '1'
  description: |
    The pepline knowledge ingestion API: push knowledge into your
    organization's library from your own systems — CMS hooks, sync scripts,
    Zapier/Make/n8n scenarios — and keep whole websites fresh. One inbound
    API instead of N connectors; you own the trigger, we own idempotency.
servers:
  - url: https://app.pepline.ai/api/v1
security:
  - bearerAuth: []
tags:
  - name: Organization
    description: The identity behind your key — confirm it works and read your agent slugs.
  - name: Knowledge sources
    description: >-
      Push and sync the knowledge your agents stand on — text, files, pages,
      whole websites.
  - name: Knowledge facts
    description: >-
      Triage the atomic knowledge your sources yielded — review, edit, archive,
      tier, per-agent scoping.
  - name: Agents
    description: List and provision agents, and tune each agent's widget settings.
  - name: Conversations
    description: >-
      Read the conversations your agents have held — transcripts, captured
      answers, verdicts.
  - name: Services
    description: The offerings your agents present and reason about.
  - name: Fit criteria
    description: What makes a good or poor lead — the signals your agents qualify against.
  - name: Voice profiles
    description: How your agents sound — tone, formality, phrasing.
  - name: Identities
    description: >-
      The personas your agents act as for outward operations — sender name,
      address, signature.
  - name: Prompt templates
    description: >-
      Versioned prompt bodies per kind — author a new version, activate any
      prior one.
  - name: Deliverable templates
    description: >-
      The A/B variants of the wrap-up document — sections and guidance per
      variant.
  - name: Flow
    description: >-
      Author an agent's conversation — its phases and the answers each one
      captures.
  - name: Catalog
    description: >-
      Draft services, voice, and fit criteria from your knowledge, then accept
      or dismiss the proposals.
paths:
  /knowledge_facts:
    get:
      tags:
        - Knowledge facts
      summary: List knowledge facts
      description: >
        Cursor-paginated, newest first. Active facts by default; `view:
        archived` lists the archived (suppressed) ones instead.
      operationId: listKnowledgeFacts
      parameters:
        - name: source_id
          in: query
          schema:
            type: integer
        - name: topic
          in: query
          schema:
            type: string
            enum:
              - offer
              - pricing
              - track_record
              - method
              - people
              - practical
        - name: tier
          in: query
          schema:
            type: string
            enum:
              - universal
              - situational
        - name: origin
          in: query
          schema:
            type: string
            enum:
              - digested
              - owner
        - name: reviewed
          in: query
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
        - name: view
          in: query
          schema:
            type: string
            enum:
              - active
              - archived
            default: active
        - name: q
          in: query
          schema:
            type: string
          description: Case-insensitive text search.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: starting_after
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: A page of facts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeFactList'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    KnowledgeFactList:
      type: object
      required:
        - object
        - data
        - has_more
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeFact'
        has_more:
          type: boolean
    KnowledgeFact:
      type: object
      required:
        - object
        - id
        - text
        - origin
        - tier
        - source_id
        - reviewed
        - archived
        - supported
        - created_at
      properties:
        object:
          type: string
          const: knowledge_fact
        id:
          type: integer
        text:
          type: string
        origin:
          type: string
          enum:
            - digested
            - owner
        topic:
          type:
            - string
            - 'null'
          enum:
            - offer
            - pricing
            - track_record
            - method
            - people
            - practical
        tier:
          type: string
          enum:
            - universal
            - situational
        tier_pinned:
          type: boolean
        source_id:
          type: integer
        source_title:
          type:
            - string
            - 'null'
        reviewed:
          type: boolean
        archived:
          type: boolean
        suppression_scope:
          type:
            - string
            - 'null'
          enum:
            - source
            - organization
          description: Present while archived.
        supported:
          type: boolean
          description: >-
            false = the source no longer states this (retired, kept for the
            record).
        excluded_agents:
          type: array
          items:
            type: string
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - invalid_request_error
                - rate_limit_error
                - api_error
            code:
              type: string
              enum:
                - missing_api_key
                - invalid_api_key
                - resource_missing
                - method_not_allowed
                - resource_archived
                - idempotency_conflict
                - parameter_invalid
                - parameter_missing
                - parameter_unknown
                - organization_required
                - organization_paused
                - rate_limited
                - flow_invalid
                - organization_unverified
                - experiment_running
                - resource_in_use
                - internal
            message:
              type: string
            param:
              type: string
  responses:
    Unauthorized:
      description: Missing, malformed, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your secret key (pep_sk_…) from Settings → API. Keys are org-scoped;
        treat them like passwords.

````