Hi @Gassim and @Thomas_Warichet
Thank you for your support and suggestions.
Actually I have tried a lot of things, including this request:
…/api/events.json?fields=*,!lastUpdatedByUserInfo,!createdByUserInfo,!notes,!dataValues,!relationships&orgUnit=OU_UID&ouMode=DESCENDANTS&program=Program_UID
as a result we can get like this response
“events”: [
{
“storedBy”: “oxxxhaj”,
“dueDate”: “2024-03-06T00:00:00.000”,
“program”: “FM1NHTFOlY3”,
“event”: “rHGRpCs6lqu”,
“programStage”: “m0oAXK7x2Cl”,
“programType”: “WITH_REGISTRATION”,
“orgUnit”: “cNQIdAH2q6S”,
“enrollment”: “oNyxXmDSZhQ”,
“trackedEntityInstance”: “NCpGaHK4a3n”,
“enrollmentStatus”: “ACTIVE”,
“eventDate”: “2024-03-06T00:00:00.000”,
“orgUnitName”: “Association of PLWHA”,
“status”: “COMPLETED”,
“attributeCategoryOptions”: “xYerKDKCefk”,
“lastUpdated”: “2024-06-12T12:34:48.690”,
“created”: “2024-05-28T22:05:22.314”,
“completedDate”: “2024-05-28T22:05:22.314”,
“followup”: false,
“deleted”: false,
“attributeOptionCombo”: “HllvX50cXC0”
},
But the thing is you can’t filter events by the field CREATED
so if I could filter it just by this field or use it as timeField this could solve the problem. this parameter accepts only EVENT_DATE | SCHEDULED_DATE | < Attribute ID > | < Data element ID >.
My attempt to use &timeField=CREATED&startDate=2024-05-01&endDate=2024-05-31 resulted an empty set of events.
Yes, @Gassim I 'm trying to get first all events in that time period, and on the time of my request I should know the ID’s of that events.
@Thomas_Warichet you are right - the INCIDENT_DATE is not reliable , therefore had to create a direct sqlView request to the analytics tables 
Maybe developers will take this into consideration and will extend API point?
Thank you
Regards,
Ulanbek