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

# Create Attachment

> **Note: This endpoint is subject to change and may not be supported in future releases.** 

 Creates a new attachment



## OpenAPI

````yaml POST /attachments
openapi: 3.0.1
info:
  title: Attachment Management API
  description: API to manage attachments within the system
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: '{{BaseUrl}}'
security:
  - bearerAuth: []
paths:
  /attachments:
    post:
      description: Creates a new attachment
      operationId: createAttachment
      requestBody:
        description: Attachment details and data
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: File content of the attachment
                metadata:
                  type: object
                  properties:
                    name:
                      type: string
                      description: Name of the file
                    description:
                      type: string
                      description: Description of the file
      responses:
        '201':
          description: Attachment created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
        '400':
          description: Error in creating the attachment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Attachment:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the attachment
        name:
          type: string
          description: Name of the attachment
        content:
          type: string
          description: Content of the attachment, base64 encoded
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          type: string
          description: Detailed description of the error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````