curl --request POST \
--url https://api.useaira.com/v1/events/ingest \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"events": [
{
"idempotencyKey": "123e4567-e89b-12d3-a456-426614174000",
"eventName": "api_request",
"customerExternalId": "cust_1234567890abcdef",
"properties": {
"value": 3600,
"endpoint": "/api/v1/users",
"method": "GET",
"status_code": 200
},
"occurredAt": "2024-01-01T12:00:00Z"
}
]
}
'{}This endpoint allows ingesting events related to customer interactions with resources. Each event captures interactions at a specific point in time, including the event name and customer, the nature of the interaction (value), related properties and when it occurred.
curl --request POST \
--url https://api.useaira.com/v1/events/ingest \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"events": [
{
"idempotencyKey": "123e4567-e89b-12d3-a456-426614174000",
"eventName": "api_request",
"customerExternalId": "cust_1234567890abcdef",
"properties": {
"value": 3600,
"endpoint": "/api/v1/users",
"method": "GET",
"status_code": 200
},
"occurredAt": "2024-01-01T12:00:00Z"
}
]
}
'{}Documentation Index
Fetch the complete documentation index at: https://docs.useaira.com/llms.txt
Use this file to discover all available pages before exploring further.
API Key Authentication.
An object containing an array of events to be ingested.
An array of events to be ingested. Each event represents an usage of a resource from a customer at a specific point in time.
1 - 1000 elementsShow child attributes
The request was successfully processed and the events were recorded. No content is returned.
The response is of type object.