Skip to main content
GET
/
features
/
{feature_id}
Get Feature
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.useautumn.com/v1/features/{feature_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "<string>",
  "type": "boolean",
  "name": "<string>",
  "display": {
    "singular": "<string>",
    "plural": "<string>"
  },
  "credit_schema": [
    {
      "metered_feature_id": "<string>",
      "credit_cost": 123
    }
  ],
  "archived": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

feature_id
string
required

Response

200 - application/json
id
string
required

The ID of the feature, used to refer to it in other API calls like /track or /check.

type
enum<string>
required
Available options:
boolean,
single_use,
continuous_use,
credit_system
name
string | null

The name of the feature.

display
object

Singular and plural display names for the feature.

credit_schema
object[] | null

Credit cost schema for credit system features.

archived
boolean | null

Whether or not the feature is archived.