# Download file

![Download file (ejemplo)](/files/hyXT12x1i7up0amtQWc9)

{% tabs %}
{% tab title="EntryVars" %}
**URL:** enter the URL of the file you want to download

**Step by Step :**
{% endtab %}

{% tab title="Callbacks & OutVars" %}
**onError:** It is executed when the entered file URL is invalid.

OutVars&#x20;

`Null`

**onSuccess:** It is executed when it returns the path (path) of the location of the downloaded file.

OutVars&#x20;

`Null`
{% endtab %}

{% tab title="Features" %}
Puedes ver el archivo descargado desde la notificación de descarga al momento de terminar el proceso\
\
Dependiendo del tamaño del archivo, será el tiempo de espera para que se termine de descargar el documento.
{% endtab %}

{% tab title="examples" %}
![](/files/H1xqhBqYgt8L8i4HzOyA)
{% 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://docs.apphive.io/reference/funciones/phone-apis-e/download-file.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.
