---
title: "Clean up a dictated message"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clean up a dictated message

Path: CloudRaker Workspace API › My assistant

`POST /me/assistant/dictation/cleanup`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `text` (`cleanMyAssistantDictation.text`; string, required)
  - minLength 1; maxLength 8000

## Example request

```json
{
  "text": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/me/assistant/dictation/cleanup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/dictation/cleanup';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({text: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/me/assistant/dictation/cleanup"

payload = { "text": "string" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Clean up a dictated message

#### Example

```json
{
  "text": "string"
}
```

- `text` (`cleanMyAssistantDictation.response.200.text`; string, required)

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`cleanMyAssistantDictation.response.400.success`; boolean, required)
  - one of `false`
- `error` (`cleanMyAssistantDictation.response.400.error`; array<unknown>, required)
- `data` (`cleanMyAssistantDictation.response.400.data`; unknown, required)

### 403

An active personal account is required.

### 404

The resource is unavailable to this user.


Source: https://docs.cloudraker.com/workspace/api/my-assistant/clean-my-assistant-dictation/index.md
