---
title: "Mask a string"
method: POST
path: "/anonymize/mask"
tags: ["Anonymizer"]
---

# Mask a string

`POST /anonymize/mask`

## Request

- Base URL: `https://abundanceapis.com`
- URL: `https://abundanceapis.com/anonymize/mask`
- Auth: none declared

Mask a string according to strategy, with special handling for emails.

## Request body

- object
  - `value` string, required
  - `strategy` 'partial' | 'full'
  - `keepStart` integer
  - `keepEnd` integer
  - `maskChar` string

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/abundanceapis/apis/web-toolbox.md) · [All operations](https://skmtc.dev/abundanceapis/apis/web-toolbox/llms.txt) · [OpenAPI document](https://skmtc.dev/abundanceapis/apis/web-toolbox/revisions/ada2893fef43?raw)
