const { result, error } = await unprice.projects.getFeatures();
if (error) {
// handle potential network or bad request error
// a link to our docs will be in the `error.docs` field
console.error(error.message);
return;
}
console.log(result);
{
"features": [
{
"id": "feat_1234567890",
"slug": "feature_1",
"code": "FEATURE_1",
"title": "Feature 1",
"description": "Description of feature 1"
}
]
}
Request
No parameters required.
Response
Array of features in the project
The description of the feature