The FeatBit Agent provides several REST API endpoints for managing the agent's data and status. These endpoints are primarily used for manual mode operations and administrative tasks.
All API endpoints require authentication using an API key. The API key must be included in the request headers:
Authorization: <your-api-key>Retrieves the current operational status of the FeatBit agent.
GET /api/proxy/status{
"serves": "p1:dev,p2:dev,p3:dev",
"dataVersion": 1234567890,
"syncState": "Stable",
"lastSyncedAt": "2023-10-01T12:00:00Z",
"reportedAt": "2025-07-07T12:00:00Z"
}| Field | Type | Description |
|---|---|---|
serves |
string | List of environments now being served |
dataVersion |
number | Latest data timestamp (in milliseconds) stored in the agent |
syncState |
string | Data synchronizer status (None, Starting, Interrupted, Stable, Stopped). For manual mode, this value will always be None |
lastSyncedAt |
string | Last time the data synchronizer synchronized data. For manual mode, this value will always be null |
reportedAt |
string | Current time when the agent reported its status |
curl -H "Authorization: your-api-key" \
http://localhost:6100/api/proxy/statusPopulates the agent with feature flag and segment data. This endpoint is primarily used in manual mode to populate or update the agent's data store.
POST /api/proxy/bootstrapThe request body should contain a complete dataset in JSON format:
{
"eventType": "rp-full",
"items": [
{
"envId": "env-001",
"secrets": [ ... ],
"featureFlags": [ ... ],
"segments": [ ... ]
}
]
}{
"serves": "p1:dev,p2:dev,p3:dev",
"dataVersion": 1234567890
}| Field | Type | Description |
|---|---|---|
serves |
string | List of environments now being served |
dataVersion |
number | Latest data timestamp (in milliseconds) stored in the agent |
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: your-api-key" \
-d @data.json \
http://localhost:6100/api/proxy/bootstrap- After successful bootstrapping, all connected SDKs will be notified of data changes
- The agent will immediately start serving the new configuration
- This operation replaces all existing data in the agent's store
Exports the complete current state of the agent's data store.
GET /api/proxy/backupReturns a complete snapshot of all stored data in the same format as the bootstrap endpoint accepts:
{
"eventType": "rp-full",
"items": [
{
"envId": "env-001",
"secrets": [ ... ],
"featureFlags": [...],
"segments": [...]
}
]
}curl -H "Authorization: your-api-key" \
http://localhost:6100/api/proxy/backup > backup.json- Data Migration: Move data between agent instances
- Disaster Recovery: Create periodic backups for restoration
- Air-gapped Deployments: Export data for offline environments
- Development: Create test datasets from production data