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

# List Knowledge Entries

> Retrieve knowledge base entries. Supports filtering by scope, type, and associated entity.

Returns a paginated list of your organization's knowledge base entries (`limit` defaults to 20, max 50). Filter with `scope`, `scope_id` and `entry_type`. Knowledge entries provide the AI interviewer with context, FAQs, and reference documents to answer candidate questions during calls.

Entries can be scoped at different levels -- organization-wide, branch-specific, job-specific, or script-specific -- allowing you to layer general and role-specific knowledge.

```bash cURL theme={null}
curl "https://api.classet.ai/v2/knowledge?page=1&limit=20" \
  -H "X-API-KEY: your-api-key"
```

```json 200 theme={null}
{
  "data": [
    {
      "id": 1,
      "scope": "org",
      "scope_id": null,
      "entry_type": "qa",
      "question": "What benefits do you offer?",
      "answer": "We offer medical, dental, vision, 401k match, and PTO.",
      "content": null,
      "created_at": "2026-03-15T09:00:00Z"
    },
    {
      "id": 2,
      "scope": "job",
      "scope_id": "k7Hq2xVbN",
      "entry_type": "context",
      "question": null,
      "answer": null,
      "content": "This role requires travel to job sites within a 50-mile radius of the office. Company vehicle provided.",
      "created_at": "2026-03-20T14:30:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 2
  }
}
```


## OpenAPI

````yaml GET /v2/knowledge
openapi: 3.1.0
info:
  title: Classet API
  version: 2.0.3
  description: >-
    AI-powered recruiting and phone screening API.


    **API key scopes.** `read` covers every GET; any other method needs `write`
    (403 `insufficient_scope`); starting or stopping an interview also needs
    `interviews:send`. A branch-limited key sees and writes only jobs in its
    branches (not jobs with no branch) and their candidates, applications and
    calls; anything outside is a 404. An organization-group key is read-only
    across every organization in its group. Branch-limited and group keys cannot
    use organization configuration (scripts, knowledge, webhooks, message
    automations, agent settings, AI generation, organization): 403
    `restricted_key_unsupported`. `GET /v2/me` reports what the calling key can
    do.
servers:
  - url: https://api.classet.ai
    description: Production
  - url: http://localhost:8081
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /v2/knowledge:
    get:
      tags:
        - Knowledge Base
      summary: List knowledge entries
      description: >-
        Retrieve knowledge base entries. Supports filtering by scope, type, and
        associated entity.
      parameters:
        - schema:
            type: string
            default: '1'
            example: '1'
            description: Page number (1-based). Defaults to 1.
          required: false
          description: Page number (1-based). Defaults to 1.
          name: page
          in: query
        - schema:
            type: string
            default: '20'
            example: '20'
            description: Results per page. Defaults to 20, maximum 50.
          required: false
          description: Results per page. Defaults to 20, maximum 50.
          name: limit
          in: query
        - schema:
            type: string
            enum:
              - org
              - branch
              - job
              - script
            description: >-
              Filter by scope level: org-wide, branch-, job-, or
              script-specific. Omit to return all scopes.
          required: false
          description: >-
            Filter by scope level: org-wide, branch-, job-, or script-specific.
            Omit to return all scopes.
          name: scope
          in: query
        - schema:
            type: string
            description: >-
              Filter to a specific scoped entity: your org id (org scope), a
              branch id, a job id or v1 shortcode, or a script id (script
              scope). Used with scope.
          required: false
          description: >-
            Filter to a specific scoped entity: your org id (org scope), a
            branch id, a job id or v1 shortcode, or a script id (script scope).
            Used with scope.
          name: scope_id
          in: query
        - schema:
            type: string
            enum:
              - qa
              - context
              - document
            description: 'Filter by entry type: qa (question/answer), context, or document.'
          required: false
          description: 'Filter by entry type: qa (question/answer), context, or document.'
          name: entry_type
          in: query
      responses:
        '200':
          description: Knowledge entries
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/KnowledgeEntry'
                  meta:
                    type: object
                    properties:
                      page:
                        type: integer
                        example: 1
                      limit:
                        type: integer
                        example: 20
                      total:
                        type: integer
                        example: 42
                        description: >-
                          Estimated, not exact. Do not page until page * limit
                          >= total — follow meta.next_cursor instead.
                      next_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Present when the request used ?cursor=. Pass back to
                          fetch the next page.
                    required:
                      - page
                      - limit
                      - total
                required:
                  - data
                  - meta
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    KnowledgeEntry:
      type: object
      properties:
        id:
          type: integer
          description: The entry ID.
        scope:
          type: string
          enum:
            - org
            - branch
            - job
            - script
          example: org
          description: >-
            Scope level: org-wide, branch-specific, job-specific, or
            script-specific
        scope_id:
          type: string
          nullable: true
          description: >-
            The ID of the scoped resource (e.g. job ID, branch ID). For `org`
            scope, this is the organization ID.
        script_id:
          type: integer
          nullable: true
          description: The script a script-scope entry belongs to.
        entry_type:
          type: string
          enum:
            - qa
            - context
            - document
          example: qa
          description: >-
            The type of entry. One of `qa` (question-answer pair), `context`
            (free-form context), or `document` (uploaded document content).
        question:
          type: string
          nullable: true
          example: What are the working hours?
          description: The question text. Present for `qa` type entries.
        answer:
          type: string
          nullable: true
          example: Monday to Friday, 9am to 5pm
          description: The answer text. Present for `qa` type entries.
        content:
          type: string
          nullable: true
          description: >-
            Free-form content. Present for `context` and `document` type
            entries.
        created_at:
          type: string
          nullable: true
          description: ISO 8601 timestamp of when the entry was created.
      required:
        - id
        - scope
        - scope_id
        - script_id
        - entry_type
        - question
        - answer
        - content
        - created_at
      description: Knowledge base entry
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Classet API key. Create and rotate keys in Settings → API.

````

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