--- title: "Conversational WhatsApp Message File Processes" slug: "conversational-whatsapp-message-file-processes" description: "Explains the two-step Conversational WhatsApp media file process: upload via /v1/media/upload, then retrieve the file URL using week-long file handle IDs." tags: ["whatsapp conversational api", "whatsapp commerce api"] updated: 2026-11-02T13:46:50Z published: 2026-11-02T13:46:50Z canonical: "academy.insiderone.com/conversational-whatsapp-message-file-processes" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Conversational WhatsApp Message File Processes > These file processes only work for Cloud API customers, these features are not available for OnPrem customers (TR numbers). Uploading a file for your conversational WhatsApp messages is a two-step process: ## File Upload You can use the Application Uploads endpoint to describe your file and create an upload session. Use the returned upload session ID to initiate the upload process. If successful, a file handle will be returned, which you can then use with other endpoints that support file handles returned by the Resumable Upload API. > [!WARNING] > When you upload a file to Meta, the system generates a **file ID**. This ID can be used instead of the file URL when sending messages. > > - As of now, the validity period of Meta File Upload IDs has been reduced from 1 month to 1 week. > - This update only affects file uploads made via API endpoints. > - Panel usage is not affected, as it doesn’t rely on this file ID system. ### Headers | Header | Sample Value | Description | | --- | --- | --- | | X-INS-AUTH-KEY | 1a2b3c4d5e6f | This key is required to authorize your request. Refer to [API Authentication Tokens](https://academy.insiderone.com/docs/api-authentication-tokens) to generate your token. | | Content-Type | application/json | This header specifies the media type of the resource. | ### Sample Request ```bash curl --location 'https://whatsapp.useinsider.com/v1/media/upload' \ --header 'x-ins-auth-key: INS.**************************************' \ --header 'Content-Type: application/json' \ --form 'file=@"/Desktop/test.jpeg"' \ --form 'type="image/jpeg"' \ --form 'messaging_product="whatsapp"' ``` ### Sample Response ```json {    "id": "{{FILE_ID}}" } ``` > [!NOTE] > To send an audio file as a voice note, upload an OGG file with the OPUS codec. Then use the returned ID as the audio `id` in your message and set `voice` to `true`. > [!NOTE] > For more information about sending audio messages, refer to [Send Conversational WhatsApp Media Message (Audio)](https://academy.insiderone.com/docs/send-conversational-whatsapp-media-message-audio). ## Get File URL You can use the returned upload session ID to initiate the upload process. If successful, a file handle will be returned, which you can then use with other endpoints that support file handles returned by the Resumable Upload API. ### **Headers** | Header | Sample Value | Description | | --- | --- | --- | | X-INS-AUTH-KEY | 1a2b3c4d5e6f | This key is required to authorize your request. Refer to [API Authentication Tokens](https://academy.insiderone.com/docs/api-authentication-tokens) to generate your token. | | Content-Type | application/json | This header specifies the media type of the resource. | ### Sample Request ```bash curl --location 'https://whatsapp.useinsider.com/v1/media/{{FILE_ID}}' \ --header 'x-ins-auth-key: INS.**************************************' \ --header 'Content-Type: application/json' ``` ### Sample Response ```json {   "url": "{{FILE_URL}}",   "mime_type": "FILE_TYPE",   "sha256": "{{SHA_CODE}}",   "File_size": {{FILE_SIZE}},   "id": "{{FILE_ID}}",   "messaging_product": "whatsapp" } ``` ## Related - [Send Conversational WhatsApp Template Message](/send-conversational-whatsapp-template-message.md) - [Send Conversational WhatsApp Message with Button Reply (Quick Reply)](/send-conversational-whatsapp-message-with-button-reply.md) - [Send Conversational WhatsApp Media Message (Document)](/send-conversational-whatsapp-media-message-document.md) - [Send Conversational WhatsApp Media Message (Image)](/send-conversational-whatsapp-media-message-image.md) - [Send Conversational WhatsApp Media Message (Location)](/send-conversational-whatsapp-media-message-location.md) - [Send Conversational WhatsApp Text Message](/send-conversational-whatsapp-text-message.md)