# SecurePass API

Source: https://docs.autessa.com/docs/reference/securepass

> SecurePass call redaction jobs and items Generated from the Autessa OpenAPI spec.

# SecurePass API

SecurePass call redaction jobs and items

- **Base URL:** `https://api.autessa.com`
- **Auth:** your API key in the `Authorization` header, with no `Bearer` prefix.
- **Guide:** [SecurePass](/docs/features/securepass.md)
- **Status:** all 19 operations are live.

---

## Role policies for reading your bucket

**GET** `/clients/call-redaction/bucket-access`

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `externalId` | string |  |  |
| `permissionsPolicy` | object |  |  |
| `trustPolicy` | object |  |  |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/bucket-access" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Verify redaction evidence

**POST** `/clients/call-redaction/evidence/verify`

Send an evidence document as returned. valid is true when it was signed with this company's evidence key (any of its versions, so evidence signed before a key rotation still verifies) over exactly this content.

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `evidenceVersion` | integer |  |  |
| `externalId` | string or null |  |  |
| `generatedAt` | string |  |  |
| `itemId` | string |  |  |
| `jobId` | string |  |  |
| `kind` | string |  |  |
| `reason` | string |  | Why the evidence is UNAVAILABLE or FAILED. |
| `recording` | object |  |  |
| `redactionVersions` | object |  |  |
| `redactions` | array of object |  |  |
| `redactionsByType` | object |  |  |
| `review` | object |  |  |
| `signature` | EvidenceSignature |  |  |
| `status` | VERIFYING \| READY \| UNAVAILABLE \| FAILED |  |  |
| `typesRequested` | array of string |  |  |
| `verification` | object |  | The second pass: the redacted audio transcribed again, digits still heard per span. |
| `verificationVersions` | object |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `itemId` | string |  |  |
| `valid` | boolean |  | Signed with this company's key (any of its versions) over exactly this content. |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/evidence/verify" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"evidenceVersion":1}'
```

---

## Get the most recent item with your externalId

**GET** `/clients/call-redaction/items`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `externalId` | query | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channels` | integer or null |  |  |
| `completedAt` | string or null |  |  |
| `createdAt` | string or null |  |  |
| `deliveredAudioUri` | string or null |  |  |
| `deliveredTranscriptUri` | string or null |  |  |
| `durationSeconds` | number or null |  |  |
| `errorCode` | string or null |  | LINK_EXPIRED, ACCESS_DENIED, NOT_AUDIO, TOO_LARGE, UNREACHABLE, INVALID_URL, TRANSCRIPTION_UNAVAILABLE, NO_RESULT, FETCH_TIMED_OUT, INTERNAL_ERROR, ... |
| `errorMessage` | string or null |  |  |
| `externalId` | string or null |  |  |
| `itemId` | string |  |  |
| `jobId` | string |  |  |
| `purgedAt` | string or null |  | PURGED items only. |
| `receivedChunks` | integer |  | Chunked items while RECEIVING: chunks received so far (all channels). |
| `redactedAudioUrl` | string or null |  | Presigned link to the redacted audio. |
| `redactions` | array of RedactSpan |  |  |
| `review` | RedactReview |  |  |
| `speakerSeparation` | string or boolean or null |  |  |
| `status` | RECEIVING \| QUEUED \| FETCHING \| TRANSCRIBING \| COMPLETED \| FAILED \| PURGED |  | RECEIVING: a chunked item still being uploaded. |
| `transcriptUrl` | string or null |  | Presigned link to the redacted transcript JSON. |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/items" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Create a chunked item

**POST** `/clients/call-redaction/items`

