Lokki Document State API

The Document State API from Lokki — 2 operation(s) for document state.

Operations 2

PUT /v2/document-state/get-attachment-files-preview #
POST /v2/document-state/upload-attachment-files #

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-document-state-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-document-state-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lokki Document State API
  description: The main API powering the Lokki Dashboard and Online Store
  version: '2.0'
  contact: {}
servers: []
security:
- x-access-token: []
tags:
- name: Document State
paths:
  /v2/document-state/get-attachment-files-preview:
    put:
      operationId: getDocumentStateAttachmentFilesPreview
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetProductStateAttachmentPreviewDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentStateProductAttachedFilePreview'
      tags:
      - Document State
  /v2/document-state/upload-attachment-files:
    post:
      operationId: uploadDocumentStateAttachmentFiles
      parameters: []
      requestBody:
        required: true
        description: Upload files
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ProductStateUploadAttachmentDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentStateProductAttachedFile'
      tags:
      - Document State
components:
  schemas:
    DocumentStateProductAttachedFilePreview:
      type: object
      properties:
        name:
          type: string
        key:
          type: string
        size:
          type: number
        type:
          type: string
        url:
          type: string
      required:
      - name
      - key
      - size
      - type
      - url
    GetProductStateAttachmentPreviewDto:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/HistoryAttachedFile'
      required:
      - files
    HistoryAttachedFile:
      type: object
      properties:
        name:
          type: string
        key:
          type: string
        size:
          type: number
        type:
          type: string
        url:
          type: string
      required:
      - name
      - key
      - size
      - type
    ProductStateUploadAttachmentDto:
      type: object
      properties:
        files:
          type: array
          items:
            type: string
            format: binary
        orderId:
          type: string
        subProductId:
          type: string
        scope:
          type: string
          enum:
          - departure
          - return
      required:
      - files
      - orderId
      - subProductId
      - scope
    DocumentStateProductAttachedFile:
      type: object
      properties:
        name:
          type: string
        key:
          type: string
        size:
          type: number
        type:
          type: string
      required:
      - name
      - key
      - size
      - type
  securitySchemes:
    x-access-token:
      scheme: bearer
      bearerFormat: JWT
      type: apiKey
      in: header
      name: x-access-token