---
title: "Transcribe and redact PII/PHI from an audio file"
method: POST
path: "/api/velma-2-pii-phi-redaction-batch"
---

# Transcribe and redact PII/PHI from an audio file

`POST /api/velma-2-pii-phi-redaction-batch`

Transcribe an audio file, detect PII/PHI in the transcript, redact the text, and
silence the corresponding audio ranges. Returns a multipart response containing
redacted metadata (JSON) and redacted audio (MP3).

## Response `200`

Redaction completed successfully

## Other responses

- `400` — Bad request - Invalid input
- `403` — Forbidden - the request is not permitted
- `422` — Unprocessable Entity - A required request field is missing or malformed (e.g. the API key header or the audio file)
- `429` — Too many requests - the request could not be completed due to insufficient credits
- `500` — Internal server error
- `502` — Bad gateway - the request could not be validated

---

[API](https://skmtc.dev/modulate/apis/velma-2-accent-batch-api.md) · [All operations](https://skmtc.dev/modulate/apis/velma-2-accent-batch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/modulate/velma-2-accent-batch-api/revisions/b4c9ce648efa/schema)