Full-audio redaction with chunked upload: create, append chunks, finalize. Nothing is redacted until finalize; the whole recording is then processed.

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `audioRedaction` | SILENCE \| TONE |  | Default SILENCE. |
| `channels` | 1 \| 2 |  | 1 (default) or 2; 2 only for mulaw and pcm16 (one chunk stream per channel). |
| `externalId` | string |  |  |
| `format` | mulaw \| pcm16 \| wav \| opus | Yes |  |
| `keep` | array of string or RedactKeepEntry |  | Values never to redact, such as your own phone numbers, address, website or email: each text, or {value, type}. |
| `language` | en \| es \| auto |  |  |
| `paymentSegment` | boolean |  | With card types, silence the whole payment stretch (default true). |
| `redact` | array of CARD_NUMBER \| CARD_EXPIRY \| CARD_CVV \| SSN \| BANK_ACCOUNT \| ACCOUNT_NUMBER \| DATE_OF_BIRTH \| PHONE \| EMAIL \| ADDRESS \| NAME \| MRN \| HEALTH_PLAN_ID \| HEALTH_PLAN_GROUP \| MEDICARE_MBI \| MEDICAID_ID \| RX_NUMBER \| CLAIM_NUMBER \| MEDICATION \| MEDICAL_CONDITION \| PROVIDER_NAME \| DATE_OF_SERVICE \| NATIONAL_ID_MX \| NATIONAL_ID_ES \| NATIONAL_ID_OTHER |  | Default: every type that is on for the company. |
| `redactAllChannels` | boolean |  | Silence each span on both channels of a dual-channel call (default false). |
| `retainOriginalDays` | 0 \| 1 \| 7 \| 30 |  | Days the source audio is kept: 0 (default), 1, 7 or 30. |
| `retention` | RedactRetention |  |  |
| `sampleRateHz` | integer | Yes |  |
| `tuning` | object |  | Processing settings: precision, neuralVad, enhance, secondAsr, maxClipSeconds, redactCardTail, mode (fast or thorough; default fast). |
| `types` | array of CARD_NUMBER \| CARD_EXPIRY \| CARD_CVV \| SSN \| BANK_ACCOUNT \| ACCOUNT_NUMBER \| DATE_OF_BIRTH \| PHONE \| EMAIL \| ADDRESS \| NAME \| MRN \| HEALTH_PLAN_ID \| HEALTH_PLAN_GROUP \| MEDICARE_MBI \| MEDICAID_ID \| RX_NUMBER \| CLAIM_NUMBER \| MEDICATION \| MEDICAL_CONDITION \| PROVIDER_NAME \| DATE_OF_SERVICE \| NATIONAL_ID_MX \| NATIONAL_ID_ES \| NATIONAL_ID_OTHER |  | Same as redact. Send either one; if both are sent they must list the same types. |
| `vocabulary` | RedactVocabulary |  |  |
| `webhookUrl` | string |  | https endpoint POSTed the result (signed like the evaluations webhooks). |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `itemId` | string |  |  |
| `status` | RECEIVING |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/items" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format":"mulaw","sampleRateHz":8000}'
```

---

## Get one item

**GET** `/clients/call-redaction/items/{itemId}`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channels` | integer or null |  |  |
| `completedAt` | string or null |  |  |
| `createdAt` | string or null |  |  |
| `deliveredAudioUri` | string or null |  |  |
| `deliveredTranscriptUri` | string or null |  |  |
| `durationSeconds` | number or null |  |  |
| `errorCode` | string or null |  | LINK_EXPIRED, ACCESS_DENIED, NOT_AUDIO, TOO_LARGE, UNREACHABLE, INVALID_URL, TRANSCRIPTION_UNAVAILABLE, NO_RESULT, FETCH_TIMED_OUT, INTERNAL_ERROR, ... |
| `errorMessage` | string or null |  |  |
| `externalId` | string or null |  |  |
| `itemId` | string |  |  |
| `jobId` | string |  |  |
| `purgedAt` | string or null |  | PURGED items only. |
| `receivedChunks` | integer |  | Chunked items while RECEIVING: chunks received so far (all channels). |
| `redactedAudioUrl` | string or null |  | Presigned link to the redacted audio. |
| `redactions` | array of RedactSpan |  |  |
| `review` | RedactReview |  |  |
| `speakerSeparation` | string or boolean or null |  |  |
| `status` | RECEIVING \| QUEUED \| FETCHING \| TRANSCRIBING \| COMPLETED \| FAILED \| PURGED |  | RECEIVING: a chunked item still being uploaded. |
| `transcriptUrl` | string or null |  | Presigned link to the redacted transcript JSON. |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Delete everything stored for an item

**DELETE** `/clients/call-redaction/items/{itemId}`

503 PURGE_INCOMPLETE when storage deletion did not finish: call again.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |
| `waitSeconds` | query | integer |  | Wait for an in-progress item first (409 ITEM_IN_PROGRESS otherwise). |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `alreadyPurged` | boolean |  |  |
| `deletedObjects` | integer |  |  |
| `itemId` | string |  |  |
| `purgedAt` | string or null |  |  |
| `status` | PURGED |  |  |

