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 Enum: "tam" "jal" "son" "cjf" "sin" "bcn" "col" "zac" "mex" "yuc" "bcs" "mor" "agu" "chh" "tab" "slp" "dur" "chp" "ver" 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",
- "id": "0a040ec34abbfb7f3030345244a913c9",
- "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
id required | string ID del acuerdo |
state_id required | string Enum: "tam" "jal" "son" "cjf" "sin" "bcn" "col" "zac" "mex" "yuc" "bcs" "mor" "agu" "chh" "tab" "slp" "dur" "chp" "ver" Estado |
Responses
Request samples
- Payload
Content type
application/json
{- "id": "0a040ec34abbfb7f3030345244a913c9",
- "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",
- "id": "0a040ec34abbfb7f3030345244a913c9",
- "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
}
]