--- title: "Transactional WhatsApp Message File Processes" slug: "transactional-whatsapp-message-file-processes" description: "Explains the Transactional WhatsApp media file process: upload via /v1/media/upload, retrieve the file URL, and download, using week-long file handle IDs." tags: ["whatsapp api get file url", "whatsapp api file upload ", "transactional whatsapp api"] updated: 2026-11-02T13:45:51Z published: 2026-11-02T13:45:51Z canonical: "academy.insiderone.com/transactional-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. # Transactional 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 transactional 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. 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.1a2b3c4d5e6f' \ --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 Transactional WhatsApp Media Message (Audio)](https://academy.insiderone.com/docs/send-transactional-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.1a2b3c4d5e6f' \ --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" } ``` ## Download File You can use this request to retrieve uploaded files via API. ### Sample Request ```bash curl --location 'https://whatsapp.useinsider.com/v1/media/download/{{file-id}}' \ --header 'x-ins-auth-key: ****' \ --header 'Content-Type: application/json' \ --data '' ``` As a response, you will receive the original file. ## Related - [Send Transactional WhatsApp Template Message](/send-transactional-whatsapp-template-message.md) - [Send Transactional WhatsApp Message with Button Reply (Quick Reply)](/send-transactional-whatsapp-message-with-button-reply.md) - [Send Transactional WhatsApp Text Message](/send-transactional-whatsapp-text-message.md) - [Send Transactional WhatsApp Media Message (Document)](/send-transactional-whatsapp-media-message-document.md) - [Send Transactional WhatsApp Media Message (Image)](/send-transactional-whatsapp-media-message-image.md) - [Send Transactional WhatsApp Media Message (Location)](/send-transactional-whatsapp-media-message-location.md)