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.
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.