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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MiIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MTB9.wV0vFL4qOv0hh8LVSIJZyHyOjuHGnLhcEci01C05_sk
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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MiIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MTB9.wV0vFL4qOv0hh8LVSIJZyHyOjuHGnLhcEci01C05_sk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 155d7531-bf86-407a-93e4-c8fc00cc7397
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"
}