POST /api/events/events/search HTTP/1.1
Host: localhost:3000
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1189
{
"query": {
"type": "and",
"clauses": [
{
"id": "text",
"eventType": "text",
"status": {
"type": "text",
"terms": [
"CREATED"
]
},
"createdAt": {
"type": "text",
"term": "2026-05-20"
},
"updatedAt": {
"type": "text",
"term": "2026-05-20"
},
"legalStatuses.DECLARED.createdAtLocation": {
"type": "text",
"location": "text"
},
"legalStatuses.DECLARED.createdByRole": {
"type": "text",
"terms": [
"text"
]
},
"legalStatuses.REGISTERED.acceptedAt": {
"type": "text",
"term": "2026-05-20"
},
"legalStatuses.REGISTERED.createdAtLocation": {
"type": "text",
"location": "text"
},
"legalStatuses.REGISTERED.createdByRole": {
"type": "text",
"terms": [
"text"
]
},
"legalStatuses.REGISTERED.registrationNumber": {
"type": "text",
"term": "text"
},
"createdAtLocation": {
"type": "text",
"location": "text"
},
"updatedAtLocation": {
"type": "text",
"location": "text"
},
"assignedTo": {
"type": "text",
"term": "text"
},
"createdByUserType": {
"type": "text",
"term": "user"
},
"updatedByUserRole": {
"type": "text",
"term": "text"
},
"createdBy": {
"type": "text",
"term": "text"
},
"updatedBy": {
"type": "text",
"term": "text"
},
"trackingId": {
"type": "text",
"term": "text"
},
"flags": {
"anyOf": [
"text"
],
"noneOf": [
"text"
]
},
"data": {
"type": "text",
"term": "text"
}
}
]
},
"limit": 100,
"offset": 0,
"sort": [
{
"field": "text",
"direction": "asc"
}
]
}