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

# Create car

> Requires `write:cars`. Create a car record.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/cars
openapi: 3.0.0
info:
  title: Car Storage Software API
  version: 1.1.0
  description: >-
    Team-scoped REST API for Car Storage Software. Authenticate with a team API
    key (`Authorization: Bearer <key>` or `x-api-key: <key>`) created under
    Settings → Integrations → API. Keys carry granular `read:*` / `write:*`
    scopes; read never implies write.
servers:
  - url: https://www.carstoragesoftware.com
security: []
paths:
  /api/v1/cars:
    post:
      tags:
        - Cars
      summary: Create car
      description: Requires `write:cars`. Create a car record.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1CarCreate'
      responses:
        '201':
          description: Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1CarResponse'
        '401':
          description: Missing, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: API key missing required scope, or API disabled for team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    V1CarCreate:
      type: object
      properties:
        year:
          type: integer
          minimum: 1886
          maximum: 2100
        make:
          type: string
          minLength: 1
        model:
          type: string
          minLength: 1
        trim:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        vin:
          type: string
          nullable: true
        stockNumber:
          type: string
          nullable: true
        licensePlate:
          type: string
          nullable: true
        licensePlateState:
          type: string
          nullable: true
        mileage:
          type: integer
          nullable: true
        mileageUnits:
          type: string
          enum:
            - mi
            - km
        customerId:
          type: string
          nullable: true
          format: uuid
        locationId:
          type: string
          nullable: true
          format: uuid
        parkingSpotId:
          type: string
          nullable: true
          format: uuid
        parkingZoneId:
          type: string
          nullable: true
          format: uuid
        vendorId:
          type: string
          nullable: true
          format: uuid
        isForSale:
          type: boolean
        declaredValueCents:
          type: integer
          nullable: true
      required:
        - year
        - make
        - model
    V1CarResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/V1Car'
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          nullable: true
      required:
        - error
    V1Car:
      type: object
      properties:
        id:
          type: string
          format: uuid
        teamId:
          type: string
          nullable: true
        customerId:
          type: string
          nullable: true
          format: uuid
        locationId:
          type: string
          nullable: true
          format: uuid
        vin:
          type: string
          nullable: true
        stockNumber:
          type: string
          nullable: true
        year:
          type: integer
        make:
          type: string
        model:
          type: string
        trim:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        licensePlate:
          type: string
          nullable: true
        licensePlateState:
          type: string
          nullable: true
        mileage:
          type: integer
          nullable: true
        mileageUnits:
          type: string
          nullable: true
        parkingSpot:
          type: string
          nullable: true
        parkingSpotId:
          type: string
          nullable: true
          format: uuid
        parkingZoneId:
          type: string
          nullable: true
          format: uuid
        vendorId:
          type: string
          nullable: true
          format: uuid
        isForSale:
          type: boolean
        declaredValueCents:
          type: integer
          nullable: true
        createdAt:
          type: string
          nullable: true
          format: date-time
        updatedAt:
          type: string
          nullable: true
          format: date-time
      required:
        - id
        - teamId
        - customerId
        - locationId
        - vin
        - stockNumber
        - year
        - make
        - model
        - trim
        - color
        - licensePlate
        - licensePlateState
        - mileage
        - mileageUnits
        - parkingSpot
        - parkingSpotId
        - parkingZoneId
        - vendorId
        - isForSale
        - declaredValueCents
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Team API key from Settings → Integrations. Use `Authorization: Bearer
        <key>` or `x-api-key`.

````

## Related topics

- [Add a car](/docs/cars/add-a-car.md)
- [Create car event (drop-off / intake)](/docs/api-reference/cars/create-car-event-drop-off-intake.md)
- [Start a car session](/docs/cars/start-a-car-session.md)
- [Create an appointment](/docs/schedule/create-an-appointment.md)
- [Create appointment](/docs/api-reference/appointments/create-appointment.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.