Home
Version 3
Feature Flags API

Feature Flags API

Get all feature flags

GET /v2/config/feature_flags

Request

Route

GET /v2/config/feature_flags

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtOTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk4M30.WS36GSiI5fSuhgp4LEAGXtZ9LsiFvH9HFwlTop9eiCg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtOTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk4M30.WS36GSiI5fSuhgp4LEAGXtZ9LsiFvH9HFwlTop9eiCg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

[
  {
    "name": "user_org_creation",
    "enabled": false,
    "error_message": null,
    "url": "/v2/config/feature_flags/user_org_creation"
  },
  {
    "name": "private_domain_creation",
    "enabled": false,
    "error_message": "foobar",
    "url": "/v2/config/feature_flags/private_domain_creation"
  },
  {
    "name": "app_bits_upload",
    "enabled": true,
    "error_message": null,
    "url": "/v2/config/feature_flags/app_bits_upload"
  },
  {
    "name": "app_scaling",
    "enabled": true,
    "error_message": null,
    "url": "/v2/config/feature_flags/app_scaling"
  },
  {
    "name": "route_creation",
    "enabled": true,
    "error_message": null,
    "url": "/v2/config/feature_flags/route_creation"
  },
  {
    "name": "service_instance_creation",
    "enabled": true,
    "error_message": null,
    "url": "/v2/config/feature_flags/service_instance_creation"
  }
]

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0baa57f1-949c-4a84-80a6-caf19a5cb5d0
Content-Length: 890
X-Content-Type-Options: nosniff