import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.features.list();{
"list": [
{
"id": "<string>",
"type": "boolean",
"name": "<string>",
"display": {
"singular": "<string>",
"plural": "<string>"
},
"credit_schema": [
{
"metered_feature_id": "<string>",
"credit_cost": 123
}
],
"archived": true
}
]
}import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.features.list();{
"list": [
{
"id": "<string>",
"type": "boolean",
"name": "<string>",
"display": {
"singular": "<string>",
"plural": "<string>"
},
"credit_schema": [
{
"metered_feature_id": "<string>",
"credit_cost": 123
}
],
"archived": true
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
The ID of the feature, used to refer to it in other API calls like /track or /check.
boolean, single_use, continuous_use, credit_system The name of the feature.
Whether or not the feature is archived.