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

# Upload source PDF

> Upload a PDF so Rippletide can extract candidate questions and expected answers for evaluation. Use this when your source knowledge already lives in a document.



## OpenAPI

````yaml post /api/agents/{id}/upload-pdf
openapi: 3.0.3
info:
  title: Rippletide Agent Evaluation API
  description: >-
    Public API for evaluation agents, test prompts, test results, and knowledge
    imports
  version: 1.0.0
  contact:
    name: Rippletide API Support
servers:
  - url: https://agent-evalserver-production.up.railway.app
    description: Production server
  - url: http://localhost:3001
    description: Development server
security: []
paths:
  /api/agents/{id}/upload-pdf:
    post:
      tags:
        - Knowledge Import
      summary: Upload source PDF
      description: >-
        Upload a PDF so Rippletide can extract candidate questions and expected
        answers for evaluation. Use this when your source knowledge already
        lives in a document.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Evaluation agent ID.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: PDF file to process.
              required:
                - file
      responses:
        '200':
          description: PDF processed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the PDF was processed successfully.
                    example: true
                  message:
                    type: string
                    description: Human-readable processing summary.
                    example: PDF processed successfully
                  knowledge:
                    type: object
                    description: Summary of extracted evaluation knowledge.
                    properties:
                      qaPairsStored:
                        type: integer
                        description: Number of question-answer pairs stored.
                        example: 12
                      usedDefaultFallback:
                        type: boolean
                        description: Whether fallback extraction was used.
                        example: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Platform API key for authenticated account-level API access

````