Autumn's V2 API is live in beta. We recommend using this version.
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.usage({
customer_id: 'x',
feature_id: 'feature_id',
value: 0,
});{
"success": true
}Set usage for a feature. This is similar to /track instead of incrementing usage, it sets the usage value to exactly what is provided.
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.usage({
customer_id: 'x',
feature_id: 'feature_id',
value: 0,
});{
"success": true
}Documentation Index
Fetch the complete documentation index at: https://docs-v1.useautumn.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the customer.
The ID of the feature to set usage for.
The value you want to set this customer's usage of the feature to.
The ID of the entity to set usage for.
Customer details to set when creating a customer
Show child attributes