API Lexi (1.0)
Download OpenAPI specification:Download
Rem Tools: contact@rem.tools
This is the API for Lexi for searching agreements
Search agreements
Search agreements
Authorizations:
ApiKeyAuth
Request Body schema: application/json
Query
end_date | string Fecha de fin de la búsqueda |
min_similarity | number Similitud mínima |
query required | string Búsqueda |
start_date | string Fecha de inicio de la búsqueda |
state_id | string ID del estado |
Responses
Request samples
- Payload
Content type
application/json
{- "end_date": "2021-12-31",
- "min_similarity": 0.8,
- "query": "John Doe",
- "start_date": "2021-01-01",
- "state_id": "mex"
}
Response samples
- 200
- 400
- 422
- 500
Content type
application/json
[- {
- "data": [
- {
- "case_number": "123/2021",
- "court_id": "1",
- "court_name": "Tribunal Superior de Justicia",
- "court_room": "Sala 1",
- "date": "2021-01-01",
- "defendant_parties": [
- "John Doe"
], - "district": "Ecatepec",
- "parties": [
- "John Doe"
], - "plaintiff_parties": [
- "John Doe"
], - "ruling": "AUTO",
- "secretariat": "Primera Secretaría",
- "similarity": 0.851321,
- "similarity_index": 0,
- "similarity_source": "plaintiff_parties",
- "state_id": "mex",
- "subject_matter": [
- "Laboral"
], - "summary": "Acuerdo de conciliación"
}
], - "success": true
}
]
Get agreement history
Get agreement history
Authorizations:
ApiKeyAuth
Request Body schema: application/json
Query
case_number required | string Número de caso |
court_id | string ID del tribunal |
state_id required | string ID del estado |
Responses
Request samples
- Payload
Content type
application/json
{- "case_number": "123/2021",
- "court_id": "1",
- "state_id": "mex"
}
Response samples
- 200
- 400
- 422
- 500
Content type
application/json
[- {
- "data": [
- {
- "case_number": "123/2021",
- "court_id": "1",
- "court_name": "Tribunal Superior de Justicia",
- "court_room": "Sala 1",
- "date": "2021-01-01",
- "defendant_parties": [
- "John Doe"
], - "district": "Ecatepec",
- "parties": [
- "John Doe"
], - "plaintiff_parties": [
- "John Doe"
], - "ruling": "AUTO",
- "secretariat": "Primera Secretaría",
- "similarity": 0.851321,
- "similarity_index": 0,
- "similarity_source": "plaintiff_parties",
- "state_id": "mex",
- "subject_matter": [
- "Laboral"
], - "summary": "Acuerdo de conciliación"
}
], - "success": true
}
]