Ask

The /ask endpoint is the core of LawyerGPT. It allows users to query legal questions and receive AI-generated responses trained on curated legal data

Endpoint

POST https://api.lawyergptai.cc/v1/ask

Request Body

Send a JSON payload with the user's query and optional parameters.

{
  "question": "Can my landlord evict me without notice?",
  "jurisdiction": "US-CA",
  "language": "en"
}

Request Parameters

Parameter
Type
Required
Description

question

string

βœ…

The legal question you're asking

jurisdiction

string

❌

ISO-style region code (e.g., US-NY, UK, PL)

language

string

❌

Response language (default: en)

Response

The API will return an AI-generated legal explanation. While the model is not a licensed attorney, it provides simplified guidance based on known legal data.

Last updated