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

# Upload

> Upload a single PDF document.



## OpenAPI

````yaml post /document/upload/
openapi: 3.0.3
info:
  title: Fleet IT Customer API
  version: 2.0.0
  description: >-
    Public API for Fleet IT platform customers.


    For detailed guides, authentication setup, error codes, and integration
    examples, see the [Fleet IT
    Documentation](https://docs.fleetit.com/documentation/overview).


    ## Headers


    All authenticated endpoints accept an optional `Fleet-Id` header (integer)
    to specify which fleet to operate on. If omitted, the user's default fleet
    is used.
servers: []
security:
  - JWT: []
  - APIKey: []
externalDocs:
  url: https://docs.fleetit.com/documentation/overview
  description: Fleet IT Documentation
paths:
  /document/upload/:
    post:
      tags:
        - Documents
      description: >-
        Uploads a single PDF document. The file is validated as a secure PDF.
        The document title defaults to the uploaded file name, and the owner is
        set to the authenticated user.
      operationId: documents_upload_create
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: PDF file to upload.
                title:
                  type: string
                  description: Optional. Defaults to the uploaded file name.
                type:
                  type: string
                  enum:
                    - TOLL
                    - VIOLATION
                    - UNKNOWN
                  description: Optional document type.
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  title:
                    type: string
                  file:
                    type: string
                    description: Storage path of the uploaded file.
                  user:
                    type: integer
                  type:
                    type: string
                    enum:
                      - TOLL
                      - VIOLATION
                      - UNKNOWN
          description: Document created.
        '400':
          description: Validation error, e.g. a missing or non-PDF file.
components:
  securitySchemes:
    JWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
    APIKey:
      type: apiKey
      in: header
      name: Authorization

````