Lokki Action Log API

The Action Log API from Lokki — 3 operation(s) for action log.

Operations 3

GET /v2/action-log/admin #
GET /v2/action-log/admin/history #
POST /v2/action-log/admin/revert #

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-action-log-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-action-log-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lokki Action Log API
  description: The main API powering the Lokki Dashboard and Online Store
  version: '2.0'
  contact: {}
servers: []
security:
- x-access-token: []
tags:
- name: Action Log
paths:
  /v2/action-log/admin:
    get:
      operationId: getActionLogs
      parameters:
      - name: startDate
        required: true
        in: query
        schema:
          format: date-time
          type: string
      - name: endDate
        required: true
        in: query
        schema:
          format: date-time
          type: string
      - name: page
        required: true
        in: query
        schema:
          minimum: 0
          type: number
      - name: limit
        required: true
        in: query
        schema:
          minimum: 0
          type: number
      - name: companyId
        required: false
        in: query
        schema:
          type: string
      - name: userId
        required: false
        in: query
        schema:
          type: string
      - name: actionName
        required: false
        in: query
        schema:
          type: string
      - name: collectionName
        required: false
        in: query
        schema:
          type: string
      - name: documentId
        required: false
        in: query
        schema:
          type: string
      - name: hasChanges
        required: false
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionLogsPage'
      tags:
      - Action Log
  /v2/action-log/admin/history:
    get:
      operationId: getActionLogHistory
      parameters:
      - name: collectionName
        required: true
        in: query
        schema:
          type: string
      - name: documentId
        required: true
        in: query
        schema:
          type: string
      - name: startDate
        required: false
        in: query
        schema:
          format: date-time
          type: string
      - name: endDate
        required: false
        in: query
        schema:
          format: date-time
          type: string
      - name: page
        required: false
        in: query
        schema:
          minimum: 0
          type: number
      - name: limit
        required: false
        in: query
        schema:
          minimum: 1
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionLogHistoryPage'
      tags:
      - Action Log
  /v2/action-log/admin/revert:
    post:
      operationId: revertActionLogChange
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevertActionLogChangeDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevertActionLogChangeResult'
      tags:
      - Action Log
components:
  schemas:
    ActionLogHistoryPage:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: '#/components/schemas/ActionLogHistoryEntry'
        hasNextPage:
          type: boolean
      required:
      - entries
      - hasNextPage
    ActionLogSource:
      type: string
      enum:
      - DECORATOR
      - AUTO
    RevertActionLogChangeDto:
      type: object
      properties:
        actionLogId:
          type: string
        collectionName:
          type: string
        documentId:
          type: string
      required:
      - actionLogId
      - collectionName
      - documentId
    ActionLogEntryChange:
      type: object
      properties:
        operation:
          $ref: '#/components/schemas/ActionLogOperation'
        diff:
          type:
          - object
          - 'null'
          additionalProperties: true
        collectionName:
          type: string
        documentId:
          type: string
        truncated:
          type: boolean
      required:
      - operation
      - diff
      - collectionName
      - documentId
      - truncated
    ActionLogsPage:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: '#/components/schemas/ActionLogEntry'
        hasNextPage:
          type: boolean
      required:
      - entries
      - hasNextPage
    RevertActionLogChangeResult:
      type: object
      properties:
        revertedFields:
          type: array
          items:
            type: string
      required:
      - revertedFields
    ActionLogEntry:
      type: object
      properties:
        actionSource:
          $ref: '#/components/schemas/ActionLogSource'
        changes:
          type: array
          items:
            $ref: '#/components/schemas/ActionLogEntryChange'
        requestPayload:
          type:
          - object
          - 'null'
          additionalProperties: true
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        actionName:
          type: string
        method:
          type: string
        routePath:
          type: string
        statusCode:
          type: number
        durationMs:
          type: number
        companyId:
          type:
          - string
          - 'null'
        companyName:
          type:
          - string
          - 'null'
        actor:
          $ref: '#/components/schemas/ActionLogActor'
      required:
      - actionSource
      - changes
      - requestPayload
      - id
      - createdAt
      - actionName
      - method
      - routePath
      - statusCode
      - durationMs
      - companyId
      - companyName
      - actor
    ActionLogActorType:
      type: string
      enum:
      - OWNER
      - EMPLOYEE
      - ADMIN
      - ADMIN_IMPERSONATING
      - SYSTEM
      - UNKNOWN
    ActionLogOperation:
      type: string
      enum:
      - create
      - update
      - delete
    ActionLogSystemSource:
      type: string
      enum:
      - STRIPE_WEBHOOK
      - PAYOUT_GENERATION
      - PAYMENT_CAPTURE
    ActionLogHistoryEntry:
      type: object
      properties:
        operation:
          $ref: '#/components/schemas/ActionLogOperation'
        diff:
          type:
          - object
          - 'null'
          additionalProperties: true
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        actionName:
          type: string
        method:
          type: string
        routePath:
          type: string
        actor:
          $ref: '#/components/schemas/ActionLogActor'
        truncated:
          type: boolean
      required:
      - operation
      - diff
      - id
      - createdAt
      - actionName
      - method
      - routePath
      - actor
      - truncated
    ActionLogActor:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ActionLogActorType'
        systemSource:
          $ref: '#/components/schemas/ActionLogSystemSource'
        userId:
          type: string
        email:
          type:
          - string
          - 'null'
        name:
          type:
          - string
          - 'null'
        impersonatorUserId:
          type:
          - string
          - 'null'
        impersonatorEmail:
          type:
          - string
          - 'null'
      required:
      - type
      - systemSource
      - userId
      - email
      - name
      - impersonatorUserId
      - impersonatorEmail
  securitySchemes:
    x-access-token:
      scheme: bearer
      bearerFormat: JWT
      type: apiKey
      in: header
      name: x-access-token