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"
    }
  ]
}
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

features
array
required

Array of features in the project

features[].id
string
required

The ID of the feature

features[].slug
string
required

The slug of the feature

features[].code
string
required

The code of the feature

features[].title
string
required

The title of the feature

features[].description
string
required

The description of the feature