```bash
curl -X DELETE "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Upload one chunk

**PUT** `/clients/call-redaction/items/{itemId}/chunks/{seq}`

Idempotent per (seq, channel): re-sending the same chunk is safe.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |
| `seq` | path | integer | Yes | 0-based chunk sequence number. |
| `channel` | query | integer |  |  |

**Request body:** raw bytes (`application/octet-stream`).

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bytes` | integer |  |  |
| `channel` | integer |  |  |
| `itemId` | string |  |  |
| `seq` | integer |  |  |
| `status` | string |  |  |

```bash
curl -X PUT "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5/chunks/0" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @chunk-0000.raw
```

---

## Get signed redaction evidence

**GET** `/clients/call-redaction/items/{itemId}/evidence`

What was redacted by type and time span (never a value), the second-pass verification (the redacted audio transcribed again), model and rule versions, timestamps, and an HMAC-SHA256 signature. ?format=pdf returns the same as a PDF with the signed JSON attached. 202 with status VERIFYING until the second pass finishes (?waitSeconds=0-120 waits). 409 ITEM_IN_PROGRESS before the item is redacted.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |
| `format` | query | string |  |  |
| `waitSeconds` | query | integer |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `evidenceVersion` | integer |  |  |
| `externalId` | string or null |  |  |
| `generatedAt` | string |  |  |
| `itemId` | string |  |  |
| `jobId` | string |  |  |
| `kind` | string |  |  |
| `reason` | string |  | Why the evidence is UNAVAILABLE or FAILED. |
| `recording` | object |  |  |
| `redactionVersions` | object |  |  |
| `redactions` | array of object |  |  |
| `redactionsByType` | object |  |  |
| `review` | object |  |  |
| `signature` | EvidenceSignature |  |  |
| `status` | VERIFYING \| READY \| UNAVAILABLE \| FAILED |  |  |
| `typesRequested` | array of string |  |  |
| `verification` | object |  | The second pass: the redacted audio transcribed again, digits still heard per span. |
| `verificationVersions` | object |  |  |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5/evidence" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Finish uploading and queue redaction

**POST** `/clients/call-redaction/items/{itemId}/finalize`

totalChunks is optional: a whole number, or per channel as {"0": n, "1": m}. 422 MISSING_CHUNKS lists every missing {channel, seq}. A repeat call answers the same 202.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `totalChunks` | integer or RedactChunksByChannel |  | How many chunks were sent: a whole number (channel 0, or a one-channel item), or per channel as {"0": n, "1": m}. Optional; when sent, missing seqs below it are reported. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `itemId` | string |  |  |
| `status` | QUEUED |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5/finalize" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"totalChunks":1}'
```

---

## Approve or redact more

**POST** `/clients/call-redaction/items/{itemId}/review`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `decision` | APPROVED \| REDACTED_MORE | Yes |  |
| `note` | string |  |  |
| `ranges` | array of RedactRange |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channels` | integer or null |  |  |
| `completedAt` | string or null |  |  |
| `createdAt` | string or null |  |  |
| `deliveredAudioUri` | string or null |  |  |
| `deliveredTranscriptUri` | string or null |  |  |
| `durationSeconds` | number or null |  |  |
| `errorCode` | string or null |  | LINK_EXPIRED, ACCESS_DENIED, NOT_AUDIO, TOO_LARGE, UNREACHABLE, INVALID_URL, TRANSCRIPTION_UNAVAILABLE, NO_RESULT, FETCH_TIMED_OUT, INTERNAL_ERROR, ... |
| `errorMessage` | string or null |  |  |
| `externalId` | string or null |  |  |
| `itemId` | string |  |  |
| `jobId` | string |  |  |
| `purgedAt` | string or null |  | PURGED items only. |
| `receivedChunks` | integer |  | Chunked items while RECEIVING: chunks received so far (all channels). |
| `redactedAudioUrl` | string or null |  | Presigned link to the redacted audio. |
| `redactions` | array of RedactSpan |  |  |
| `review` | RedactReview |  |  |
| `speakerSeparation` | string or boolean or null |  |  |
| `status` | RECEIVING \| QUEUED \| FETCHING \| TRANSCRIBING \| COMPLETED \| FAILED \| PURGED |  | RECEIVING: a chunked item still being uploaded. |
| `transcriptUrl` | string or null |  | Presigned link to the redacted transcript JSON. |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5/review" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision":"APPROVED"}'
```

---

## Audio and transcript for review

**GET** `/clients/call-redaction/items/{itemId}/review-media`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `itemId` | path | string | Yes |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresInSeconds` | integer |  |  |
| `item` | RedactItem |  |  |
| `itemId` | string |  |  |
| `redactedAudioUrl` | string |  |  |
| `transcript` | object |  |  |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/items/V1StGXR8Z5/review-media" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## List batch jobs (newest first)

