Billing Events and Metrics
Ingest billable events
Ingests a batch of usage events for metering. Accepts up to 100 events per request. Each event must carry a unique unique_id for idempotency and may include arbitrary properties used by metric filters and aggregations.
POST
/
events
Ingest billable events
curl --request POST \
--url https://api.alguna.io/events \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"account": "cust_01H1VECT",
"event_name": "api_call",
"unique_id": "evt_abc123",
"properties": {},
"timestamp": "2026-04-01T10:00:00Z"
}
]
}
'import requests
url = "https://api.alguna.io/events"
payload = { "events": [
{
"account": "cust_01H1VECT",
"event_name": "api_call",
"unique_id": "evt_abc123",
"properties": {},
"timestamp": "2026-04-01T10:00:00Z"
}
] }
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Alguna-Version': '<alguna-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
events: [
{
account: 'cust_01H1VECT',
event_name: 'api_call',
unique_id: 'evt_abc123',
properties: {},
timestamp: '2026-04-01T10:00:00Z'
}
]
})
};
fetch('https://api.alguna.io/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"failed": [
"<string>"
],
"ingested": [
"<string>"
]
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Authorizations
API key authentication. Pass your API key as a Bearer token.
Headers
Available options:
2026-04-01 Body
application/json
Array of events to ingest. Maximum 100 events per request
Show child attributes
Show child attributes
⌘I
Ingest billable events
curl --request POST \
--url https://api.alguna.io/events \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"account": "cust_01H1VECT",
"event_name": "api_call",
"unique_id": "evt_abc123",
"properties": {},
"timestamp": "2026-04-01T10:00:00Z"
}
]
}
'import requests
url = "https://api.alguna.io/events"
payload = { "events": [
{
"account": "cust_01H1VECT",
"event_name": "api_call",
"unique_id": "evt_abc123",
"properties": {},
"timestamp": "2026-04-01T10:00:00Z"
}
] }
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Alguna-Version': '<alguna-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
events: [
{
account: 'cust_01H1VECT',
event_name: 'api_call',
unique_id: 'evt_abc123',
properties: {},
timestamp: '2026-04-01T10:00:00Z'
}
]
})
};
fetch('https://api.alguna.io/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"failed": [
"<string>"
],
"ingested": [
"<string>"
]
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}