GitLaw Public API
The GitLaw Public API allows you to interact with GitLaw's AI-powered legal assistant programmatically. Use your API key to authenticate requests and access chat, file processing, and status endpoints.
Base URL
https://be-public-api.git.lawAuthentication
All API requests require an API key passed in the x-api-key header. You can create API keys in your account settings.
x-api-key: YOUR_API_KEYEndpoints
get
/api/v1/statusVerify that your API key is valid and the API is operational.
Responses
Response Schema (200)
Example
curl -X GET "https://be-public-api.git.law/api/v1/status" \
-H "x-api-key: YOUR_API_KEY"post
/api/v1/chat/askSend a message to the AI assistant. Optionally attach a file by providing fileId (existing file) or fileContent (base64-encoded new file).
Request Body
Responses
Response Schema (200)
Example
curl -X POST "https://be-public-api.git.law/api/v1/chat/ask" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "your_message",
"outputFileFormat": "docx"
}'