Lawmadi Ask Stream API

The Ask Stream API from Lawmadi — 1 operation(s) for ask stream.

GitHub OpenAPI

Operations 1

POST /ask-stream Submit a legal question (streaming) #

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/lawmadi-com:lawmadi-com-ask-stream-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

lawmadi-com-ask-stream-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 법마디(Lawmadi) OS — Korean Legal AI Ask Stream API
  description: 법마디(Lawmadi) OS — Korean Legal AI with 60 specialized agents and real-time statute verification via law.go.kr. Login grants 10 free credits one time (non-recurring). Korean & English.
  version: 60.0.1
  contact:
    email: admin@lawmadi.com
  termsOfService: https://lawmadi.com/terms
servers:
- url: https://lawmadi.com
  description: Production
tags:
- name: Ask Stream
paths:
  /ask-stream:
    post:
      operationId: askLegalQuestionStream
      summary: Submit a legal question (streaming)
      description: Same as /ask but returns Server-Sent Events (SSE) for streaming responses.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  description: Legal question in Korean or English
                lang:
                  type: string
                  enum:
                  - ko
                  - en
                  default: ko
      responses:
        '200':
          description: SSE stream of legal analysis chunks
          content:
            text/event-stream: {}
        '429':
          description: Rate limit exceeded
      security:
      - apiKey: []
      - oauth2:
        - mcp
      tags:
      - Ask Stream
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'Customer API key — `Authorization: Bearer lmk_live_…`. Issue one after email sign-in at https://lawmadi.com/mcp-key-guide-en, or obtain one through the OAuth flow below (an OAuth access token IS such a key, so quotas and billing behave identically). Costs are not duplicated here: GET /plans returns the current pricing as JSON, and the MCP tool `get_pricing` needs no auth.'
    oauth2:
      type: oauth2
      description: 'Authorization code + PKCE (S256 only). Dynamic client registration is open (RFC 7591). Scope `mcp:read` cannot spend the user''s credits. Server metadata: https://lawmadi.com/.well-known/oauth-authorization-server (RFC 8414); protected resource metadata: https://lawmadi.com/mcp/.well-known/oauth-protected-resource (RFC 9728).'
      flows:
        authorizationCode:
          authorizationUrl: https://lawmadi.com/oauth/authorize
          tokenUrl: https://lawmadi.com/oauth/token
          scopes:
            mcp: Call any tool, including tools that spend credits.
            mcp:read: Call tools that never spend credits.