Skip to main content
Returns all features defined in a project, including countable data for usage-based and limit-type features.

Endpoint

GET /api/v1/projects/{slug}/features

Authentication

Authorization
string
required
Bearer token with your API key. Requires read or read_write permission.

Path Parameters

slug
string
required
The project’s URL-friendly slug identifier.

Response

features
array
List of feature objects.

Example

curl https://cuprice.io/api/v1/projects/my-saas-app/features \
  -H "Authorization: Bearer cpk_your_key_here"
{
  "features": [
    {
      "id": 101,
      "name": "AI Prompts",
      "description": "Monthly AI prompt allowance",
      "basePrice": 10,
      "featureType": "Limits",
      "isCountable": true,
      "countableData": {
        "usageCount": 500,
        "condition": "Up to",
        "countPrice": 0.02,
        "eventAggregationMethod": "count"
      },
      "createdAt": "2025-09-15T10:35:00.000Z",
      "updatedAt": "2025-09-15T10:35:00.000Z"
    },
    {
      "id": 102,
      "name": "Team Members",
      "description": "Number of team seats included",
      "basePrice": 5,
      "featureType": "Standart",
      "isCountable": false,
      "countableData": null,
      "createdAt": "2025-09-15T10:36:00.000Z",
      "updatedAt": "2025-09-15T10:36:00.000Z"
    },
    {
      "id": 103,
      "name": "API Calls",
      "description": "Monthly API request quota",
      "basePrice": 15,
      "featureType": "Usage Based",
      "isCountable": true,
      "countableData": {
        "usageCount": 10000,
        "condition": "Up to",
        "countPrice": 0.001,
        "eventAggregationMethod": "count"
      },
      "createdAt": "2025-09-15T10:37:00.000Z",
      "updatedAt": "2025-09-15T10:37:00.000Z"
    }
  ]
}

Errors

StatusDescription
401Invalid or missing API key
404Project with the given slug not found