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

# Get Problem PDF

> Get problem description PDF



## OpenAPI

````yaml https://api.ropes.ai/api/docs/openapi.json get /api/public/problems/{problemId}/pdf
openapi: 3.0.0
info:
  title: Ropes Public API
  version: 1.0.0
  description: >-
    Public API for Ropes. Authenticate using your API key in the x-api-key
    header.
servers:
  - url: https://api.ropes.ai
    description: Production server
  - url: http://localhost:3001
    description: Local development server
security: []
paths:
  /api/public/problems/{problemId}/pdf:
    get:
      tags:
        - Problems
      summary: Get Problem PDF
      description: Get problem description PDF
      parameters:
        - schema:
            type: string
            description: The unique identifier of the problem
          required: true
          description: The unique identifier of the problem
          name: problemId
          in: path
      responses:
        '200':
          description: Successfully generated PDF
          content:
            application/pdf:
              schema:
                type: string
                description: PDF binary data
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemErrorResponse'
        '404':
          description: Problem or README not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemErrorResponse'
        '422':
          description: >-
            Unprocessable Entity - PDFs are not supported for video-screening
            problems.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ProblemErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````