Lokki Product History API

The Product History API from Lokki — 5 operation(s) for product history.

Operations 5

POST /v2/product-history/last-state-events #
POST /v2/product-history/searchEvents #
POST /v2/product-history/update-event #
POST /v2/product-history/update-many-events-for-product #
DELETE /v2/product-history/delete-event #

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/lokki-product-history-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

lokki-product-history-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lokki Product History API
  description: The main API powering the Lokki Dashboard and Online Store
  version: '2.0'
  contact: {}
servers: []
security:
- x-access-token: []
tags:
- name: Product History
paths:
  /v2/product-history/last-state-events:
    post:
      operationId: getLastStateEventsBySubProductsIds
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetLastStateEventsBySubProductsIdsDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StateLastEventList'
      tags:
      - Product History
  /v2/product-history/searchEvents:
    post:
      operationId: getProductsHistoryEventByIds
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetProductHistoryEventsByIdsDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StateLastEventList'
      tags:
      - Product History
  /v2/product-history/update-event:
    post:
      operationId: updateProductHistoryEvent
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateProductHistoryEventDto'
      responses:
        '201':
          description: ''
      tags:
      - Product History
  /v2/product-history/update-many-events-for-product:
    post:
      operationId: updateManyProductHistoryEventsForProduct
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateManyProductHistoryEventsForProductDto'
      responses:
        '201':
          description: ''
      tags:
      - Product History
  /v2/product-history/delete-event:
    delete:
      operationId: deleteProductHistoryEvent
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteProductHistoryEventDto'
      responses:
        '200':
          description: ''
      tags:
      - Product History
components:
  schemas:
    StateLastEventList:
      type: object
      properties:
        lastEvents:
          type: array
          items:
            $ref: '#/components/schemas/StateLastEvent'
      required:
      - lastEvents
    HistoryInspectionField:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        answers:
          type: array
          items:
            $ref: '#/components/schemas/HistoryInspectionAnswer'
      required:
      - id
      - name
      - answers
    EventOptions:
      type: object
      properties:
        unavailable:
          type: boolean
      required:
      - unavailable
    DeleteProductHistoryEventDto:
      type: object
      properties:
        productId:
          type: string
        subProductId:
          type: string
        eventId:
          type: string
      required:
      - productId
      - subProductId
      - eventId
    GetProductHistoryEventsByIdsDto:
      type: object
      properties:
        productHistoryEvents:
          type: array
          items:
            $ref: '#/components/schemas/GetProductHistoryEventByIdDto'
      required:
      - productHistoryEvents
    StateLastEvent:
      type: object
      properties:
        productId:
          type: string
        subProductId:
          type: string
        note:
          type: string
        inspectionFields:
          type: array
          items:
            $ref: '#/components/schemas/HistoryInspectionField'
        files:
          type: array
          items:
            $ref: '#/components/schemas/HistoryAttachedFile'
      required:
      - productId
      - subProductId
      - note
      - inspectionFields
      - files
    HistoryInspectionAnswer:
      type: object
      properties:
        id:
          type: string
        answerType:
          type: string
          enum:
          - OPEN_FIELD
          - UNIQUE_CHOICE
          - MULTIPLE_CHOICE
          - ODOMETER
        value:
          type: string
        options:
          type: array
          items:
            $ref: '#/components/schemas/HistoryInspectionOption'
      required:
      - id
      - answerType
      - value
      - options
    CreateUpdateProductHistoryEventDto:
      type: object
      properties:
        productId:
          type: string
        subProductId:
          type: string
        event:
          $ref: '#/components/schemas/EditProductHistoryEventDto'
      required:
      - productId
      - subProductId
      - event
    EditProductHistoryEventDto:
      type: object
      properties:
        id:
          type: string
        startDate:
          format: date-time
          type: string
        endDate:
          format: date-time
          type: string
        name:
          type: string
        note:
          type: string
        options:
          $ref: '#/components/schemas/EventOptions'
        unite:
          type: number
        orderId:
          type: string
        customerId:
          type: string
        inspectionFields:
          type: array
          items:
            $ref: '#/components/schemas/HistoryInspectionField'
        files:
          type: array
          items:
            $ref: '#/components/schemas/HistoryAttachedFile'
      required:
      - id
      - startDate
      - name
      - note
      - options
      - unite
      - orderId
      - customerId
    HistoryAttachedFile:
      type: object
      properties:
        name:
          type: string
        key:
          type: string
        size:
          type: number
        type:
          type: string
        url:
          type: string
      required:
      - name
      - key
      - size
      - type
    CreateUpdateManyProductHistoryEventsForProductDto:
      type: object
      properties:
        productId:
          type: string
        subProductIds:
          type: array
          items:
            type: string
        event:
          $ref: '#/components/schemas/EditProductHistoryEventDto'
      required:
      - productId
      - subProductIds
      - event
    GetLastStateEventsBySubProductsIdsDto:
      type: object
      properties:
        subProductIds:
          type: array
          items:
            type: string
      required:
      - subProductIds
    HistoryInspectionOption:
      type: object
      properties:
        id:
          type: string
        value:
          type: string
      required:
      - id
      - value
    GetProductHistoryEventByIdDto:
      type: object
      properties:
        productHistoryId:
          type: string
        eventId:
          type: string
      required:
      - productHistoryId
      - eventId
  securitySchemes:
    x-access-token:
      scheme: bearer
      bearerFormat: JWT
      type: apiKey
      in: header
      name: x-access-token