CarGene Garage API

The garage API from CarGene — 5 operation(s) for garage.

GitHub OpenAPI

Operations 8

GET /api/garage/cars List Cars #
POST /api/garage/cars Create Car #
PUT /api/garage/cars/{car_id} Update Car #
DELETE /api/garage/cars/{car_id} Delete Car #
POST /api/garage/cars/{car_id}/builds Create Build #
PUT /api/garage/cars/{car_id}/builds/{build_id} Update Build #
DELETE /api/garage/cars/{car_id}/builds/{build_id} Delete Build #
PUT /api/garage/cars/{car_id}/owned-parts Replace Owned Parts #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/car-gene-com:car-gene-com-garage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

car-gene-com-garage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Car Gene Com Garage API
  version: 1.0.0
  description: 'Operations tagged garage across 2 of this provider''s published API definitions: car-gene-com-openapi.json, car-gene-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.car-gene.com
  description: CarGene API host (named on https://car-gene.com/mcp/; spec served at https://api.car-gene.com/openapi.json)
tags:
- name: garage
paths:
  /api/garage/cars:
    get:
      tags:
      - garage
      summary: List Cars
      description: 自分の車を、保存したカスタムと持っているパーツごと返す
      operationId: list_cars_api_garage_cars_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GarageCarsResponse'
      security:
      - HTTPBearer: []
    post:
      tags:
      - garage
      summary: Create Car
      description: 自分の車を登録する。current_build は 3D で合わせた「いまの状態」
      operationId: create_car_api_garage_cars_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GarageCarInput'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GarageCarResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/garage/cars/{car_id}:
    put:
      tags:
      - garage
      summary: Update Car
      description: 名前か現状 (current_build) を書き換える。送った欄だけ
      operationId: update_car_api_garage_cars__car_id__put
      parameters:
      - required: true
        schema:
          type: string
          title: Car Id
        name: car_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GarageCarUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GarageCarResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
    delete:
      tags:
      - garage
      summary: Delete Car
      description: 車を消す。保存したカスタムと持っているパーツも一緒に消える
      operationId: delete_car_api_garage_cars__car_id__delete
      parameters:
      - required: true
        schema:
          type: string
          title: Car Id
        name: car_id
        in: path
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/garage/cars/{car_id}/builds:
    post:
      tags:
      - garage
      summary: Create Build
      description: カスタムを名前を付けて保存する。1 台に何本でも
      operationId: create_build_api_garage_cars__car_id__builds_post
      parameters:
      - required: true
        schema:
          type: string
          title: Car Id
        name: car_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GarageBuildInput'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GarageBuildResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/garage/cars/{car_id}/builds/{build_id}:
    put:
      tags:
      - garage
      summary: Update Build
      description: 保存したカスタムの名前か中身を書き換える。送った欄だけ
      operationId: update_build_api_garage_cars__car_id__builds__build_id__put
      parameters:
      - required: true
        schema:
          type: string
          title: Car Id
        name: car_id
        in: path
      - required: true
        schema:
          type: string
          title: Build Id
        name: build_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GarageBuildUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GarageBuildResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
    delete:
      tags:
      - garage
      summary: Delete Build
      operationId: delete_build_api_garage_cars__car_id__builds__build_id__delete
      parameters:
      - required: true
        schema:
          type: string
          title: Car Id
        name: car_id
        in: path
      - required: true
        schema:
          type: string
          title: Build Id
        name: build_id
        in: path
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/garage/cars/{car_id}/owned-parts:
    put:
      tags:
      - garage
      summary: Replace Owned Parts
      description: 持っているパーツの一覧を丸ごと置き換える
      operationId: replace_owned_parts_api_garage_cars__car_id__owned_parts_put
      parameters:
      - required: true
        schema:
          type: string
          title: Car Id
        name: car_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OwnedPartsInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnedPartsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
components:
  schemas:
    GarageBuildInput:
      properties:
        name:
          type: string
          title: Name
        build:
          $ref: '#/components/schemas/Build'
      type: object
      required:
      - name
      - build
      title: GarageBuildInput
    Build:
      properties:
        paint:
          type: string
          title: Paint
        wheel:
          $ref: '#/components/schemas/BuildWheel'
        tire:
          type: string
          title: Tire
        suspension:
          $ref: '#/components/schemas/BuildSuspension'
        hood:
          type: string
          title: Hood
        aero:
          $ref: '#/components/schemas/BuildAero'
      type: object
      required:
      - paint
      - wheel
      - tire
      - suspension
      - aero
      title: Build
      description: 選んだ状態。frontend の `Build` と同じ形
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GarageCarResponse:
      properties:
        id:
          type: string
          title: Id
        chassis:
          type: string
          title: Chassis
        name:
          type: string
          title: Name
        current_build:
          $ref: '#/components/schemas/Build'
        builds:
          items:
            $ref: '#/components/schemas/GarageBuildResponse'
          type: array
          title: Builds
        owned_parts:
          items:
            $ref: '#/components/schemas/OwnedPartResponse'
          type: array
          title: Owned Parts
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - chassis
      - name
      - current_build
      - builds
      - owned_parts
      - created_at
      - updated_at
      title: GarageCarResponse
    GarageCarInput:
      properties:
        chassis:
          type: string
          title: Chassis
        name:
          type: string
          title: Name
          default: ''
        current_build:
          $ref: '#/components/schemas/Build'
      type: object
      required:
      - chassis
      - current_build
      title: GarageCarInput
    OwnedPartInput:
      properties:
        part_key:
          type: string
          title: Part Key
        item_id:
          type: string
          title: Item Id
      type: object
      required:
      - part_key
      - item_id
      title: OwnedPartInput
    GarageCarsResponse:
      properties:
        cars:
          items:
            $ref: '#/components/schemas/GarageCarResponse'
          type: array
          title: Cars
      type: object
      required:
      - cars
      title: GarageCarsResponse
    GarageBuildUpdate:
      properties:
        name:
          type: string
          title: Name
        build:
          $ref: '#/components/schemas/Build'
      type: object
      title: GarageBuildUpdate
      description: 部分更新。名前だけ変える・中身だけ上書きする、のどちらもある
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    OwnedPartResponse:
      properties:
        part_key:
          type: string
          title: Part Key
        item_id:
          type: string
          title: Item Id
      type: object
      required:
      - part_key
      - item_id
      title: OwnedPartResponse
    OwnedPartsInput:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OwnedPartInput'
          type: array
          title: Items
      type: object
      required:
      - items
      title: OwnedPartsInput
      description: '持っているパーツの一覧を**丸ごと置き換える**


        1 点ずつ足す・消す口を作ると、画面のチェックと DB の状態が途中でずれた

        ときに戻す手が無い。一覧は数十点までなので、置き換えで足りる。'
    BuildSuspension:
      properties:
        id:
          type: string
          title: Id
        dropMm:
          type: integer
          title: Dropmm
        camberFrontArcmin:
          type: integer
          title: Camberfrontarcmin
        camberRearArcmin:
          type: integer
          title: Camberreararcmin
      type: object
      required:
      - dropMm
      title: BuildSuspension
    OwnedPartsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OwnedPartResponse'
          type: array
          title: Items
      type: object
      required:
      - items
      title: OwnedPartsResponse
    GarageCarUpdate:
      properties:
        name:
          type: string
          title: Name
        current_build:
          $ref: '#/components/schemas/Build'
      type: object
      title: GarageCarUpdate
      description: 部分更新。**送った欄だけ**書き換える (exclude_unset)
    GarageBuildResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        build:
          $ref: '#/components/schemas/Build'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - name
      - build
      - created_at
      - updated_at
      title: GarageBuildResponse
    BuildAero:
      properties:
        front_spoiler:
          type: string
          title: Front Spoiler
        side_skirt:
          type: string
          title: Side Skirt
        rear_spoiler:
          type: string
          title: Rear Spoiler
      type: object
      title: BuildAero
    BuildWheel:
      properties:
        id:
          type: string
          title: Id
        color:
          type: string
          title: Color
        inch:
          type: integer
          title: Inch
        offsetMm:
          type: integer
          title: Offsetmm
        size:
          type: string
          title: Size
      type: object
      required:
      - id
      - color
      - inch
      - offsetMm
      title: BuildWheel
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- car-gene-com-openapi.json
- car-gene-com-openapi.yml