---
title: "Enhance Content"
description: "Improve existing content with grammar correction, tone adjustment, \nstyle enhancement, or comprehensive improvements.\n\n**Note**: This endpoint is deployed on Cloudflare Workers at `https://ai-notes.customerconnects.app`\n"
---

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

Path: Channel Automation API › AI

`POST /api/notes/enhance`

Improve existing content with grammar correction, tone adjustment, 
style enhancement, or comprehensive improvements.

**Note**: This endpoint is deployed on Cloudflare Workers at `https://ai-notes.customerconnects.app`

## Authentication

Requires one of the following:

- `NoAuth`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Header parameters

- `X-Workspace-Id` (`post/api/notes/enhance.header.X-Workspace-Id`; string, required) — Workspace ID for data isolation

## Request body

_Required._

- `workspaceId` (`post/api/notes/enhance.workspaceId`; integer, required)
  - example `12345`
- `content` (`post/api/notes/enhance.content`; string, required)
  - example `"AI helps customers get quick responses and solve problems faster."`
- `enhancementType` (`post/api/notes/enhance.enhancementType`; string, optional)
  - one of `"grammar"`, `"tone"`, `"style"`, `"general"`; default `"general"`; example `"style"`
- `noteId` (`post/api/notes/enhance.noteId`; string, optional)
  - example `"note_123"`
- `options` (`post/api/notes/enhance.options`; object, optional)
  - `targetTone` (`post/api/notes/enhance.options.targetTone`; string, optional)
    - example `"professional"`

## Example requests

### Grammar correction

```json
{
  "workspaceId": 15213,
  "content": "AI help customers to get quick response and solve problem faster.",
  "enhancementType": "grammar"
}
```

### Tone adjustment

```json
{
  "workspaceId": 15213,
  "content": "Hey, our AI is pretty cool and helps users out.",
  "enhancementType": "tone",
  "options": {
    "targetTone": "professional"
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/notes/enhance \
  --header 'Content-Type: application/json' \
  --header 'X-Workspace-Id: 15213' \
  --data '
{
  "workspaceId": 15213,
  "content": "AI help customers to get quick response and solve problem faster.",
  "enhancementType": "grammar"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/notes/enhance';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', 'X-Workspace-Id': '15213'},
  body: JSON.stringify({
    workspaceId: 15213,
    content: 'AI help customers to get quick response and solve problem faster.',
    enhancementType: 'grammar'
  })
};

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

### Python

```python
import requests

url = "https://api.channelautomation.com/api/notes/enhance"

payload = {
    "workspaceId": 15213,
    "content": "AI help customers to get quick response and solve problem faster.",
    "enhancementType": "grammar"
}
headers = {
    "Content-Type": "application/json",
    "X-Workspace-Id": "15213"
}

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

print(response.text)
```

## Responses

### 200

Content enhanced successfully

#### Example

```json
{
  "success": true,
  "original": "AI helps customers get quick responses and solve problems faster.",
  "enhanced": "Artificial Intelligence empowers customers to receive immediate responses...",
  "enhancementType": "style",
  "metadata": {
    "tokensUsed": 78,
    "processingTime": 2156,
    "model": "gpt-4o",
    "improvementRatio": 1.85
  }
}
```

- `success` (`post/api/notes/enhance.response.200.success`; boolean, optional)
  - example `true`
- `original` (`post/api/notes/enhance.response.200.original`; string, optional)
  - example `"AI helps customers get quick responses and solve problems faster."`
- `enhanced` (`post/api/notes/enhance.response.200.enhanced`; string, optional)
  - example `"Artificial Intelligence empowers customers to receive immediate responses..."`
- `enhancementType` (`post/api/notes/enhance.response.200.enhancementType`; string, optional)
  - example `"style"`
- `metadata` (`post/api/notes/enhance.response.200.metadata`; object, optional)
  - `tokensUsed` (`post/api/notes/enhance.response.200.metadata.tokensUsed`; integer, optional)
    - example `78`
  - `processingTime` (`post/api/notes/enhance.response.200.metadata.processingTime`; integer, optional)
    - example `2156`
  - `model` (`post/api/notes/enhance.response.200.metadata.model`; string, optional)
    - example `"gpt-4o"`
  - `improvementRatio` (`post/api/notes/enhance.response.200.metadata.improvementRatio`; number, optional)
    - example `1.85`


Source: https://developer.channelautomations.com/api/post-api-notes-enhance/index.md
