import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const feature = await client.v1.features.retrieveFeature('x');
console.log(feature.data);{
"data": {
"id": "feature-api-calls",
"displayName": "API Calls",
"description": "Number of API calls allowed per month",
"featureType": "NUMBER",
"meterType": "INCREMENTAL",
"featureUnits": "call",
"featureUnitsPlural": "calls",
"featureStatus": "ACTIVE",
"unitTransformation": null,
"enumConfiguration": null,
"metadata": {},
"createdAt": "2027-01-19T15:47:43.247Z",
"updatedAt": "2026-03-02T10:19:46.052Z"
}
}Retrieves a feature by its unique identifier.
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const feature = await client.v1.features.retrieveFeature('x');
console.log(feature.data);{
"data": {
"id": "feature-api-calls",
"displayName": "API Calls",
"description": "Number of API calls allowed per month",
"featureType": "NUMBER",
"meterType": "INCREMENTAL",
"featureUnits": "call",
"featureUnitsPlural": "calls",
"featureStatus": "ACTIVE",
"unitTransformation": null,
"enumConfiguration": null,
"metadata": {},
"createdAt": "2027-01-19T15:47:43.247Z",
"updatedAt": "2026-03-02T10:19:46.052Z"
}
}