# Send a draft you wrote

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

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

Sends a draft now, as written or with new words in `body`. It goes through the same checks as any send (text screening, the recipient rule, opt-outs, limits) and is charged like one; a refusal says why and leaves the draft waiting so you can fix it. Anyone holding the send permission for the mailbox may send it, and the draft records who did.

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

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

## Request

cURL:

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

TypeScript:

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

const voicelayer = new VoiceLayer();

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

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

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

## Response `200`

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