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

# Create a new paste from form data



## OpenAPI

````yaml openapi.json post /
openapi: 3.1.0
info:
  title: Bin (Board Modified)
  description: >-
    A minimalist pastebin API modified for Board. Device-based storage with
    authentication.
  contact:
    name: Jordan Doyle
    email: jordan@doyle.la
  license:
    name: WTFPL OR 0BSD
    identifier: WTFPL OR 0BSD
  version: 2.0.2
servers: []
security: []
tags:
  - name: info
    description: API information endpoints
  - name: device
    description: Device management endpoints
  - name: paste
    description: Paste management endpoints
paths:
  /:
    post:
      tags:
        - paste
      summary: Create a new paste from form data
      operationId: submit
      parameters:
        - name: Device-Code
          in: header
          description: 8-character alphanumeric device identifier
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PasteForm'
        required: true
      responses:
        '302':
          description: Redirect to the created paste URL
        '400':
          description: Bad request - missing Device-Code header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid or missing App-Password
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - app_password: []
components:
  schemas:
    PasteForm:
      type: object
      required:
        - val
      properties:
        val:
          type: string
          description: Paste content
    ErrorResponse:
      type: object
      required:
        - error
        - status
      properties:
        error:
          type: string
          description: Error message
        status:
          type: integer
          format: int32
          description: HTTP status code
          minimum: 0
  securitySchemes:
    app_password:
      type: apiKey
      in: header
      name: App-Password

````