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

# POST /auctions

> Create an auction



## OpenAPI

````yaml /api/openapi/admin-api.json post /auctions
openapi: 3.1.0
info:
  description: Admin API for Fanfare
  title: Fanfare Admin API
  version: 1.0.0
servers:
  - description: Production
    url: https://admin.fanfare.io/api
  - description: Local development
    url: http://localhost:4800
security:
  - SecretKeyAuth: []
paths:
  /auctions:
    post:
      tags:
        - Distributions
      description: Create an auction
      operationId: postAuctions
      requestBody:
        content:
          application/json:
            schema:
              properties:
                auctionType:
                  enum:
                    - english
                    - dutch
                  type: string
                autoExtendSeconds:
                  nullable: true
                  type: number
                closeAt:
                  nullable: true
                  type: string
                floorPrice:
                  nullable: true
                  type: string
                minBidIncrement:
                  nullable: true
                  type: string
                name:
                  type: string
                openAt:
                  nullable: true
                  type: string
                priceDropAmount:
                  nullable: true
                  type: string
                priceDropIntervalSeconds:
                  nullable: true
                  type: number
                quantity:
                  nullable: true
                  type: number
                reservePrice:
                  nullable: true
                  type: string
                sequenceId:
                  format: uuid
                  type: string
                settleAt:
                  type: string
                startPrice:
                  nullable: true
                  type: string
                timeZone:
                  nullable: true
                  type: string
              required:
                - sequenceId
                - name
                - settleAt
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  archived:
                    type: boolean
                  auctionType:
                    default: english
                    enum:
                      - english
                      - dutch
                  autoExtendSeconds:
                    anyOf:
                      - type: number
                      - type: 'null'
                  cleanupStatus:
                    anyOf:
                      - enum:
                          - pending
                          - completed
                      - type: 'null'
                  closeAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  createdAt:
                    format: date-time
                    type: string
                  createdBy:
                    type: string
                  floorPrice:
                    anyOf:
                      - pattern: ^\d{1,12}(\.\d{1,8})?$
                        type: string
                      - type: 'null'
                  id:
                    format: uuid
                    type: string
                  minBidIncrement:
                    anyOf:
                      - pattern: ^\d{1,12}(\.\d{1,8})?$
                        type: string
                      - type: 'null'
                  name:
                    minLength: 1
                    type: string
                  openAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  organizationId:
                    format: uuid
                    type: string
                  priceDropAmount:
                    anyOf:
                      - pattern: ^\d{1,12}(\.\d{1,8})?$
                        type: string
                      - type: 'null'
                  priceDropIntervalSeconds:
                    anyOf:
                      - type: number
                      - type: 'null'
                  quantity:
                    anyOf:
                      - type: number
                      - type: 'null'
                  reservePrice:
                    anyOf:
                      - pattern: ^\d{1,12}(\.\d{1,8})?$
                        type: string
                      - type: 'null'
                  sequenceId:
                    format: uuid
                    type: string
                  settleAt:
                    format: date-time
                    type: string
                  startPrice:
                    anyOf:
                      - pattern: ^\d{1,12}(\.\d{1,8})?$
                        type: string
                      - type: 'null'
                  statusOverride:
                    anyOf:
                      - enum:
                          - ended
                      - type: 'null'
                  statusOverrideAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  statusOverrideBy:
                    anyOf:
                      - type: string
                      - type: 'null'
                  timeZone:
                    minLength: 1
                    type: string
                  updatedAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  updatedBy:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - id
                  - organizationId
                  - createdAt
                  - createdBy
                  - archived
                  - sequenceId
                  - name
                  - timeZone
                  - settleAt
                type: object
          description: Auction created successfully
        '400':
          content:
            application/json:
              schema:
                properties:
                  error:
                    const: validation_error
                  issues:
                    items:
                      properties:
                        expected:
                          type: string
                        kind:
                          type: string
                        message:
                          type: string
                        path:
                          items:
                            properties:
                              input: {}
                              key:
                                type: string
                              origin:
                                type: string
                              type:
                                type: string
                            required:
                              - type
                              - origin
                              - input
                              - key
                            type: object
                          type: array
                        received:
                          type: string
                        type:
                          type: string
                      required:
                        - kind
                        - type
                        - expected
                        - received
                        - message
                        - path
                      type: object
                    type: array
                required:
                  - error
                  - issues
                type: object
          description: Bad Request - Invalid input schema
        '401':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Unauthorized - Authentication required
        '403':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Forbidden - User must be authenticated
        '500':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Internal server error
components:
  securitySchemes:
    SecretKeyAuth:
      description: Fanfare secret key. Keep secret credentials on your server.
      scheme: bearer
      type: http

````