Features

Get Feature

Retrieve a specific feature by ID. Returns the feature details along with any associated metric IDs.

GET
/features/{featureId}

Authorization

bearerAuth
AuthorizationBearer <token>

Use your secret API key as the bearer token

In: header

Path Parameters

featureId*string

Feature ID (e.g., feat_Lo4xGg1Yk9pB2eWv3sNtA)

Match^feat_[A-Za-z0-9]{22}$

Response Body

application/json

application/json

application/json

curl -X GET "https://api.getlumen.dev/v1/features/feat_Lo4xGg1Yk9pB2eWv3sNtA"
{
  "feature": {
    "id": "feat_Lo4xGg1Yk9pB2eWv3sNtA",
    "merchantId": "mer_abc123def456ghi789jkl",
    "slug": "max-api-calls",
    "displayName": "Max API Calls",
    "description": "Maximum API calls per month",
    "featureType": "number",
    "featureValue": 10000,
    "isOverrideFeature": false,
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z",
    "deletedAt": null
  },
  "metricIds": [
    {
      "id": "met_DQ6f7a8b9c0d1e2f3g4h5i",
      "name": "API Calls",
      "description": "Count of API calls",
      "queryType": "simple",
      "eventName": "api-call",
      "aggregationType": "COUNT",
      "valueType": "NUMERIC"
    }
  ]
}
{
  "error": "Feature not found"
}
{
  "error": "Failed to fetch feature"
}