> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/faxing/download-file.md).

# Download File

## GET or POST Request <a href="#get-or-post-request" id="get-or-post-request"></a>

{% hint style="info" %}
<https://v1.api19.com/fax/download>
{% endhint %}

Send us a GET or POST request with your key and fax id.

This will deliver the fax back to you or if no file can be found, we will return an http code 500 and a json object.&#x20;

<table data-header-hidden><thead><tr><th width="152.09088134765625"></th><th width="136.72723388671875"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr><tr><td>fax_id</td><td>yes</td><td>fax id</td></tr></tbody></table>

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

```php
curl -X POST https://v1.api19.com/fax/download\
 -d "fax_id=234234" \
 -d 'key=your-key'
```

{% endtab %}

{% tab title="Response" %}

```
HTTP 200 OK
HTTP File download object

HTTP 500
{"status":"error", "error": "Unable to retrieve fax"}
```

{% endtab %}
{% endtabs %}
