Flags API reference

Flags API · Segments

get/v1/workspaces/{workspace_id}/segments/{segment_id}/confidentialAuth

Reveal confidential values of a segment

The cleartext of the segment's confidential lists, decrypted. Needs `flags.confidential.read`; every call is recorded in the history (`confidential.revealed`). Never cached.

Path parameters

segment_id*string · uuid

Id of the segment.

workspace_id*string · uuid

Id of the workspace.

Response · 200 The confidential lists.

data*array

Every confidential list, in rule and condition order.

Example

Request

GET https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/segments/{segment_id}/confidential
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "rule_index": 0,
      "condition_index": 0,
      "attribute": "email",
      "comparator": "ends_with_any_hashed",
      "list_id": "00000000-0000-0000-0000-000000000000",
      "values": [
        "@acme.test"
      ],
      "revealable": true
    }
  ]
}