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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzJ9.ii1PNKHNFBzMlFJJfyg9E72qctX_-8OKMNxFR0FLZ3A
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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzJ9.ii1PNKHNFBzMlFJJfyg9E72qctX_-8OKMNxFR0FLZ3A" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 38ac3c29-7e55-403f-97b5-145021cc863b
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"
}