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

# Create a room

> Create a room



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi post /api/v1/rooms
openapi: 3.1.0
info:
  title: IntelliQ API
  description: API for IntelliQ
  version: 2.0.0
servers:
  - url: http://localhost:8787
    description: Local server
  - url: https://app.intelliq.dev
    description: Production server
security: []
paths:
  /api/v1/rooms:
    post:
      tags:
        - Rooms
      summary: Create a room
      description: Create a room
      operationId: postApiV1Rooms
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                  minLength: 4
                hostId:
                  type: string
                maxPlayers:
                  type: number
                numQuestions:
                  type: number
                timeLimit:
                  type: number
                language:
                  type: string
              required:
                - code
                - hostId
                - maxPlayers
                - numQuestions
                - timeLimit
                - language
      responses:
        '200':
          description: Room created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  code:
                    type: string
                  host_id:
                    type: string
                    format: uuid
                  max_players:
                    type: integer
                    exclusiveMinimum: 0
                  num_questions:
                    type: integer
                    exclusiveMinimum: 0
                  time_limit:
                    type: integer
                    exclusiveMinimum: 0
                  created_at:
                    type: string
                    format: date-time
                required:
                  - id
                  - code
                  - host_id
                  - max_players
                  - num_questions
                  - time_limit
                  - created_at
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````