curl --request POST \
--url https://connect.withvayu.com/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"name": "api_call",
"timestamp": "2023-09-13T18:25:43.511Z",
"customerAlias": "customer_12345",
"ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"data": {
"key1": "processing_duration",
"key2": "api_url"
}
}
]
}
'{
"validEvents": [
{
"name": "api_call",
"timestamp": "2023-09-13T18:25:43.511Z",
"customerAlias": "customer_12345",
"ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"data": {
"key1": "processing_duration",
"key2": "api_url"
}
}
],
"invalidEvents": [
{
"event": {
"name": "api_call",
"timestamp": "2023-09-13T18:25:43.511Z",
"customerAlias": "customer_12345",
"ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"data": {
"key1": "processing_duration",
"key2": "api_url"
}
},
"error": "Event ref already exists."
}
]
}Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
curl --request POST \
--url https://connect.withvayu.com/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"name": "api_call",
"timestamp": "2023-09-13T18:25:43.511Z",
"customerAlias": "customer_12345",
"ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"data": {
"key1": "processing_duration",
"key2": "api_url"
}
}
]
}
'{
"validEvents": [
{
"name": "api_call",
"timestamp": "2023-09-13T18:25:43.511Z",
"customerAlias": "customer_12345",
"ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"data": {
"key1": "processing_duration",
"key2": "api_url"
}
}
],
"invalidEvents": [
{
"event": {
"name": "api_call",
"timestamp": "2023-09-13T18:25:43.511Z",
"customerAlias": "customer_12345",
"ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"data": {
"key1": "processing_duration",
"key2": "api_url"
}
},
"error": "Event ref already exists."
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
An array of events following the EventInput schema. This request body should be included in the PUT request to '/events' Up to 1000 events or a total payload max size of 256KB
1 - 1000 elementsShow child attributes
The distinctive label assigned to an event, serving as a critical identifier for categorizing and pricing events within the system's backend infrastructure.
"api_call"
The temporal marker denoting the exact moment of event occurrence. The timestamp is formatted as an ISO 8601 string and is expressed in Coordinated Universal Time (UTC). i.e. YYYY-MM-DDTHH:MM:SS.SSSZ
"2023-09-13T18:25:43.511Z"
A pseudonymous or otherwise obfuscated identifier uniquely assigned to each customer.
1"customer_12345"
A universally unique identifier (UUID) or other form of high-entropy string serving as an immutable reference for each event entry.
"4f6cf35x-2c4y-483z-a0a9-158621f77a21"
RequestSuccess
An array of events that were successfully processed and sent to the queue.
Show child attributes
The distinctive label assigned to an event, serving as a critical identifier for categorizing and pricing events within the system's backend infrastructure.
"api_call"
The temporal marker denoting the exact moment of event occurrence. The timestamp is formatted as an ISO 8601 string and is expressed in Coordinated Universal Time (UTC). i.e. YYYY-MM-DDTHH:MM:SS.SSSZ
"2023-09-13T18:25:43.511Z"
A pseudonymous or otherwise obfuscated identifier uniquely assigned to each customer.
1"customer_12345"
A universally unique identifier (UUID) or other form of high-entropy string serving as an immutable reference for each event entry.
"4f6cf35x-2c4y-483z-a0a9-158621f77a21"
An array of events that failed validation and were not sent to the queue. Each object contains the event and the error message.
Show child attributes
Show child attributes
The distinctive label assigned to an event, serving as a critical identifier for categorizing and pricing events within the system's backend infrastructure.
"api_call"
The temporal marker denoting the exact moment of event occurrence. The timestamp is formatted as an ISO 8601 string and is expressed in Coordinated Universal Time (UTC). i.e. YYYY-MM-DDTHH:MM:SS.SSSZ
"2023-09-13T18:25:43.511Z"
A pseudonymous or otherwise obfuscated identifier uniquely assigned to each customer.
1"customer_12345"
A universally unique identifier (UUID) or other form of high-entropy string serving as an immutable reference for each event entry.
"4f6cf35x-2c4y-483z-a0a9-158621f77a21"
The error message indicating the reason the event failed validation.
"Event ref already exists."