/v1/workspaces/{workspace_id}/segments/{segment_id}/confidentialAuthReveal 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 · uuidId of the segment.
workspace_id*string · uuidId of the workspace.
Response · 200 The confidential lists.
data*arrayEvery 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_TOKENResponse
{
"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
}
]
}