# Send File Message

A file-type conversation refers to a message that includes a file attachment.

In this table below you'll see the Arguments for this request.

<table><thead><tr><th width="234">Arguments</th><th>Explanation</th></tr></thead><tbody><tr><td>mediaURL <mark style="color:red;">*required</mark></td><td>Provides the URL where the file content is hosted or located</td></tr><tr><td>type <mark style="color:red;">*required</mark></td><td>To specify the media type that will be used.</td></tr><tr><td>text (optional)</td><td>The text content of the message. Maximum length of 4096 characters.</td></tr></tbody></table>

Here's how to create a request for sending a file message to a WhatsApp user using the provided API endpoint.

{% tabs %}
{% tab title="JSON" %}

```
{
    "type": "file",
    "mediaUrl": "https://www.w3.org/dummy.pdf",
    "text": "Here is a pdf attached"
}
```

{% endtab %}

{% tab title="cURL" %}

```
curl --location 'channel360.co.za/v1.1/org/{{orgId}}/whatsapp/appuser/{{appUserId}}/reply' \
--data '{
    "type": "file",
    "mediaUrl": "https://www.w3.org/dummy.pdf",
    "text": "Here is a pdf attached"
}'
```

{% endtab %}
{% endtabs %}