**GET** `/clients/call-redaction/jobs`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer |  |  |
| `after` | query | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `jobs` | array of RedactJob |  |  |
| `next` | string or null |  | Pass as `after` for the next page. |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/jobs" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Queue a batch of recordings

**POST** `/clients/call-redaction/jobs`

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `audioRedaction` | SILENCE \| TONE |  | Default SILENCE. |
| `fetchAuth` | RedactFetchAuth |  |  |
| `items` | array of RedactJobItemSource |  | At most 1,000 recordings. |
| `keep` | array of string or RedactKeepEntry |  | Values never to redact, such as your own phone numbers, address, website or email: each text, or {value, type}. |
| `manifestUploadId` | string |  |  |
| `manifestUrl` | string |  | https link to a JSONL manifest of {audioUrl, externalId} lines. |
| `output` | RedactOutput |  | Also deliver the redacted audio into your bucket (needs sourceRoleArn). |
| `paymentSegment` | boolean |  | With card types, silence the whole payment stretch (default true). |
| `redact` | array of CARD_NUMBER \| CARD_EXPIRY \| CARD_CVV \| SSN \| BANK_ACCOUNT \| ACCOUNT_NUMBER \| DATE_OF_BIRTH \| PHONE \| EMAIL \| ADDRESS \| NAME \| MRN \| HEALTH_PLAN_ID \| HEALTH_PLAN_GROUP \| MEDICARE_MBI \| MEDICAID_ID \| RX_NUMBER \| CLAIM_NUMBER \| MEDICATION \| MEDICAL_CONDITION \| PROVIDER_NAME \| DATE_OF_SERVICE \| NATIONAL_ID_MX \| NATIONAL_ID_ES \| NATIONAL_ID_OTHER |  | Default: every type that is on for the company. |
| `redactAllChannels` | boolean |  | Silence each span on both channels of a dual-channel call (default false). |
| `retainOriginalDays` | 0 \| 1 \| 7 \| 30 |  | Days the source audio is kept: 0 (default), 1, 7 or 30. |
| `retention` | RedactRetention |  |  |
| `s3Prefix` | string |  |  |
| `sourceRoleArn` | string |  |  |
| `tuning` | object |  | Processing settings: precision, neuralVad, enhance, secondAsr, maxClipSeconds, redactCardTail, mode (fast or thorough; default fast). |
| `types` | array of CARD_NUMBER \| CARD_EXPIRY \| CARD_CVV \| SSN \| BANK_ACCOUNT \| ACCOUNT_NUMBER \| DATE_OF_BIRTH \| PHONE \| EMAIL \| ADDRESS \| NAME \| MRN \| HEALTH_PLAN_ID \| HEALTH_PLAN_GROUP \| MEDICARE_MBI \| MEDICAID_ID \| RX_NUMBER \| CLAIM_NUMBER \| MEDICATION \| MEDICAL_CONDITION \| PROVIDER_NAME \| DATE_OF_SERVICE \| NATIONAL_ID_MX \| NATIONAL_ID_ES \| NATIONAL_ID_OTHER |  | Same as redact. Send either one; if both are sent they must list the same types. |
| `vocabulary` | RedactVocabulary |  | Words the transcript should spell your way. |
| `webhookPerItem` | boolean |  | POST webhookUrl once per recording instead of once per job. |
| `webhookUrl` | string |  | https endpoint POSTed the result (signed like the evaluations webhooks). |
| `zipS3Uri` | string |  |  |
| `zipUploadId` | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `itemCount` | integer |  |  |
| `items` | array of RedactItem |  |  |
| `jobId` | string |  |  |
| `manifest` | RedactJobManifest |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/jobs" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"audioRedaction":"SILENCE"}'
```

---

## Get a job with counts

**GET** `/clients/call-redaction/jobs/{jobId}`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `jobId` | path | string | Yes |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `audioRedaction` | string |  |  |
| `completedAt` | string or null |  |  |
| `counts` | object |  | Items per status, plus needsReview and reviewed. |
| `createdAt` | string |  |  |
| `createdBy` | string |  |  |
| `errorMessage` | string |  |  |
| `itemCount` | integer |  |  |
| `jobId` | string |  |  |
| `listing` | IN_PROGRESS \| DONE |  |  |
| `manifest` | RedactJobManifest |  |  |
| `operation` | string |  |  |
| `output` | RedactOutput |  |  |
| `paymentSegment` | boolean |  |  |
| `realtime` | boolean |  |  |
| `redact` | array of string |  |  |
| `redactAllChannels` | boolean |  |  |
| `resultsStatus` | BUILDING \| FAILED |  |  |
| `resultsUrl` | string |  | Presigned link to results.jsonl once written. |
| `retainOriginalDays` | integer |  |  |
| `retention` | RedactRetention |  |  |
| `source` | RedactJobSource |  |  |
| `status` | RUNNING \| COMPLETED |  |  |
| `webhookPerItem` | boolean |  |  |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/jobs/V1StGXR8Z5" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## List a job's items

**GET** `/clients/call-redaction/jobs/{jobId}/items`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `jobId` | path | string | Yes |  |
| `status` | query | string |  |  |
| `limit` | query | integer |  |  |
| `after` | query | string |  |  |
| `needsReview` | query | boolean |  | Only items flagged for review that nobody has decided yet. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of RedactItem |  |  |
| `next` | string or null |  | Pass as `after` for the next page. |
| `waiting` | integer |  | Review queue only: the total waiting (first page). |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/jobs/V1StGXR8Z5/items" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Re-run a job's FAILED items

**POST** `/clients/call-redaction/jobs/{jobId}/retry-failed`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `jobId` | path | string | Yes |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `jobId` | string |  |  |
| `retried` | integer |  | FAILED items re-opened (in the background). |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/jobs/V1StGXR8Z5/retry-failed" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Redact one recording and wait

**POST** `/clients/call-redaction/redact`

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `audioRedaction` | SILENCE \| TONE |  | Default SILENCE. |
| `audioUrl` | string |  | https link to the recording. One of audioUrl, uploadId or s3Uri. |
| `externalId` | string |  | Your id for the recording. |
| `fetchAuth` | RedactFetchAuth |  |  |
| `keep` | array of string or RedactKeepEntry |  | Values never to redact, such as your own phone numbers, address, website or email: each text, or {value, type}. |
| `output` | RedactOutput |  | Also deliver the redacted audio into your bucket (needs sourceRoleArn). |
| `paymentSegment` | boolean |  | With card types, silence the whole payment stretch (default true). |
| `redact` | array of CARD_NUMBER \| CARD_EXPIRY \| CARD_CVV \| SSN \| BANK_ACCOUNT \| ACCOUNT_NUMBER \| DATE_OF_BIRTH \| PHONE \| EMAIL \| ADDRESS \| NAME \| MRN \| HEALTH_PLAN_ID \| HEALTH_PLAN_GROUP \| MEDICARE_MBI \| MEDICAID_ID \| RX_NUMBER \| CLAIM_NUMBER \| MEDICATION \| MEDICAL_CONDITION \| PROVIDER_NAME \| DATE_OF_SERVICE \| NATIONAL_ID_MX \| NATIONAL_ID_ES \| NATIONAL_ID_OTHER |  | Default: every type that is on for the company. |
| `redactAllChannels` | boolean |  | Silence each span on both channels of a dual-channel call (default false). |
| `retainOriginalDays` | 0 \| 1 \| 7 \| 30 |  | Days the source audio is kept: 0 (default), 1, 7 or 30. |
| `retention` | RedactRetention |  |  |
| `s3Uri` | string |  | s3://bucket/key in your bucket, read in place through sourceRoleArn. |
| `sourceRoleArn` | string |  | Your role Autessa assumes (see bucket-access). |
| `tone` | boolean |  | Shorthand for audioRedaction TONE. |
| `tuning` | object |  | Processing settings: precision, neuralVad, enhance, secondAsr, maxClipSeconds, redactCardTail, mode (fast or thorough; default fast). |
| `types` | array of CARD_NUMBER \| CARD_EXPIRY \| CARD_CVV \| SSN \| BANK_ACCOUNT \| ACCOUNT_NUMBER \| DATE_OF_BIRTH \| PHONE \| EMAIL \| ADDRESS \| NAME \| MRN \| HEALTH_PLAN_ID \| HEALTH_PLAN_GROUP \| MEDICARE_MBI \| MEDICAID_ID \| RX_NUMBER \| CLAIM_NUMBER \| MEDICATION \| MEDICAL_CONDITION \| PROVIDER_NAME \| DATE_OF_SERVICE \| NATIONAL_ID_MX \| NATIONAL_ID_ES \| NATIONAL_ID_OTHER |  | Same as redact. Send either one; if both are sent they must list the same types. |
| `uploadId` | string |  | From POST /clients/call-redaction/uploads, once uploaded. |
| `vocabulary` | RedactVocabulary |  | Words the transcript should spell your way. |
| `waitSeconds` | integer |  | How long to wait for the result (default 120). Max 120. |
| `webhookUrl` | string |  | https endpoint POSTed the result (signed like the evaluations webhooks). |

Also accepts `multipart/form-data`:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `file` | string |  | The recording (at most 200 MB). |
| `options` | string |  | RedactRequest options as JSON text, without a source. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channels` | integer or null |  |  |
| `completedAt` | string or null |  |  |
| `createdAt` | string or null |  |  |
| `deliveredAudioUri` | string or null |  |  |
| `deliveredTranscriptUri` | string or null |  |  |
| `durationSeconds` | number or null |  |  |
| `errorCode` | string or null |  | LINK_EXPIRED, ACCESS_DENIED, NOT_AUDIO, TOO_LARGE, UNREACHABLE, INVALID_URL, TRANSCRIPTION_UNAVAILABLE, NO_RESULT, FETCH_TIMED_OUT, INTERNAL_ERROR, ... |
| `errorMessage` | string or null |  |  |
| `externalId` | string or null |  |  |
| `itemId` | string |  |  |
| `jobId` | string |  |  |
| `purgedAt` | string or null |  | PURGED items only. |
| `receivedChunks` | integer |  | Chunked items while RECEIVING: chunks received so far (all channels). |
| `redactedAudioUrl` | string or null |  | Presigned link to the redacted audio. |
| `redactions` | array of RedactSpan |  |  |
| `review` | RedactReview |  |  |
| `speakerSeparation` | string or boolean or null |  |  |
| `status` | RECEIVING \| QUEUED \| FETCHING \| TRANSCRIBING \| COMPLETED \| FAILED \| PURGED |  | RECEIVING: a chunked item still being uploaded. |
| `transcriptUrl` | string or null |  | Presigned link to the redacted transcript JSON. |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/redact" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"audioRedaction":"SILENCE"}'
```

---

## Calls waiting for review

**GET** `/clients/call-redaction/review`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer |  |  |
| `after` | query | string |  |  |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of RedactItem |  |  |
| `next` | string or null |  | Pass as `after` for the next page. |
| `waiting` | integer |  | Review queue only: the total waiting (first page). |

```bash
curl -X GET "https://api.autessa.com/clients/call-redaction/review" \
  -H "Authorization: $AUTESSA_API_KEY"
```

---

## Get presigned upload links

**POST** `/clients/call-redaction/uploads`

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `files` | array of RedactUploadFile |  |  |
| `uploadId` | string |  | Renew the link of this upload instead. |

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiresInSeconds` | integer |  |  |
| `maxBytes` | integer |  |  |
| `uploadMethod` | PUT |  |  |
| `uploads` | array of RedactUploadLink |  |  |

```bash
curl -X POST "https://api.autessa.com/clients/call-redaction/uploads" \
  -H "Authorization: $AUTESSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"files":[{"externalId":"string"}]}'
```

---

## Related

- [API reference overview](/docs/reference.md)
- [Errors and retries](/docs/reference.md#errors)
- [SecurePass guide](/docs/features/securepass.md)

