Synchronously ingest billable events
Accepts a single billable event and inserts it synchronously into the database.
Authentication
AuthorizationBearer
API key obtained from the Afternoon dashboard
Request
This endpoint expects an object.
event_name
Name of the event
idempotency_key
Unique key to prevent duplicate event processing
customer_id
Customer identifier
timestamp
Event timestamp in ISO 8601 UTC format (Z or +00:00)
properties
Additional event properties
Response
Events processed synchronously
success
status
Processing outcome for the submitted event
Allowed values:
request_id
Request ID for tracing
usage_id
Created or existing billable event ID
cost
Aggregated event cost by wallet denomination. Present on successful requests.
customer_balances
Current customer wallet balances across denominations after ingestion.
error
Errors
400
Bad Request Error
401
Unauthorized Error
413
Content Too Large Error
429
Too Many Requests Error
500
Internal Server Error
