Skip to main content
GET
/
features
/
{feature_id}
TypeScript
import { Autumn } from 'autumn-js';

const autumn = new Autumn();

const feature = await autumn.features.get('feature_id');

console.log(feature.id);
{
  "id": "tokens",
  "name": "Tokens",
  "type": "single_use",
  "display": {
    "singular": "token",
    "plural": "tokens"
  },
  "credit_schema": null,
  "archived": false
}

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 | null

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.