API Reference
Auto-generated
Beta Features
API reference for beta features endpoints.
Auto-generated
This page was generated from the OpenAPI spec. Run
make generate-docs to refresh after spec changes.GET /api/v1/beta-features
GET
/api/v1/beta-featuresList available beta features
Request Example
Bash
curl -X GET https://api.alterlab.io/api/v1/beta-features \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"features": [],
"total": 0
}GET /api/v1/beta-features/admin-preview
GET
/api/v1/beta-features/admin-previewGet my admin hidden-feature preview switch
Request Example
Bash
curl -X GET https://api.alterlab.io/api/v1/beta-features/admin-preview \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"enabled": true
}PUT /api/v1/beta-features/admin-preview
PUT
/api/v1/beta-features/admin-previewSet my admin hidden-feature preview switch
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| enabled | boolean | Required | Whether hidden features appear in the admin's profile. |
Request Example
Bash
curl -X PUT https://api.alterlab.io/api/v1/beta-features/admin-preview \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'Response Example
JSON
{
"enabled": true
}GET /api/v1/beta-features/my
GET
/api/v1/beta-features/myList my enabled beta features
Request Example
Bash
curl -X GET https://api.alterlab.io/api/v1/beta-features/my \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"features": []
}POST /api/v1/beta-features/{slug}/disable
POST
/api/v1/beta-features/{slug}/disableDisable a beta feature
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | Required | slug |
Request Example
Bash
curl -X POST https://api.alterlab.io/api/v1/beta-features/<slug>/disable \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"feature_slug": "example",
"enabled": true,
"message": "example"
}POST /api/v1/beta-features/{slug}/enable
POST
/api/v1/beta-features/{slug}/enableEnable a beta feature
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | Required | slug |
Request Example
Bash
curl -X POST https://api.alterlab.io/api/v1/beta-features/<slug>/enable \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response Example
JSON
{
"feature_slug": "example",
"enabled": true,
"message": "example"
}