curl --request POST \
--url https://api.example.com/v1/sdk/meter-events/bulk \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"customerId": "cus_ABC123",
"meterName": "requests",
"properties": {
"endpoint": "/api/v1/search",
"region": "us-east-1"
},
"timestamp": "<string>",
"value": 1
}
]
}
'{
"inserted": 50,
"success": true
}Records multiple usage events in a single request for high throughput.
curl --request POST \
--url https://api.example.com/v1/sdk/meter-events/bulk \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"customerId": "cus_ABC123",
"meterName": "requests",
"properties": {
"endpoint": "/api/v1/search",
"region": "us-east-1"
},
"timestamp": "<string>",
"value": 1
}
]
}
'{
"inserted": 50,
"success": true
}