TypeScript
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.events.list({ customer_id: 'customer_id', feature_id: 'x' });{
"list": [
{
"id": "evt_36xpk2TmuQX5zVPPQ8tCtnR5Weg",
"timestamp": 1765958215459,
"feature_id": "credits",
"customer_id": "0pCIbS4AMAFDB1iBMNhARWZt2gDtVwQx",
"value": 30,
"properties": {}
},
{
"id": "evt_36xmHxxjAkqxufDf9yHAPNfRrLM",
"timestamp": 1765956512057,
"feature_id": "credits",
"customer_id": "0pCIbS4AMAFDB1iBMNhARWZt2gDtVwQx",
"value": 49,
"properties": {}
}
],
"total": 2,
"has_more": false,
"offset": 0,
"limit": 100
}Events
List Events
POST
/
events
/
list
TypeScript
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.events.list({ customer_id: 'customer_id', feature_id: 'x' });{
"list": [
{
"id": "evt_36xpk2TmuQX5zVPPQ8tCtnR5Weg",
"timestamp": 1765958215459,
"feature_id": "credits",
"customer_id": "0pCIbS4AMAFDB1iBMNhARWZt2gDtVwQx",
"value": 30,
"properties": {}
},
{
"id": "evt_36xmHxxjAkqxufDf9yHAPNfRrLM",
"timestamp": 1765956512057,
"feature_id": "credits",
"customer_id": "0pCIbS4AMAFDB1iBMNhARWZt2gDtVwQx",
"value": 49,
"properties": {}
}
],
"total": 2,
"has_more": false,
"offset": 0,
"limit": 100
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Filter events by customer ID
Filter by specific feature ID(s)
Number of items to skip
Number of items to return. Default 100, max 1000.
Filter events by time range
Show child attributes
Show child attributes
Response
200 - application/json
Array of items for current page
Show child attributes
Show child attributes
Whether more results exist after this page
Current offset position
Limit passed in the request
Total number of items returned in the current page
⌘I

