# Approve a message held for review

Source: https://docs.vlayers.ai/reference/messages/approve-draft

`POST /v1/drafts/{id}/approve` · scope `messages:send`

Sends a message that a mailbox kept for approval (the mailbox is set to ask before sending), as written or with new words in `body`. The same decision as sending a draft: the checks and the charge are the same, and the message records who approved it. Anyone holding the send permission for the mailbox may approve.

Requires an API key with the `messages:send` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The held message id. Example: `"0192f5b0-8d1f-7b62-8c3e-5f9a2b7d4e32"` |
| `body` | body | string | no | New words to send instead of the held message's. Leave out to send it as written. |

## Request

cURL:

```bash
curl -X POST "https://api.vlayers.ai/v1/drafts/$DRAFT_ID/approve" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Approved. Friday at 4pm works better for us."
  }'
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { messageId } = await voicelayer.messages.approveDraft('<draft-id>', {
  body: 'Approved. Friday at 4pm works better for us.'
});
console.log(messageId);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.messages.approve_draft(
    "<draft-id>",
    body="Approved. Friday at 4pm works better for us.",
)
print(result.message_id)
```

## Response `200`

```json
{
  "ok": true,
  "messageId": "0192f5b0-8d1f-7b62-8c3e-5f9a2b7d4e32"
}
```
