Split Segments

Get segments and features

Retrieve split segments and the features associated with it

get/workspaces/{workspace_id}/split-segments

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/split-segments
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4

Response

List segments

segmentsobject required

A dictionary where keys are segment names and values are lists of feature names.

Example response

{
  "segments": {
    "summary": "Sample Segments Response",
    "value": {
      "Alpha": {
        "features": [
          {
            "name": "aiConditionBuilder",
            "description": "Use AI to create a condition on condition builder"
          }
        ],
        "status": true
      },
      "Beta": {
        "features": [
          {
            "name": "aiConditionBuilder",
            "description": "Use AI to create a condition on condition builder"
          }
        ],
        "status": false
      }
    }
  }
}

Changes

No recorded changes to this operation across all 3 revisions of this API.