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.

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NSIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzZ9.I_Lky-bbPBoF4Gqg9SZYPkLBTl0Iexfv1FtpO4TEPzg
Host: example.org
Cookie: 

Route

GET /v2/config/feature_flags/user_org_creation

cURL

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

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0a8434ef-8d2c-4eec-ba68-5454517cf0d3
Content-Length: 133
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "name": "user_org_creation",
  "enabled": false,
  "error_message": null,
  "url": "/v2/config/feature_flags/user_org_creation"
}