List All Feature Flags
GET
/api/v1/features
const url = 'https://indepai.app/api/v1/features';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://indepai.app/api/v1/features \ --header 'Authorization: Bearer <token>'Get all feature flags and their enabled status for the current user
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Feature flags
Media typeapplication/json
object
success
required
boolean
data
required
Map of feature flag keys to enabled status
object
key
additional properties
boolean
meta
required
object
timestamp
required
Timestamp in ISO 8601 format
string format: date-time
userId
User ID used for evaluation
string format: uuid
Example
{ "success": true, "data": { "fi-calculator": true, "api-access": false, "beta-features": true }, "meta": { "timestamp": "2024-01-15T10:30:00Z", "userId": "550e8400-e29b-41d4-a716-446655440000" }}Unauthorized
Media typeapplication/json
object
success
required
Always false for error responses
boolean
error
required
Error type
string
code
Machine-readable error code
string
details
Detailed validation errors
Array<object>
object
path
required
Path to the invalid field
string
message
required
Error message
string
Example
{ "success": false, "error": "Validation error", "code": "VALIDATION_ERROR", "details": [ { "path": "currentAge", "message": "Must be between 18 and 100" } ]}