Organizations

Get organization feature flags

Retrieve all feature flags configured for an organization, including org-level summary maps and active merchants by flag.

get/api/v1/organizations/{organizationId}/feature-flags

Request

  • Base URL: https://api-sandbox.koywe.com
  • URL: https://api-sandbox.koywe.com/api/v1/organizations/{organizationId}/feature-flags
  • Auth: HTTP bearer

Path parameters

organizationIdstring required
Example:org_abc123

Organization identifier

Response

Organization feature flags retrieved successfully

organizationIdstring required
flagsMapobject required

Org-level feature summary (true if any merchant has the flag active)

merchantsByFlagobject required

Merchant IDs per flag where the flag is currently active

Example response

{
  "organizationId": "org_abc123",
  "featureFlags": [
    {
      "id": "ffm_abc123-def456",
      "organizationId": "org_abc123",
      "merchantId": "mrc_abc123",
      "flagCode": "CRYPTO_ENABLED",
      "isActive": true,
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ],
  "flagsMap": {
    "CRYPTO_ENABLED": false
  },
  "merchantsByFlag": {
    "CRYPTO_ENABLED": [
      "mrc_abc123"
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.