# Download a Voicemail

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/voicemail/vm/get>
{% endhint %}

Download a specific voicemail box and voicemail id wav file

## HTTP Post Variables Supported

<table data-header-hidden><thead><tr><th width="123.9090576171875"></th><th width="108.54547119140625"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>mbox</td><td>yes</td><td>2-12 digits</td></tr><tr><td>msgid</td><td>yes</td><td>2-100 characters</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr></tbody></table>

{% tabs %}
{% tab title="Curl Post" %}

```php
curl https://v1.api19.com/voicemail/vm/get \
 -d 'key=api_token' \
 -d 'mbox=2233' \
 -d 'msgid=msg0001'
```

{% endtab %}

{% tab title="Curl Get" %}

<pre><code><strong>curl "https://v1.api19.com/voicemail/vm/get?key=api_token&#x26;mbox=2233&#x26;msgid=msg0001"
</strong></code></pre>

{% endtab %}

{% tab title="JSON Response" %}

```json
{"status":"ok","data":"base64encoded wav file"}
OR
{"status":"error","error":"no data found"}
```

{% endtab %}
{% endtabs %}
