Home
Version 3
Feature Flags API

Feature Flags API

Get the User Org Creation feature flag

GET /v2/config/feature_flags/user_org_creation

When enabled, any user can create an organization via the API. When disabled, only admin users can create organizations via the API.

Request

Route

GET /v2/config/feature_flags/user_org_creation

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk2IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4Mzk0fQ.bOhfE2ESg-4lYfcsBac9ULOL96EeXvhW1qrvQRmjqP4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags/user_org_creation" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk2IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4Mzk0fQ.bOhfE2ESg-4lYfcsBac9ULOL96EeXvhW1qrvQRmjqP4" \
	-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"
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 34438a10-4361-4d85-a83a-46aaef71925d
Content-Length: 133
X-Content-Type-Options: nosniff