Get a list of usage events with multiple query options
Changed onThis API let’s you to fetch a list of events with multiple query parameters
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Pagination token used as a marker to get records from next page.
Filter option to filter by status.
Filter option to filter based on account id.
Filter option to filter the events based on schema name.
Maximum page size expected by client to return the record list.
NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.
Response
Success response
Example response
{
"events": [
{
"eventPayload": {
"id": "c0b1306d-f506-43a6-856b-69221efaee6b",
"timestamp": "2022-06-15T07:30:35.123",
"attributes": [
{
"name": "message",
"unit": "characters"
}
]
},
"ingestionStatus": {
"status": "INGESTION_COMPLETED",
"statusDescription": "Ingestion Completed successfully"
},
"customerId": "1",
"createdAt": "2022-06-15T07:30:35.123"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEyMywgInNvcnRPcmRlciI6ICJhc2MifQ=="
}Changes
- breaking
the
////response property's maxLength was increased from50to200for the response status - warning
added the new
INGESTION_FAILED_INSUFFICIENT_CREDITSenum value to the///response property for the response status
- breaking
- warning
added the new
INGESTION_FAILED_INVALID_NAMED_LICENSE_EVENTenum value to the///response property for the response status
- warning