CarGene Admin Users API

The admin-users API from CarGene — 7 operation(s) for admin-users.

GitHub OpenAPI

Operations 8

GET /api/admin/users List Users #
DELETE /api/admin/users/{user_id}/shop Remove Member #
GET /api/admin/shop-candidates Search Shop Candidates #
GET /api/admin/invitations List Invitations #
POST /api/admin/invitations Invite #
DELETE /api/admin/invitations/{invitation_id} Revoke Invitation #
GET /api/admin/used-cars List Used Cars #
PUT /api/admin/used-cars/{listing_id}/hidden Set Used Car Hidden #

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-admin-users-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-admin-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Car Gene Com Admin Users API
  version: 1.0.0
  description: 'Operations tagged admin-users 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: Admin Users
paths:
  /api/admin/users:
    get:
      tags:
      - Admin Users
      summary: List Users
      description: ログインできる利用者。新しく登録した順
      operationId: list_users_api_admin_users_get
      parameters:
      - description: メールか名前の部分一致
        required: false
        schema:
          type: string
          title: Q
          description: メールか名前の部分一致
        name: q
        in: query
      - required: false
        schema:
          type: integer
          maximum: 200.0
          minimum: 1.0
          title: Limit
          default: 50
        name: limit
        in: query
      - required: false
        schema:
          type: integer
          minimum: 0.0
          title: Offset
          default: 0
        name: offset
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminUsersResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/users/{user_id}/shop:
    delete:
      tags:
      - Admin Users
      summary: Remove Member
      description: 店のメンバーから外す。店と物件は残る。**店の最後の管理者は外せない** (409)
      operationId: remove_member_api_admin_users__user_id__shop_delete
      parameters:
      - required: true
        schema:
          type: string
          title: User Id
        name: user_id
        in: path
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/shop-candidates:
    get:
      tags:
      - Admin Users
      summary: Search Shop Candidates
      description: 招待する店を名前で探す。中古車販売の有無と古物商許可番号も返す
      operationId: search_shop_candidates_api_admin_shop_candidates_get
      parameters:
      - required: true
        schema:
          type: string
          minLength: 1
          title: Q
        name: q
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ShopCandidate'
                type: array
                title: Response Search Shop Candidates Api Admin Shop Candidates Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/invitations:
    get:
      tags:
      - Admin Users
      summary: List Invitations
      description: 招待。有効なものを先に、新しい順
      operationId: list_invitations_api_admin_invitations_get
      parameters:
      - required: false
        schema:
          type: boolean
          title: Open Only
          default: false
        name: open_only
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
    post:
      tags:
      - Admin Users
      summary: Invite
      description: メールアドレスと店と役割を選んで招待する。返した token でリンクを作って送る
      operationId: invite_api_admin_invitations_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvitationInput'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Invitation'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/invitations/{invitation_id}:
    delete:
      tags:
      - Admin Users
      summary: Revoke Invitation
      description: 取り消す。受けたものは取り消せない (メンバーから外す)
      operationId: revoke_invitation_api_admin_invitations__invitation_id__delete
      parameters:
      - required: true
        schema:
          type: string
          title: Invitation Id
        name: invitation_id
        in: path
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/used-cars:
    get:
      tags:
      - Admin Users
      summary: List Used Cars
      description: 全物件 (下書きや止めたものも)。店で絞れる
      operationId: list_used_cars_api_admin_used_cars_get
      parameters:
      - required: false
        schema:
          type: string
          title: Shop Id
        name: shop_id
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminListingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/used-cars/{listing_id}/hidden:
    put:
      tags:
      - Admin Users
      summary: Set Used Car Hidden
      description: 物件の掲載を止める / 戻す (戻すと下書きになり、店が出し直す)
      operationId: set_used_car_hidden_api_admin_used_cars__listing_id__hidden_put
      parameters:
      - required: true
        schema:
          type: string
          title: Listing Id
        name: listing_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminListingHiddenInput'
        required: true
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
components:
  schemas:
    ListingModel:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        chassis_code:
          type: string
          title: Chassis Code
        start_year:
          type: integer
          title: Start Year
        end_year:
          type: integer
          title: End Year
        series_id:
          type: string
          title: Series Id
        series_name:
          type: string
          title: Series Name
        maker_id:
          type: string
          title: Maker Id
        maker_name:
          type: string
          title: Maker Name
      type: object
      required:
      - id
      - name
      - start_year
      - series_id
      - series_name
      - maker_id
      - maker_name
      title: ListingModel
      description: 紐づけた世代。画面は `lib/model-metadata.ts` の見出しと同じ綴りで出す
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdminUsersResponse:
      properties:
        users:
          items:
            $ref: '#/components/schemas/AdminUser'
          type: array
          title: Users
        total:
          type: integer
          title: Total
      type: object
      required:
      - users
      - total
      title: AdminUsersResponse
    AdminListing:
      properties:
        id:
          type: string
          title: Id
        model:
          $ref: '#/components/schemas/ListingModel'
        grade:
          type: string
          title: Grade
        price_yen:
          type: integer
          title: Price Yen
        total_price_yen:
          type: integer
          title: Total Price Yen
        first_registration_year:
          type: integer
          title: First Registration Year
        first_registration_month:
          type: integer
          title: First Registration Month
        mileage_km:
          type: integer
          title: Mileage Km
        inspection_year:
          type: integer
          title: Inspection Year
        inspection_month:
          type: integer
          title: Inspection Month
        repair_history:
          type: boolean
          title: Repair History
        transmission:
          type: string
          enum:
          - mt
          - at
          - cvt
          - other
          title: Transmission
        status:
          type: string
          enum:
          - draft
          - published
          - sold
          - hidden
          title: Status
        published_at:
          type: string
          format: date-time
          title: Published At
        minor_change_name:
          type: string
          title: Minor Change Name
        photo:
          $ref: '#/components/schemas/Photo'
        photo_count:
          type: integer
          title: Photo Count
        shop_id:
          type: string
          title: Shop Id
        shop_name:
          type: string
          title: Shop Name
        prefecture:
          type: string
          title: Prefecture
        city:
          type: string
          title: City
      type: object
      required:
      - id
      - model
      - first_registration_year
      - repair_history
      - transmission
      - status
      - photo_count
      - shop_id
      - shop_name
      title: AdminListing
      description: 一覧のカード。写真は先頭の 1 枚
    AdminListingsResponse:
      properties:
        listings:
          items:
            $ref: '#/components/schemas/AdminListing'
          type: array
          title: Listings
      type: object
      required:
      - listings
      title: AdminListingsResponse
    AdminUser:
      properties:
        id:
          type: string
          title: Id
        email:
          type: string
          title: Email
        name:
          type: string
          title: Name
        providers:
          items:
            type: string
          type: array
          title: Providers
        created_at:
          type: string
          format: date-time
          title: Created At
        last_sign_in_at:
          type: string
          format: date-time
          title: Last Sign In At
        is_admin:
          type: boolean
          title: Is Admin
        shop:
          $ref: '#/components/schemas/UserShop'
      type: object
      required:
      - id
      - providers
      - created_at
      - is_admin
      title: AdminUser
    InvitationInput:
      properties:
        email:
          type: string
          title: Email
        shop_id:
          type: string
          title: Shop Id
        role:
          type: string
          enum:
          - owner
          - staff
          title: Role
      type: object
      required:
      - email
      - shop_id
      - role
      title: InvitationInput
      description: '運営がメールアドレスと店と役割を選んで招待する。**アドレスは小文字に

        そろえる** (ログインした人のアドレスと lower で突き合わせる)。


        役割は必ず選ばせる (黙って店の管理者を作らない)'
    ShopCandidate:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        prefecture:
          type: string
          title: Prefecture
        city:
          type: string
          title: City
        status:
          type: string
          title: Status
        shop_type_name:
          type: string
          title: Shop Type Name
        sells_used_cars:
          type: boolean
          title: Sells Used Cars
        antique_license:
          type: string
          title: Antique License
      type: object
      required:
      - id
      - name
      - status
      - sells_used_cars
      title: ShopCandidate
      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
    UserShop:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        role:
          type: string
          enum:
          - owner
          - staff
          title: Role
      type: object
      required:
      - id
      - name
      - role
      title: UserShop
    InvitationsResponse:
      properties:
        invitations:
          items:
            $ref: '#/components/schemas/Invitation'
          type: array
          title: Invitations
      type: object
      required:
      - invitations
      title: InvitationsResponse
    AdminListingHiddenInput:
      properties:
        hidden:
          type: boolean
          title: Hidden
      type: object
      required:
      - hidden
      title: AdminListingHiddenInput
    Photo:
      properties:
        id:
          type: string
          title: Id
        s3key:
          type: string
          title: S3Key
        width:
          type: integer
          title: Width
        height:
          type: integer
          title: Height
      type: object
      required:
      - id
      - s3key
      - width
      - height
      title: Photo
    Invitation:
      properties:
        id:
          type: string
          title: Id
        shop_id:
          type: string
          title: Shop Id
        shop_name:
          type: string
          title: Shop Name
        email:
          type: string
          title: Email
        role:
          type: string
          enum:
          - owner
          - staff
          title: Role
        token:
          type: string
          title: Token
        status:
          type: string
          enum:
          - open
          - expired
          - accepted
          - revoked
          title: Status
        expires_at:
          type: string
          format: date-time
          title: Expires At
        accepted_at:
          type: string
          format: date-time
          title: Accepted At
        accepted_email:
          type: string
          title: Accepted Email
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - shop_id
      - shop_name
      - email
      - role
      - token
      - status
      - expires_at
      - created_at
      title: Invitation
      description: '招待。**token は招待を出せる人 (運営・その店の管理者) にだけ返す**

        (リンクを写すため)'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- car-gene-com-openapi.json
- car-gene-com-openapi.yml