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

# Create Document

> Add one or more documents to your applications index.



## OpenAPI

````yaml POST /documents
openapi: 3.1.0
info:
  title: HeyPal API
  version: '1.0'
  description: >-
    The HeyPal API makes it easy to add A.I. powered semantic-search & other
    A.I. functionality to your product & content.
servers:
  - url: https://api.pal.ai/v1
security:
  - API Key: []
paths:
  /documents:
    parameters: []
    post:
      summary: Create Document
      description: Add one or more documents to your applications index.
      operationId: post-api-documents
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Document'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
components:
  schemas:
    Document:
      type: object
      x-examples:
        Example 1:
          id: 28e9ea9c-b290-47f5-9e1f-59bf785b1642
          title: Manage indexes
          url: https://docs.pinecone.io/docs/manage-indexes
          content: This is the sample text
          contentType: text
          fields:
            field1: field1Value
      title: Document
      x-stoplight:
        id: 1f15bd385fdbb
      properties:
        id:
          type: string
        title:
          type: string
        url:
          type: string
        content:
          type: string
        contentType:
          type: string
        metadata:
          type: object
          description: Metadata you want to store about this object.
          properties:
            '{{metadataKey}}':
              type: string
      required:
        - content

````