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

# Create a SubPage

> SubPages lets you extract a focused slice of a larger PDF. Pick a page and a variance, and it generates a smaller PDF centered around that page.



## OpenAPI

````yaml POST /subpage
openapi: 3.1.0
info:
  title: LiquidIndex API
  description: >-
    LiquidIndex API provides semantic search and document processing
    capabilities. The API enables users to upload documents and perform semantic
    queries across their content.
  version: 1.0.0
servers:
  - url: https://api.liquidindex.dev/
security:
  - bearerAuth: []
paths:
  /subpage:
    post:
      summary: Create a subpage
      description: >-
        SubPages lets you extract a focused slice of a larger PDF. Pick a page
        and a variance, and it generates a smaller PDF centered around that
        page.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - chunk_id
                - owner_id
                - varience
              properties:
                chunk_id:
                  type: string
                  description: The ID of the chunk to create a subpage for
                owner_id:
                  type: string
                  description: The project/customer ID to associate the subpage with
                varience:
                  type: number
                  description: >-
                    Variance defines how many pages before and after a selected
                    page are included to form the SubPage.
      responses:
        '200':
          description: Subpage created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  subpage_url:
                    type: string
                    description: The URL of the subpage
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````