# Note: The API Key value here is a fake example, storing
# in code is not recommended
base_url = "https://api.servicebell.com"
"X-Api-Key": "vMLmfTyh.uN4C-cBme8iBfHqmMSkOwdlH_gdFipxglxEdOS7pKSU",
"Content-Type": "application/json"
# Get the Organization ID tied to your API Key
response = requests.get(f"{base_url}/public/api/v1/org",
# Save the Organization ID from the response
org_id = response.json()["id"]
# Setup the Visitors we'd like to search/scrub
# Can be customId's or email addresses
# POST request to redact the information for those two visitors
# Note: Takes a JSON body with a list of the visitor identities
url = f"{base_url}/public/api/v1/org/{org_id}/visitorscrub"
response = requests.post(url, json={"identities": visitors},
# 'customMetadata': {'displayName': 'REDACTED'},
# 'id': '747a2bd8-d1aa-4736-beb5-1ebe142439f0',
# 'customMetadata': {'displayName': 'REDACTED'},
# 'id': 'b81085e2-ae40-4303-9050-9c38784c7454',