LEGAION API

LEGAION API as documented publicly: 4 operations. Contract generated from the documentation by API Evangelist (2026-11-15); not the provider's own document.

GitHub OpenAPI

Operations 4

GET /audit Historia zdarzeń #
GET /decisions Lista decyzji #
GET /decisions/DEC-2026-0412 Jedna decyzja z decyzjami ludzi #
POST /functions/v1/engine-gateway Jedno wywołanie POST uruchamia weryfikację źródeł i przegląd ryzyka #

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/legaion-com:legaion-com-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

legaion-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: LEGAION API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 4 operation(s) read from 1 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; LEGAION has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 4
    pages-with-code: 0
    pages-read: 1
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.legaion.com/dokumentacja/rest-api
paths:
  /audit:
    get:
      operationId: get_audit
      tags:
      - Audit
      summary: Historia zdarzeń
      description: Historia zdarzeń
      x-source: https://www.legaion.com/dokumentacja/rest-api
      parameters:
      - name: since
        in: query
        required: false
        schema:
          type: string
        description: ISO timestamp
      - name: limit
        in: query
        required: false
        schema:
          type: string
        description: 1–500
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /decisions:
    get:
      operationId: get_decisions
      tags:
      - Decisions
      summary: Lista decyzji
      description: Decyzje z Panelu Biznesowego odczytasz metodą GET. Odpowiedzi zawierają rekord decyzji i historię, nigdy treść dokumentu.
      x-source: https://www.legaion.com/dokumentacja/rest-api
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: status (po przecinku)
      - name: updated_since
        in: query
        required: false
        schema:
          type: string
        description: ISO timestamp
      - name: limit
        in: query
        required: false
        schema:
          type: string
        description: 1–200
      - name: include_archived
        in: query
        required: false
        schema:
          type: string
        description: 'true'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /decisions/DEC-2026-0412:
    get:
      operationId: get_decisions_DEC_2026_0412
      tags:
      - Decisions
      summary: Jedna decyzja z decyzjami ludzi
      description: Jedna decyzja z decyzjami ludzi
      x-source: https://www.legaion.com/dokumentacja/rest-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /functions/v1/engine-gateway:
    post:
      operationId: post_functions_v1_engine_gateway
      tags:
      - Functions
      summary: Jedno wywołanie POST uruchamia weryfikację źródeł i przegląd ryzyka
      description: 'POST https://rkryjteyfzgxisnmykek.supabase.co/functions/v1/engine-gateway Authorization: Bearer … Content-Type: application/json
        { "content": "Treść umowy…", "documentType": "umowa o świadczenie usług", "jurisdiction": "PL", "language": "pl" }'
      x-source: https://www.legaion.com/dokumentacja/rest-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostFunctionsV1EngineGatewayRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostFunctionsV1EngineGatewayRequest:
      type: object
      properties:
        content:
          type: string
          description: Tekst dokumentu, do 60 000 znaków
        documentType:
          type: string
          description: Typ dokumentu, np. "umowa o świadczenie usług"
        jurisdiction:
          type: string
          description: Jurysdykcja, np. "PL"
        language:
          type: string
          description: Język, np. "pl"
      required:
      - content
      - documentType
      - jurisdiction
      - language
tags:
- name: Audit
- name: Decisions
- name: Functions