# Get Greeting

## GET or POST Request

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

Download a greeting from a voicemail box

## 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>box_id</td><td>yes</td><td>2-12 digits</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr></tbody></table>

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

<pre class="language-php"><code class="lang-php"><strong>curl https://v1.api19.com/voicemail/greeting/get \
</strong> -d 'key=api_token' \
 -d 'box_id=2233'
</code></pre>

{% endtab %}

{% tab title="Curl Get" %}

```
curl "https://v1.api19.com/voicemail/greeting/get?key=api_token&box_id=2233"
```

{% endtab %}

{% tab title="JSON Response" %}

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

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.api19.com/voicemail/get-greeting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
