Ingest events
1 min
POST
https://app.amberflo.io/ingest
bodyarray
200Successful request
curl --request POST \
--url https://app.amberflo.io/ingest \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '[
{
"meterTimeInMillis": 0,
"customerId": ""
}
]'Use this endpoint to ingest meter records.
You can also send an array of records. For instance:
[{
"customerId": "customer-123",
"meterApiName": "ComputeHours",
"meterValue": 5,
"meterTimeInMillis": 1619445706909,
"dimensions": {
"region": "us-west-2",
"az": "az1"
}
}, {
...
}]We also support the NDJSON format, where each record is separated by a newline. For instance:
{ "customerId": "customer-123", "meterApiName": "ComputeHours", "meterValue": 5, "meterTimeInMillis": 1619445706909 }
{ "customerId": "customer-321", "meterApiName": "ComputeHours", "meterValue": 4, "meterTimeInMillis": 1619445712341 }
{ "customerId": "customer-123", "meterApiName": "ComputeHours", "meterValue": 1, "meterTimeInMillis": 1619445783456 }