{"openapi":"3.1.0","info":{"title":"Legal.Ge Public API","version":"1.2.0","summary":"Find verified legal specialists in Georgia (the country) and query Georgian legislation.","description":"Read-only API for finding verified Georgian legal specialists. Designed for AI agents (Perplexity, ChatGPT, Claude, Custom GPTs, MCP servers) and third-party integrations. Supports Georgian, English, and Russian. Sending an inquiry requires sign-in on Legal.Ge and is not exposed here. The text of Georgian laws is free to AI agents through /api/law/* (rate-limited; cite the canonical URL and name the official source, matsne, the Legislative Herald of Georgia). A remote MCP endpoint (Streamable HTTP, stateless) at /api/mcp exposes the same tools. Access: Without a key: 200 law articles a day per network address on the Markdown pages (.md); on the API, per address per day, 200 article reads, 200 searches and 200 term lookups; 200 MCP tool calls a day; 25 historical wordings (as_of_date) a day; 1,200 reads a day per network subnet across all of them; and 500 different law articles a month per network address. Per-minute burst limits apply too. More: register free on Legal.Ge and create a personal API key at https://legal.ge/en/developers#key; send it as a bearer token (PersonalApiKey). With a key, the first 200 law articles a day on the account cost nothing; after that each delivered article costs 10 LEX (0.01 GEL) and each historical wording (as_of_date, when held) 20 LEX (0.02 GEL), up to 500 requests a day; for more, ask for a custom quota at https://legal.ge/en/developers#limit. Searches, terms and specialist search stay free, and errors and refusals are never charged. Top up LEX at https://legal.ge/pay/lex. Every law answer carries an `access` object.","contact":{"name":"Legal.Ge","url":"https://legal.ge","email":"contact@legal.ge"},"license":{"name":"API access — no licence required for read-only use","url":"https://legal.ge/terms"},"termsOfService":"https://legal.ge/terms","x-logo":{"url":"https://legal.ge/apple-touch-icon.png","altText":"Legal.Ge","backgroundColor":"#1B2233"},"x-mcp-server":{"endpoint":"https://legal.ge/api/mcp","transport":"streamable-http","tools":["find_legal_specialists","classify_legal_intent","search_law","get_article","get_term"],"npm":"@legalge/mcp","repository":"https://github.com/infolegalge/legal.ge-mcp","registry":"https://www.npmjs.com/package/@legalge/mcp"},"x-llms-txt":"https://legal.ge/llms.txt","x-law-llms-txt":"https://legal.ge/law/llms.txt"},"servers":[{"url":"https://legal.ge"}],"tags":[{"name":"Matching","description":"Map a free-text legal question to practice areas, and optionally to ranked verified specialists."},{"name":"Law","description":"Search Georgian legislation, read individual law articles (optionally as of a date), and look up legally defined terms."},{"name":"Directory","description":"Look up services, practice areas and verified specialists on Legal.Ge."}],"paths":{"/api/ask":{"post":{"operationId":"askMatchSpecialists","tags":["Matching"],"summary":"Classify a free-text legal question and return matching verified specialists.","description":"Pass a natural-language description of the user's legal need (Georgian, English, or Russian). The endpoint maps the text to legal practice areas and returns ranked specialists who work in those areas, including a profile URL for each.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"},"examples":{"english":{"value":{"query":"I need LLC registration in Tbilisi","locale":"en","limit":10}},"georgian":{"value":{"query":"მინდა შპს-ის რეგისტრაცია თბილისში","locale":"ka"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/FilterUnavailable"}}},"get":{"operationId":"askMatchSpecialistsGet","tags":["Matching"],"summary":"Same as POST /api/ask but with query parameters.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":500}},{"name":"locale","in":"query","schema":{"type":"string","enum":["ka","en","ru"],"default":"ka"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"city","in":"query","description":"Only specialists who work in this city: a slug (`batumi`) or a name in Georgian, English or Russian. Without it, a city named in the question is used.","schema":{"type":"string","maxLength":64}},{"name":"language","in":"query","description":"Only specialists who list this working language: a code (`en`, `ru`, `ka`, `de`, `fr`, `es`, `tr`, `az`, `hy`, `uk`) or its English name. Without it, a language asked for in the question (\"English-speaking\", \"англоязычный\", \"ინგლისურენოვანი\") is used.","schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/FilterUnavailable"}}}},"/api/law/search":{"get":{"operationId":"searchLaw","security":[{},{"PersonalApiKey":[]},{"PersonalApiKeyHeader":[]},{"PersonalApiKeyQuery":[]}],"tags":["Law"],"summary":"Keyword search over the text of Georgian laws (Georgian words work best).","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":25,"default":10}}],"responses":{"200":{"description":"OK. Always free, with or without a key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawSearchResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/KeyInvalid"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/law/article":{"get":{"operationId":"getLawArticle","security":[{},{"PersonalApiKey":[]},{"PersonalApiKeyHeader":[]},{"PersonalApiKeyQuery":[]}],"tags":["Law"],"summary":"One article of a Georgian law: its text, the consolidation it is \"as of\", and its canonical URL.","description":"With `as_of_date`, the article's wording in force on that date, past or future, worked out from the act behind each consolidation and the day that act took effect (a consolidation can print a change not yet in force). When Legal.Ge can establish it, `as_of.held` is true and `text` is that wording; otherwise `as_of.held` is false, `text` is the consolidation Legal.Ge holds and `as_of.note` says why. It never implies the law did not change. When the version history cannot be read, a dated request answers 503 AS_OF_UNAVAILABLE.","parameters":[{"name":"law","in":"query","required":true,"description":"The law's matsne document id, as in Legal.Ge law URLs.","schema":{"type":"integer"}},{"name":"article","in":"query","required":true,"description":"The article number or URL segment: '5', '118-1' for 118¹, or '8-1-saadvokato-sakmianobis-reklamireba'.","schema":{"type":"string"}},{"name":"as_of_date","in":"query","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK. Free without a key. With a personal key a delivered article is charged 10 LEX, a held historical wording (as_of_date, as_of.held true) 20 LEX; `access` states the charge and the balance after it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawArticleResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/KeyInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No such article in the corpus. Never charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"AS_OF_UNAVAILABLE (a dated request before the version history is exposed), UNAVAILABLE, or CHARGE_UNAVAILABLE (a key read whose charge could not be made). Never charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/law/term":{"get":{"operationId":"getLawTerm","security":[{},{"PersonalApiKey":[]},{"PersonalApiKeyHeader":[]},{"PersonalApiKeyQuery":[]}],"tags":["Law"],"summary":"A legal term defined in Georgian legislation, with every definition and the article that gives it.","parameters":[{"name":"slug","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","description":"The term in Georgian, when the slug is unknown.","schema":{"type":"string","minLength":2}}],"responses":{"200":{"description":"OK. Always free, with or without a key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawTermResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/KeyInvalid"},"404":{"description":"No such term.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/ask/classify":{"get":{"operationId":"classifyLegalIntent","tags":["Matching"],"summary":"Classify free text into legal practice areas only.","description":"Lighter than /api/ask — returns just the matched categories with weighted scores and the keywords that fired. Useful when an agent wants to pick categories first, then query specialists separately.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":500}},{"name":"locale","in":"query","schema":{"type":"string","enum":["ka","en","ru"],"default":"ka"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassifyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/service-search":{"get":{"operationId":"searchServicesAndCategories","tags":["Directory"],"summary":"Search the published service + category taxonomy.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2}},{"name":"locale","in":"query","schema":{"type":"string","enum":["ka","en","ru"],"default":"ka"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceSearchItem"}}}}}}}},"/api/specialists/search":{"get":{"operationId":"searchSpecialistsByName","tags":["Directory"],"summary":"Look up specialists by name fragment.","description":"Returns up to 20 specialists matching the query. Contact info is not included — use /api/specialists/{id}/contact to reveal phone or email for a specific specialist. Rate-limited at 30 requests/minute per IP.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":3}},{"name":"locale","in":"query","schema":{"type":"string","enum":["ka","en","ru"],"default":"ka"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpecialistNameResult"}}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/specialists/{id}/contact":{"get":{"operationId":"revealSpecialistContact","tags":["Directory"],"summary":"Reveal one contact field (phone or email) for a specialist or company.","description":"Click-to-reveal contact endpoint. Returns the requested field only if the profile has opted in (info_activate=true) and is in a public compliance state. Accepts SPECIALIST, SOLO_SPECIALIST, and COMPANY roles — despite the path name, companies share this endpoint since their contact info lives on the same profiles row. Rate-limited at 10 requests/minute per IP to make bulk PII harvest impractical.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"field","in":"query","required":true,"schema":{"type":"string","enum":["phone","email"]}}],"responses":{"200":{"description":"OK — returns only the requested field.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"phone":{"type":"string"}},"required":["phone"]},{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]}]}}}},"400":{"description":"Invalid id or field parameter."},"404":{"description":"Specialist not found, not opted in, or no value for the requested field."},"429":{"$ref":"#/components/responses/RateLimited"}}}}},"components":{"securitySchemes":{"PersonalApiKey":{"type":"http","scheme":"bearer","description":"A personal API key (lgk_…), free to create at https://legal.ge/en/developers#key. Optional: without one the law API is free within the public limits. With a key, the first 200 law articles a day on the account cost nothing; after that each delivered article costs 10 LEX (0.01 GEL) and each historical wording (as_of_date, when held) 20 LEX (0.02 GEL), up to 500 requests a day; for more, ask for a custom quota at https://legal.ge/en/developers#limit. Searches, terms and specialist search stay free, and errors and refusals are never charged."},"PersonalApiKeyHeader":{"type":"apiKey","in":"header","name":"X-LegalGe-Key","description":"The same personal key in a header of its own."},"PersonalApiKeyQuery":{"type":"apiKey","in":"query","name":"key","description":"The same personal key on a link (it can end up in logs; prefer a header)."}},"responses":{"PaymentRequired":{"description":"A read with a personal key that cannot be paid: LEX_INSUFFICIENT (the LEX balance is below the price) or LEX_SPEND_LIMIT (the key's own daily spend limit, set by its holder, default 1000 LEX, would be passed). The article is not delivered and nothing is charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"insufficient":{"value":{"error":{"code":"LEX_INSUFFICIENT","message":"This read costs 10 LEX (0.01 GEL) and your LEX balance is 4 LEX. Top up LEX at https://legal.ge/pay/lex and retry. The article was not delivered and nothing was charged.","scope":"balance","what_to_do":"Tell the person the article costs 10 LEX (0.01 GEL) and their LEX balance cannot pay it; give them https://legal.ge/pay/lex to top up, and repeat this call only after they say they have. Do not retry before that. Answer with what you already have: search_law, get_term and both specialist tools stay free.","retry_after_seconds":null,"constraint":{"price_lex":10,"balance_lex":4,"top_up_url":"https://legal.ge/pay/lex"}}}},"spendLimit":{"value":{"error":{"code":"LEX_SPEND_LIMIT","message":"This key has spent 1,000 of its 1,000 LEX daily spend limit, and this read costs 10 LEX. The key's holder sets the limit at https://legal.ge/en/developers#key; it resets at 00:00 UTC. The article was not delivered and nothing was charged.","scope":"key_spend_daily","what_to_do":"Tell the person this key reached the daily spend limit they set (1,000 LEX). They can raise it at https://legal.ge/en/developers#key, or the limit starts over at 00:00 UTC. Do not retry before one of those. Search, terms and specialist search stay free.","retry_after_seconds":null,"resets_at":"2026-12-04T00:00:00.000Z","constraint":{"price_lex":10,"balance_lex":4200,"spent_today_lex":1000,"daily_spend_limit_lex":1000,"top_up_url":"https://legal.ge/pay/lex","limit_url":"https://legal.ge/en/developers#key"}}}}}}}},"KeyInvalid":{"description":"API_KEY_INVALID: the key presented does not exist or was revoked. Send no key to read within the public limits. A key that cannot be checked right now answers 503 API_KEY_UNCHECKED.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"BadRequest":{"description":"Invalid request. The `error.code` field is machine-readable; possible values: `QUERY_REQUIRED`, `QUERY_TOO_LONG`, `INVALID_BODY`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"queryRequired":{"value":{"error":{"code":"QUERY_REQUIRED","message":"query is required","field":"query","constraint":{"required":true}}}},"queryTooLong":{"value":{"error":{"code":"QUERY_TOO_LONG","message":"query exceeds 500 characters","field":"query","constraint":{"max_length":500},"received_length":712}}}}}}},"FilterUnavailable":{"description":"A `city` or `language` filter (from a parameter or the question) could not be applied because the specialist listing could not be read. Never answered with an unfiltered list instead. Retry after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"filterUnavailable":{"value":{"error":{"code":"FILTER_UNAVAILABLE","message":"the city or language filter cannot be applied right now; retry shortly"}}}}}}},"RateLimited":{"description":"Too many requests (per-minute burst, 24-hour IP cap, 24-hour `as_of_date` cap, 24-hour subnet cap, or on `/api/law/article` the monthly limit on DIFFERENT articles, `error.constraint.scope` `distinct_monthly`: an article already read that month is still delivered, a new one from `resets_at`). The `Retry-After` header and `error.constraint.retry_after_seconds` indicate when to retry; `error.constraint.upgrade_url` links to Private API access.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the next request is allowed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"rateLimited":{"value":{"error":{"code":"RATE_LIMITED","message":"Public read-only 24-hour public limit exceeded. For dedicated API keys, higher quotas, and field-scoped semantic law search, see https://legal.ge/en/developers","constraint":{"scope":"daily","retry_after_seconds":42,"upgrade_url":"https://legal.ge/en/developers"}}}}}}}}},"schemas":{"ErrorEnvelope":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code. Stable across versions. Known values: QUERY_REQUIRED, QUERY_TOO_LONG, INVALID_BODY, RATE_LIMITED, FILTER_UNAVAILABLE, API_KEY_INVALID, API_KEY_UNCHECKED, LEX_INSUFFICIENT, LEX_SPEND_LIMIT, CHARGE_UNAVAILABLE."},"message":{"type":"string","description":"Human-readable explanation suitable for surfacing to end users."},"field":{"type":"string","description":"Name of the offending request field, when the error is field-scoped."},"constraint":{"type":"object","additionalProperties":true,"description":"Machine-readable constraint that failed. Shape depends on `code`: `{required: true}`, `{max_length: 500}`, `{retry_after_seconds: 42}`, etc."},"received_length":{"type":"integer","description":"For QUERY_TOO_LONG: the actual length of the rejected query, so the caller can truncate and retry."},"scope":{"type":"string","description":"On a paid-read refusal: what it is about — `balance` (LEX_INSUFFICIENT), `key_spend_daily` (LEX_SPEND_LIMIT), `key` (API_KEY_INVALID) or `charge` (CHARGE_UNAVAILABLE)."},"what_to_do":{"type":"string","description":"On a paid-read refusal: the next step, written for the agent that tells the person."},"retry_after_seconds":{"type":["integer","null"],"description":"On a paid-read refusal: seconds before a retry can work; null when the person has to act first (top up, raise the limit, sign in again)."},"resets_at":{"type":"string","format":"date-time","description":"On LEX_SPEND_LIMIT: when the key's daily spend starts over (00:00 UTC)."}}}}},"Access":{"description":"Who the answer was served to, and what it cost. Anonymous: tier public, the limits, and how to get more. With a personal key: tier key and the charge.","oneOf":[{"type":"object","title":"PublicAccess","required":["tier","limits","how_to_get_more"],"properties":{"tier":{"const":"public"},"limits":{"type":"string"},"how_to_get_more":{"description":"A sentence while personal keys are not open yet; otherwise how to register, send a key, the prices and where to top up.","oneOf":[{"type":"string"},{"type":"object","properties":{"summary":{"type":"string"},"register_url":{"type":"string","format":"uri"},"send_key_as":{"type":"array","items":{"type":"string"}},"prices":{"type":"object","properties":{"article_lex":{"type":"integer"},"article_gel":{"type":"number"},"historical_wording_lex":{"type":"integer"},"historical_wording_gel":{"type":"number"},"lex_per_gel":{"type":"integer"},"free":{"type":"array","items":{"type":"string"}}}},"top_up_url":{"type":"string","format":"uri"}}}]}}},{"type":"object","title":"KeyedAccess","required":["tier","charged_lex","top_up_url"],"properties":{"tier":{"const":"key"},"charged_lex":{"type":"number","description":"LEX charged for this answer; 0 for a free call."},"balance_lex":{"type":"number","description":"Spendable LEX after the charge. On a charged answer only."},"spent_today_lex":{"type":"number","description":"LEX this key spent today (UTC), this charge included. On a charged answer only."},"daily_spend_limit_lex":{"type":"integer","description":"The key's daily spend limit, set by its holder. On a charged answer only."},"top_up_url":{"type":"string","format":"uri"}}}]},"LawStatus":{"type":"object","properties":{"consolidated_as_of":{"type":"string","format":"date","nullable":true,"description":"The consolidation the text is \"as of\"; null for an as-enacted text."},"legal_force":{"type":"string","enum":["in_force","not_in_force"],"description":"Present only when Legal.Ge can vouch for it: never for a law whose text is stale, never while freshness is unknown."},"newer_consolidation_published":{"type":"boolean","description":"matsne has published a newer consolidation than the text Legal.Ge holds."},"freshness":{"type":"string","enum":["current","stale","unknown"]}}},"LawSearchResponse":{"type":"object","properties":{"query":{"type":"string"},"laws":{"type":"array","description":"Laws whose title matches the query (Georgian, English or Russian), at most 5; absent when none does. matsne_id is what /api/law/article takes as `law`.","items":{"type":"object","properties":{"matsne_id":{"type":"integer"},"title":{"type":"string"},"title_en":{"type":"string"},"url":{"type":"string","format":"uri"},"articles":{"type":"integer"}}}},"match":{"type":"string","enum":["any_word"],"description":"Present when no article holds every word of the query: `results` are then the articles holding some of the words, the ones showing most of them first. Absent when every word matched."},"hint":{"type":"string","description":"Present when `match` is any_word, and when no article matched at all: it says how words are matched (exact form, in Georgian) and what to try."},"results":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/LawStatus"}],"type":"object","properties":{"law":{"type":"object","properties":{"matsne_id":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string","format":"uri"}}},"article":{"type":"object","properties":{"number":{"type":"string"},"title":{"type":"string","nullable":true},"url":{"type":"string","format":"uri"},"markdown_url":{"type":"string","format":"uri"}}},"snippet":{"type":"string","nullable":true}}}},"attribution":{"type":"string"},"official_source":{"type":"string"},"access":{"$ref":"#/components/schemas/Access"}}},"LawArticleResponse":{"allOf":[{"$ref":"#/components/schemas/LawStatus"}],"type":"object","properties":{"law":{"type":"object","properties":{"matsne_id":{"type":"integer"},"title":{"type":"string"},"identifier":{"type":"string"},"url":{"type":"string","format":"uri"}}},"article":{"type":"object","properties":{"number":{"type":"string"},"title":{"type":"string","nullable":true},"url":{"type":"string","format":"uri"},"markdown_url":{"type":"string","format":"uri"}}},"text":{"type":"string"},"as_of":{"type":"object","properties":{"requested":{"type":"string","format":"date"},"held":{"type":"boolean","description":"Whether `text` is the wording in force on that date, as Legal.Ge can establish it."},"text_consolidated_as_of":{"type":"string","format":"date","nullable":true},"note":{"type":"string"}}},"related_services":{"type":"array","description":"Curated Legal.Ge service guides addressing this provision, when mapped.","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"},"verified_specialists":{"type":"integer","description":"Present when one or more verified specialists offer this service."}}}},"specialists_url":{"type":"string","format":"uri","description":"Filtered Legal.Ge specialist directory URL for the practice area covering this article, when resolved."},"attribution":{"type":"string"},"official_source":{"type":"string"},"access":{"$ref":"#/components/schemas/Access"}}},"LawTermResponse":{"type":"object","properties":{"term":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string","format":"uri"},"definitions":{"type":"array","items":{"type":"object","properties":{"definition":{"type":"string"},"law":{"type":"string"},"law_url":{"type":"string","format":"uri"},"article":{"type":"string"},"article_url":{"type":"string","format":"uri"}}}},"attribution":{"type":"string"},"official_source":{"type":"string"},"access":{"$ref":"#/components/schemas/Access"}}},"AskRequest":{"type":"object","required":["query"],"properties":{"query":{"type":"string","maxLength":500,"description":"Natural-language legal question or situation."},"locale":{"type":"string","enum":["ka","en","ru"],"default":"ka"},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"city":{"type":"string","maxLength":64,"description":"Only specialists who work in this city: a slug or a name in any of the three languages. Without it, a city named in the query is used."},"language":{"type":"string","maxLength":64,"description":"Only specialists who list this working language: a code (`en`, `ru`, `ka`, ...) or its English name. Without it, a language asked for in the query is used."}}},"MatchedCategory":{"type":"object","description":"A node matched by the classifier. Can be a category (any depth) or an individual service.","properties":{"kind":{"type":"string","enum":["category","service"],"description":"`category` = a legal practice area at some depth in the taxonomy. `service` = a specific service under a category. Services are the deepest level the matcher considers."},"id":{"type":"string","format":"uuid"},"level":{"type":"integer","description":"Depth in the taxonomy: 1 = top-level practice area, 2/3 = sub-areas, 4+ = services (one level deeper than their parent category). The matcher narrows ancestors when a descendant matches."},"slug":{"type":"string"},"name":{"type":"string"},"match_confidence":{"type":"string","enum":["curated","name_fallback"],"description":"`curated` = a strong match: one or more admin-curated keywords fired, or (on /api/ask, see `matched_by`) the routing model was sure of this area. `name_fallback` = the matcher only found a token overlap with the node name itself (weaker, used when no curated keyword fired)."},"matched_by":{"type":"string","enum":["router","keywords"],"description":"/api/ask only. `router` = the routing model named this area and was sure of it; the specialist list then keeps to it. `keywords` = the keyword matcher matched it (inside the routed area when there is one)."},"matched_keywords":{"type":"array","items":{"type":"string"},"description":"Keywords from the user query that triggered this match."},"parent_chain":{"type":"array","description":"Ancestors of this node, in child-first order (closest parent first, root last). Lets a caller cite the broader practice area without an extra request.","items":{"type":"object","properties":{"kind":{"type":"string","enum":["category","service"]},"id":{"type":"string","format":"uuid"},"level":{"type":"integer"},"slug":{"type":"string"},"name":{"type":"string"}}}}}},"AskSpecialist":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"full_name":{"type":"string"},"role_title":{"type":"string","nullable":true},"bio_excerpt":{"type":"string","nullable":true},"avatar_url":{"type":"string","nullable":true},"profile_url":{"type":"string","format":"uri"},"company":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true}}},"professional_org":{"type":"string","nullable":true},"professional_orgs":{"type":"array","items":{"type":"object","properties":{"org_id":{"type":"string"},"registration_number":{"type":"string"}}}},"matched_categories":{"type":"array","items":{"type":"string"},"description":"Slugs of the categories this specialist matched against the query, in arbitrary order."},"contact":{"type":"object","properties":{"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true}},"description":"Masked (for example `n***@gmail.com`, `+995 5XX XX XX XX`) for each channel the specialist publishes; null for a channel they do not. The full contact is revealed on the `profile_url`."},"languages":{"type":"array","nullable":true,"items":{"type":"string"},"description":"Working languages the listing card shows, as BCP 47 codes. Null when the listing could not be read."},"cities":{"type":"array","nullable":true,"items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}}},"description":"Cities the specialist works in. Null when the listing could not be read."},"consultation_price":{"type":"object","nullable":true,"description":"The consultation price the listing card shows: `free`, or a `fee` in GEL (`from` = the lowest of several options), or neither = by agreement. Null when the listing could not be read.","properties":{"fee":{"type":"number","nullable":true},"free":{"type":"boolean"},"from":{"type":"boolean"},"currency":{"type":"string","enum":["GEL"]}}},"bar_register_matched":{"type":"boolean","nullable":true,"description":"Legal.Ge matched this person's name to an entry in the Georgian Bar Association's public register and a person on its team confirmed it. Legal.Ge's own check, not a statement by the Bar Association. Null when the listing could not be read."}}},"AskResponse":{"type":"object","properties":{"query":{"type":"string"},"locale":{"type":"string","enum":["ka","en","ru"]},"matched_categories":{"type":"array","items":{"$ref":"#/components/schemas/MatchedCategory"}},"specialists":{"type":"array","items":{"$ref":"#/components/schemas/AskSpecialist"},"description":"Specialists ordered by Legal.Ge internal relevance ranking. The platform combines category match strength with internal quality and verification signals; exact ranking inputs are intentionally not exposed."},"filters":{"type":"object","description":"The filters applied: from the parameters (`source: param`) or read from the query (`source: text`). Words that only name a city, a language or a price are not matched as legal matters.","properties":{"city":{"type":"object","nullable":true,"properties":{"slug":{"type":"string"},"name":{"type":"string"},"source":{"type":"string","enum":["param","text"]}}},"language":{"type":"object","nullable":true,"properties":{"code":{"type":"string"},"source":{"type":"string","enum":["param","text"]}}},"fee_question":{"type":"boolean","description":"The query asks what a lawyer costs. With no legal matter in it, only specialists who publish a price are returned."}}},"fee_facts":{"type":"object","nullable":true,"description":"For a price question: the consultation fees the listing shows for the specialists in scope (after the city and language filters). Null otherwise.","properties":{"publishing":{"type":"integer","description":"Specialists who publish a paid fee"},"min":{"type":"number","nullable":true},"max":{"type":"number","nullable":true},"median":{"type":"number","nullable":true},"free":{"type":"integer","description":"Specialists whose first consultation is free"},"by_agreement":{"type":"integer","description":"Specialists who set the price by agreement"},"currency":{"type":"string","enum":["GEL"]}}},"ranking_note":{"type":"string","description":"Human-readable explanation of the ordering convention, suitable for surfacing to end users."},"meta":{"type":"object","properties":{"total":{"type":"integer"},"returned":{"type":"integer"},"fallback_used":{"type":"boolean"},"routed_by":{"type":"string","enum":["jev","matcher"],"description":"`jev` when the list follows the routing model's area, `matcher` when the keyword matcher decided alone."},"took_ms":{"type":"integer"}}}}},"ClassifyResponse":{"type":"object","properties":{"query":{"type":"string"},"locale":{"type":"string","enum":["ka","en","ru"]},"matched_categories":{"type":"array","items":{"$ref":"#/components/schemas/MatchedCategory"}},"meta":{"type":"object","properties":{"fallback_used":{"type":"boolean"}}}}},"ServiceSearchItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["category","service"]},"displayName":{"type":"string"},"href":{"type":"string"},"categoryName":{"type":"string","nullable":true}}},"SpecialistNameResult":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"full_name":{"type":"string"},"avatar_url":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"info_activate":{"type":"boolean","description":"True if the specialist has opted in to public contact CTAs. Use /api/specialists/{id}/contact to retrieve phone or email."}}}}}}