Lawmadi Ask API

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

GitHub OpenAPI

Operations 1

POST /ask Submit a legal question #

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-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-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 법마디(Lawmadi) OS — Korean Legal AI Ask 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
paths:
  /ask:
    post:
      operationId: askLegalQuestion
      summary: Submit a legal question
      description: Routes query to the most relevant specialist agent among 60 legal domains. Returns verified legal analysis with statute citations. Login required; each user gets 10 free credits one time on login (non-recurring), then must purchase credits.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  description: Legal question in Korean or English
                  example: 부당해고를 당했는데 어떻게 해야 하나요?
                lang:
                  type: string
                  enum:
                  - ko
                  - en
                  default: ko
                  description: Response language
      responses:
        '200':
          description: Legal analysis response
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                    description: Legal analysis with verified statute citations
                  leader:
                    type: string
                    description: Specialist agent name that handled the query
                  status:
                    type: string
                    enum:
                    - success
                    - error
                  meta:
                    type: object
                    properties:
                      model:
                        type: string
                        description: LLM model used
        '429':
          description: Out of credits (login grants 10 free credits one time, non-recurring)
      security:
      - apiKey: []
      - oauth2:
        - mcp
      tags:
      - Ask
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.