Event Ingestion
Ingest events to Togai
Changed onThis API let’s you to ingest events to your Togai account. Events ingested using this API will be processed via associated usage meters and further via associated price plans to generate final billable value to invoice the customer Read more about Event Ingestion
post/ingest
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"event": {
"id": "c0b1306d-f506-43a6-856b-69221efaee6b",
"timestamp": "2022-06-15T07:30:35.123",
"attributes": [
{
"name": "message",
"unit": "characters"
}
]
}
}Response
Successfully accepted to process all the events from payload.
Example response
{
"success": true
}Changes
- info
the
//request property's maxLength was increased from50to200
- info
- breaking
the request property
became required
- breaking