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

# Create Circom file

> Create a new Circom file



## OpenAPI

````yaml openapi.json post /api/circom-files
openapi: 3.0.3
info:
  title: Warp API
  description: >-
    Comprehensive API for Warp platform including organizations, projects, ZK
    proofs, payments, and more
  version: 1.0.0
  contact:
    name: Warp Support
    email: support@usewarp.net
servers:
  - url: https://platform.usewarp.net
    description: Platform API
  - url: https://checkout.usewarp.net
    description: Checkout API
security:
  - bearerAuth: []
paths:
  /api/circom-files:
    post:
      tags:
        - Circom
      summary: Create Circom file
      description: Create a new Circom file
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                project_id:
                  type: string
                  description: Project ID
                name:
                  type: string
                  description: File name
                content:
                  type: string
                  description: File content
                file_type:
                  type: string
                  enum:
                    - circuit
                    - input
                    - other
                  description: File type
              required:
                - project_id
                - name
                - content
                - file_type
      responses:
        '201':
          description: Circom file created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  file:
                    $ref: '#/components/schemas/CircomFile'
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    CircomFile:
      type: object
      properties:
        id:
          type: string
          description: File ID
        project_id:
          type: string
          description: Project ID
        name:
          type: string
          description: File name
        content:
          type: string
          description: File content
        file_type:
          type: string
          enum:
            - circuit
            - input
            - other
          description: File type
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Update timestamp
      required:
        - id
        - project_id
        - name
        - content
        - file_type
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          type: array
          items:
            type: object
          description: Detailed validation errors
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: JWT Bearer token authentication

````