v1

latestOpenAPI 3.0.3Apache 2.02026-07-13121230447.8 KB
Event Ingestion

Ingest events to Togai

This 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 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.

successboolean
statusCodeinteger
namestring
messagestring
codestring
detailsobject

Example response

{
  "success": true
}