get
https://{host}/v2/events/logs
Retrieves the log of all events of the org.
Example request
curl --location 'https://eu.api.capillarytech.com/v2/events/logs' \
--header 'accept: application/json' \
--header 'Authorization: Basic bWFkNzI3MjU2YQ==' \
--header 'Cookie: _cfuvid=3Bqr_AEhGNcPgFFuoGANhFqMlznRFiReV.iEaAmJTRw-1758740738013-0.0.1.1-604800000'Query parameters
| Parameter | type | Description |
|---|---|---|
event_name | string | Name of the event to filter records. |
from_date | string | Start date for fetching events. |
to_date | string | End date for fetching events. |
limit | integer | Maximum number of event records to fetch in a single response. For example, if the total records are 15 and the limit is 5, the first page will display the first 5 records. The default limit is 10. |
Example response
{
"data": [
{
"startTime": 1758171830945,
"responseTime": 408,
"orgId": 100737,
"status": "EVENT_SUCCESS",
"eventName": "TestBE-Rutuja",
"inputRequest": "{\"event_name\":\"TestBE-Rutuja\",\"String\":\"naman_doc\",\"customer\":\"918088369835\"}",
"id": "ff972d37-9c47-4fdd-b956-f57890479305",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Event processed successfully"
},
{
"startTime": 1758113374367,
"responseTime": 163,
"orgId": 100737,
"status": "NO_CUSTOMER_DETAILS_PASSED",
"eventName": "Group_User_Event",
"inputRequest": "{\"event_name\":\"Group_User_Event\",\"String\":\"rutuja_capillary\",\"enum\":\"customerUserGroup\",\"customer\":\"919970388310\"}",
"id": "604c79d5-0be4-4363-b16a-7761fcd51959",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Customer details not passed ,User does not belong to group customerUserGroup"
},
{
"startTime": 1757674163273,
"responseTime": 186,
"orgId": 100737,
"status": "NO_CUSTOMER_DETAILS_PASSED",
"eventName": "Group_User_Event",
"inputRequest": "{\"event_name\":\"Group_User_Event\",\"String\":\"rutuja_capillary\",\"enum\":\"customerUserGroup\",\"customer\":\"919970388310\"}",
"id": "4126a009-1b5e-46e2-8ec3-ba06c280b309",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Customer details not passed ,User does not belong to group customerUserGroup"
},
{
"startTime": 1756882120826,
"responseTime": 47,
"orgId": 100737,
"status": "INVALID_META_TRANSFORMER_MAPPINGS",
"inputRequest": "{\"eventId\":\"ccf65d56-1e34-4282-b9ad-8fe3fe558b74\",\"createdAt\":1756882119609,\"data\":{\"accountId\":\"accountId\",\"firstName\":\"firstName\",\"lastName\":\"lastName\",\"customerIdentifiers\":{\"instore\":{\"mobile\":\"mobile\",\"externalId\":\"externalId\",\"email\":\"email\"},\"webengage\":{\"accounts\":[{\"accountId\":\"311c9d4c\",\"identifiers\":[{\"identifierValue\":\"identifierValue\",\"identifierType\":\"identifierType\"},{\"identifierValue\":\"identifierValue\",\"identifierType\":\"identifierType\"}]}]},\"customerId\":379499720,\"wechat\":{\"accounts\":[{\"accountId\":\"311c9d4c\",\"identifiers\":[{\"identifierValue\":\"identifierValue\",\"identifierType\":\"identifierType\"},{\"identifierValue\":\"identifierValue\",\"identifierType\":\"identifierType\"}]}]},\"cardnumbers\":{\"accounts\":[{\"accountId\":\"311c9d4c\",\"identifiers\":[{\"identifierValue\":\"identifierValue\",\"identifierType\":\"identifierType\"},{\"identifierValue\":\"identifierValue\",\"identifierType\":\"identifierType\"}]}]}},\"loyaltyType\":\"loyaltyType\",\"enteredAt\":1676,\"source\":\"source\",\"enteredBy\":{\"till\":{\"code\":\"code\",\"name\":\"name\"},\"id\":200299224,\"store\":{\"code\":\"code\",\"name\":\"name\",\"externalId\":\"externalId\",\"externalId2\":\"externalId2\",\"externalId1\":\"externalId1\"}}},\"loyaltyEventId\":null,\"eventName\":\"customerAdded\",\"refId\":\"100737_7250807\",\"apiRequestId\":\"1344ffd5-7b6f-4af0-a23d-ce354da13c76\",\"orgId\":100737}",
"id": "5ff678b9-30af-4d0a-9907-c43ed65d2cec",
"webhookId": "e4492fc546c93453ff177f356356a7b3",
"parentOrgId": -1,
"message": "Invalid meta transformer mappings: No transformer mapping found"
},
{
"startTime": 1751255798531,
"responseTime": 112,
"orgId": 100737,
"status": "NO_CUSTOMER_DETAILS_PASSED",
"eventName": "Group_User_Event",
"inputRequest": "{\"event_name\":\"Group_User_Event\",\"String\":\"rutuja_capillary\",\"enum\":\"customerUserGroup\",\"customer\":\"919970388310\"}",
"id": "bc0ef110-a6ee-429c-a288-2a9856e3a3c9",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Customer details not passed ,User does not belong to group customerUserGroup"
},
{
"startTime": 1751008228197,
"responseTime": 17,
"orgId": 100737,
"status": "INVALID_EVENT_NAME",
"eventName": "Event_event",
"inputRequest": "{\"event_name\":\"Event_event\",\"String\":\"aditi_capillary\",\"enum\":\"customerUserGroup\",\"customer\":\"919148574269\"}",
"id": "2f4a76ad-3728-4027-b249-06f87e73194e",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Invalid event name Event_event"
},
{
"startTime": 1751007860926,
"responseTime": 19,
"orgId": 100737,
"status": "INVALID_EVENT_NAME",
"eventName": "",
"inputRequest": "{\"event_name\":\"\",\"String\":\"\",\"enum\":\"customerUserGroup\",\"customer\":\"\"}",
"id": "b18446e0-f6eb-4ab1-9149-27723498fc61",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Invalid event name "
},
{
"startTime": 1751007799233,
"responseTime": 18,
"orgId": 100737,
"status": "INVALID_EVENT_NAME",
"eventName": "ABC_User_Event",
"inputRequest": "{\"event_name\":\"ABC_User_Event\",\"String\":\"aditi_khandelwal\",\"enum\":\"customerUser\",\"customer\":\"9148574269\"}",
"id": "235431e9-46b1-42e3-b952-f40561c053a9",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Invalid event name ABC_User_Event"
},
{
"startTime": 1751007774443,
"responseTime": 17,
"orgId": 100737,
"status": "INVALID_EVENT_NAME",
"eventName": "ABC_User_Event",
"inputRequest": "{\"event_name\":\"ABC_User_Event\",\"String\":\"aditi_khandelwal\",\"enum\":\"customerUserGroup\",\"customer\":\"9148574269\"}",
"id": "27694550-91b2-4a70-bf19-1bb7764a314c",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Invalid event name ABC_User_Event"
},
{
"startTime": 1751007732555,
"responseTime": 44,
"orgId": 100737,
"eventName": "Group_User_Event",
"inputRequest": "{\"event_name\":\"Group_User_Event\",\"String\":\"aditi_khandelwal\",\"enum\":\"customerUserGroup\",\"customer\":\"9148574269\"}",
"id": "60d94760-e842-4fc6-b3a3-559906fabdd5",
"webhookId": "67b62dffb7f5337f8a8237970bd0a467",
"parentOrgId": -1,
"message": "Unauthorized"
}
],
"warnings": [],
"errors": []
}Response Parameter
| Parameter | type | Description |
|---|---|---|
| data | array | List of event log entries |
| startTime | long | Timestamp when the event processing started |
| responseTime | integer | Time taken to process the event |
| orgId | integer | Organization ID associated with the event |
| status | string | Status of the event processing (e.g., EVENT_SUCCESS, EMF_PROCESSOR_FAILED) |
| eventName | string | Name of the event that was processed |
| inputRequest | string | JSON string containing the original input request data |
| id | string | Unique identifier for the event log entry |
| webhookId | string | Identifier for the webhook that triggered the event |
| parentOrgId | integer | Parent organization ID |
| message | string | Detailed message about the event processing result |
| warnings | array | List of warning messages |
| errors | array | List of error messages |
API specific Error Code
| Error Code | Description | Reason |
|---|---|---|
| 500 | All requests have failed due to errors | Invalid endpoint |
| 404 | Incorrect resource | The server cannot locate the requested resource |
| 401 | Please check your username/password or authentication token | Missing/wrong API key, OAuth token, or Basic Auth headers |
