{"id":1771,"date":"2026-11-10T19:25:56","date_gmt":"2026-11-10T19:25:56","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/whatsapp-media-id-expiration\/"},"modified":"2026-11-10T19:26:00","modified_gmt":"2026-11-10T19:26:00","slug":"whatsapp-media-id-expiration","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/","title":{"rendered":"WhatsApp API media ID: how long it lasts and how to reuse uploads"},"content":{"rendered":"\n<p><em>Updated on November 10, 2026<\/em><\/p>\n\n\n\n<p>A media ID created by uploading a file to the WhatsApp Cloud API is valid for 30 days, a media ID that arrives in the webhook for received media is valid for 7 days, and the download URL returned by <code>GET \/{media-id}<\/code> expires after 5 minutes. While it is valid, the same media ID can be used in as many sends as you like, so you don&#8217;t have to upload the same file again for every recipient. Once it expires, the fix is a new upload and swapping the stored ID.<\/p>\n\n\n\n<p>This article covers the media ID lifecycle: the official expiration times, the difference between <code>id<\/code>, <code>link<\/code> and the template <em>header handle<\/em>, a media ID cache with automatic renewal, and when to delete media early. If you haven&#8217;t sent any media yet, start with <a href=\"https:\/\/vectalk.com.br\/blog\/en\/send-media-whatsapp-api\/\">how to send media with the WhatsApp API<\/a>. For files your customers send you, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/download-media-whatsapp-webhook\/\">how to download media from the webhook<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The official expiration times in one table<\/h2>\n\n\n\n<p>Every time limit below is written in Meta&#8217;s documentation. The <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/business-phone-numbers\/media\" target=\"_blank\" rel=\"noreferrer noopener\">Media<\/a> page covers the first three; the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/send-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Send messages<\/a> page covers link caching.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>What<\/th><th>Time limit<\/th><th>What happens next<\/th><\/tr><\/thead><tbody><tr><td>Media ID returned by <code>POST \/{phone-number-id}\/media<\/code><\/td><td>30 days (the file is stored encrypted unless you delete it sooner)<\/td><td>The ID expires; sends that use it fail<\/td><\/tr><tr><td>Media ID received in a media message webhook<\/td><td>7 days to download<\/td><td>The file can no longer be downloaded<\/td><\/tr><tr><td>URL returned by <code>GET \/{media-id}<\/code> (the <code>url<\/code> field)<\/td><td>5 minutes<\/td><td>Query the media ID again to get a new URL<\/td><\/tr><tr><td>File sent by <code>link<\/code><\/td><td>Cached by the Cloud API for 10 minutes<\/td><td>A new send with the same link fetches the file from your server again<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Two things the documentation does <strong>not<\/strong> state, so don&#8217;t assume them: there is no published lifetime for the Resumable Upload <em>header handle<\/em>, and there is no sign that a media ID can be renewed or extended. To get another 30 days, upload again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Media ID, link and header handle are not the same thing<\/h2>\n\n\n\n<p>The most common mix-up in new integrations is treating these three identifiers as interchangeable. They serve different moments:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><\/th><th>Media ID (<code>id<\/code>)<\/th><th>Link (<code>link<\/code>)<\/th><th>Header handle (<code>header_handle<\/code>)<\/th><\/tr><\/thead><tbody><tr><td>How you get it<\/td><td><code>POST \/{phone-number-id}\/media<\/code><\/td><td>Public HTTPS URL on your server or CDN<\/td><td>Resumable Upload API: <code>POST \/{app-id}\/uploads<\/code>, then <code>POST \/upload:{session-id}<\/code><\/td><\/tr><tr><td>Typical format<\/td><td>A number, like <code>1037543291543636<\/code><\/td><td><code>https:\/\/cdn.example.com\/file.pdf<\/code><\/td><td>Prefixed string, like <code>4::aW...<\/code><\/td><\/tr><tr><td>Where it&#8217;s used<\/td><td>Sending media messages and media-header templates<\/td><td>Sending media messages and media-header templates<\/td><td>Only in the header <code>example<\/code> field when <strong>creating<\/strong> a template<\/td><\/tr><tr><td>Documented lifetime<\/td><td>30 days<\/td><td>10-minute internal cache<\/td><td>Not published<\/td><\/tr><tr><td>Meta&#8217;s guidance<\/td><td>Recommended<\/td><td>&#8220;Not recommended&#8221; for performance<\/td><td>Required to create a media-header template<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The point that trips people up: the header handle lets Meta review the template with a sample file. It is not the file you send. When you actually send the template, the header takes an uploaded <code>id<\/code> or a <code>link<\/code>, just like any media message. The full sending walkthrough is in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/send-whatsapp-template-message-api\/\">how to send a template with the WhatsApp API<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">One upload, many recipients<\/h2>\n\n\n\n<p>If the same file goes to a lot of people (this month&#8217;s catalog, a welcome video, a terms PDF), upload it once and reuse the ID. The upload is a <code>multipart\/form-data<\/code> request with <code>file<\/code>, <code>type<\/code> and <code>messaging_product<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl -X POST \"https:\/\/graph.facebook.com\/v27.0\/$PHONE_NUMBER_ID\/media\" \\\n  -H \"Authorization: Bearer $WHATSAPP_TOKEN\" \\\n  -F \"messaging_product=whatsapp\" \\\n  -F \"file=@catalog-november.pdf;type=application\/pdf\"<\/code><\/pre>\n\n\n\n<p>The response contains only the ID:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{ \"id\": \"1037543291543636\" }<\/code><\/pre>\n\n\n\n<p>Then the same <code>id<\/code> goes into every send. Here is a Node.js 18+ example using native <code>fetch<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-js\">const GRAPH = 'https:\/\/graph.facebook.com\/v27.0';\nconst PHONE_ID = process.env.PHONE_NUMBER_ID;\nconst TOKEN = process.env.WHATSAPP_TOKEN;\n\nasync function sendDocument(to, mediaId) {\n  const r = await fetch(`${GRAPH}\/${PHONE_ID}\/messages`, {\n    method: 'POST',\n    headers: { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application\/json' },\n    body: JSON.stringify({\n      messaging_product: 'whatsapp',\n      to,\n      type: 'document',\n      document: { id: mediaId, filename: 'catalog-november.pdf' },\n    }),\n  });\n  const body = await r.json();\n  if (!r.ok) throw Object.assign(new Error('send failed'), { apiError: body.error });\n  return body.messages[0].id; \/\/ wamid\n}\n\nconst mediaId = '1037543291543636';\nfor (const number of ['5511988887777', '5521977776666']) {\n  console.log(number, await sendDocument(number, mediaId));\n}<\/code><\/pre>\n\n\n\n<p>Remember that a free-form media message can only be sent while the 24-hour customer service window is open. Outside it, the file goes in the header of an approved template, and reusing the ID works the same way: the same <code>id<\/code> goes into <code>components[].parameters[].document.id<\/code> (or <code>image.id<\/code>, <code>video.id<\/code>) for each send. Sending to many numbers in a row needs pacing and error handling on your side; a <code>200<\/code> response only confirms Meta accepted the request, and delivery is reported later by the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-message-status-webhook\/\">status webhook<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A media ID cache with automatic renewal<\/h2>\n\n\n\n<p>Keeping the ID in a <code>.env<\/code> file works until day 31. In production, treat the media ID as a resource with an expiration date: record when it was created and create a new one before it lapses. The minimum table looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Field<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>phone_number_id<\/code><\/td><td>The number the upload was made from<\/td><\/tr><tr><td>File <code>sha256<\/code><\/td><td>Identifies the content; a changed file gets a new hash and therefore a new upload<\/td><\/tr><tr><td><code>media_id<\/code><\/td><td>The ID returned by Meta<\/td><\/tr><tr><td><code>uploaded_at<\/code><\/td><td>Upload date and time<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Why the key includes the number: the documentation says that if you pass <code>phone_number_id<\/code> to <code>GET<\/code> or <code>DELETE \/{media-id}<\/code>, the request is only processed when that number matches the one the media was uploaded on. The media is tied to the number it was uploaded on. If your application serves several numbers, upload once per number and don&#8217;t share IDs between them.<\/p>\n\n\n\n<p>A Node.js example that continues the previous one (same constants and the <code>sendDocument<\/code> function), with a <code>Map<\/code> standing in for your database. The renewal margin (25 days here) is our own choice to stay clear of the 30-day limit; adjust it to your operation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-js\">import { readFile } from 'node:fs\/promises';\nimport crypto from 'node:crypto';\n\nconst RENEW_AFTER_MS = 25 * 24 * 60 * 60 * 1000; \/\/ margin before 30 days\nconst cache = new Map(); \/\/ replace with a table in your database\n\nasync function upload(buffer, mime, name) {\n  const form = new FormData();\n  form.append('messaging_product', 'whatsapp');\n  form.append('type', mime);\n  form.append('file', new Blob([buffer], { type: mime }), name);\n  const r = await fetch(`${GRAPH}\/${PHONE_ID}\/media`, {\n    method: 'POST',\n    headers: { Authorization: `Bearer ${TOKEN}` },\n    body: form,\n  });\n  const body = await r.json();\n  if (!r.ok) throw new Error(JSON.stringify(body.error));\n  return body.id;\n}\n\nexport async function getMediaId(path, mime, { force = false } = {}) {\n  const buffer = await readFile(path);\n  const hash = crypto.createHash('sha256').update(buffer).digest('hex');\n  const key = `${PHONE_ID}:${hash}`;\n  const current = cache.get(key);\n  const fresh = current &amp;&amp; Date.now() - current.uploadedAt &lt; RENEW_AFTER_MS;\n  if (fresh &amp;&amp; !force) return current.mediaId;\n\n  const mediaId = await upload(buffer, mime, path.split('\/').pop());\n  cache.set(key, { mediaId, uploadedAt: Date.now() });\n  return mediaId;\n}<\/code><\/pre>\n\n\n\n<p>And a safety net for when the ID fails even inside the margin (deleted by mistake, lost cache, wrong clock): if the send errors, upload once more and retry.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-js\">export async function sendWithRenewal(to, path, mime) {\n  let mediaId = await getMediaId(path, mime);\n  try {\n    return await sendDocument(to, mediaId);\n  } catch (e) {\n    console.warn('send with media ID failed, uploading again', e.apiError);\n    mediaId = await getMediaId(path, mime, { force: true });\n    return sendDocument(to, mediaId);\n  }\n}<\/code><\/pre>\n\n\n\n<p>The <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/image-messages\" target=\"_blank\" rel=\"noreferrer noopener\">image messages<\/a> page says a request fails if the media ID is invalid or has expired, and that the API then returns an error response instead of a message ID. It doesn&#8217;t pin down a specific error code for &#8220;expired ID&#8221;, so log the <code>code<\/code> and <code>error_data.details<\/code> you get and don&#8217;t rely on a single number. To avoid pointless re-uploads, limit the retry to media-related errors, not failures like an invalid number or a missing template. Template header formatting errors are covered in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-error-132012-template-parameter-format\/\">template parameter errors<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to use link, and the 10-minute cache<\/h2>\n\n\n\n<p><code>link<\/code> has its place: files already on a public CDN, one-off sends, or files generated on the fly, such as a boleto (a bank payment slip widely used in Brazil) behind a signed URL. The trade-off is that Meta has to download the file from your server at send time, and the URL must be on a publicly accessible server or the send fails.<\/p>\n\n\n\n<p>The detail few people know is in the sending docs: with <code>link<\/code>, the Cloud API caches the file for 10 minutes, and later sends with <strong>exactly the same link<\/strong> reuse the cached file. That helps when you send the same file to many people in a row, but it bites when the file changes and the URL stays the same. Example: you replace <code>offer.jpg<\/code> on your CDN and send again five minutes later. Meta may deliver the old image.<\/p>\n\n\n\n<p>The official workaround is to append a random query string to the link. The Cloud API treats it as a new asset, fetches it from your server again and caches it for another 10 minutes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-js\">function cacheBustedLink(url, version) {\n  const u = new URL(url);\n  u.searchParams.set('v', version); \/\/ e.g. file hash or last-modified date\n  return u.toString();\n}\n\n\/\/ https:\/\/cdn.example.com\/offer.jpg?v=9f2c1a<\/code><\/pre>\n\n\n\n<p>Using the file hash as the version beats a random number: the link only changes when the content changes, so the cache keeps working in your favor during back-to-back sends.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Received media: the webhook ID is for downloading, not storing<\/h2>\n\n\n\n<p>When a customer sends a photo or a PDF, the webhook carries a media ID that can be downloaded for 7 days. The download URL, obtained with <code>GET \/{media-id}<\/code> (or from the webhook&#8217;s own <code>url<\/code> field), lasts 5 minutes. Storing either one in your database as a permanent reference is a bug scheduled for next week.<\/p>\n\n\n\n<p>The right flow is to download right away, save the file to your own storage and store the path to your copy. If you need to forward that file to someone else (a receipt passed on to your finance team, say), upload it again from your copy. The documentation doesn&#8217;t say a received media ID can be used to send, and a fresh upload gives you the full 30 days. Download code with retries and hash checks is in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/download-media-whatsapp-webhook\/\">download media from the webhook<\/a>.<\/p>\n\n\n\n<p>If the <code>GET<\/code> on the URL returns <code>404 Not Found<\/code>, Meta&#8217;s guidance is to get a new URL by querying the media ID and try again; if that doesn&#8217;t work, refresh your access token.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Deleting media before the 30 days<\/h2>\n\n\n\n<p>Uploaded media is stored for 30 days unless you delete it sooner. To delete it, use <code>DELETE \/{media-id}<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl -X DELETE \\\n  \"https:\/\/graph.facebook.com\/v27.0\/$MEDIA_ID?phone_number_id=$PHONE_NUMBER_ID\" \\\n  -H \"Authorization: Bearer $WHATSAPP_TOKEN\"<\/code><\/pre>\n\n\n\n<p>Response:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{ \"success\": true }<\/code><\/pre>\n\n\n\n<p><code>phone_number_id<\/code> is optional; with it, Meta only deletes the media if it was uploaded on that number, which prevents deleting another number&#8217;s media by accident in multi-number systems.<\/p>\n\n\n\n<p>Deleting makes sense when the file contains personal data and was meant for a single send: an invoice copy, a signed contract, a lab report, a receipt. Data protection laws such as Brazil&#8217;s LGPD (Law 13,709\/2018) or the GDPR ask you not to keep personal data longer than necessary. This is context, not legal advice: set your retention policy with your lawyer. After deleting, remove the ID from your cache so no send tries to use it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Header handle: the template upload<\/h2>\n\n\n\n<p>To create a template with an image, video or document header, Meta requires a sample file uploaded through the Resumable Upload API. It takes two calls. The first opens an upload session on your app ID:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl -X POST \"https:\/\/graph.facebook.com\/v27.0\/$APP_ID\/uploads?file_name=sample.jpg&amp;file_length=48213&amp;file_type=image\/jpeg&amp;access_token=$TOKEN\"<\/code><\/pre>\n\n\n\n<p>It returns <code>{ \"id\": \"upload:&lt;SESSION_ID&gt;\" }<\/code>. The second sends the file with <code>file_offset: 0<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl -X POST \"https:\/\/graph.facebook.com\/v27.0\/upload:$SESSION_ID\" \\\n  -H \"Authorization: OAuth $TOKEN\" \\\n  -H \"file_offset: 0\" \\\n  --data-binary @sample.jpg<\/code><\/pre>\n\n\n\n<p>The response returns the handle in the <code>h<\/code> field, which goes into <code>example.header_handle<\/code> of the <code>HEADER<\/code> component when you create the template. If the upload is interrupted, <code>GET \/upload:{session-id}<\/code> returns the <code>file_offset<\/code> so you can resume where it stopped. This API accepts PDF, JPEG, PNG and MP4.<\/p>\n\n\n\n<p>Three things not to mix up:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The handle does <strong>not<\/strong> replace the media ID when sending. At send time, the header uses <code>id<\/code> or <code>link<\/code>.<\/li>\n\n\n<li>The handle comes from <code>\/{app-id}\/uploads<\/code>, tied to the app; the media ID comes from <code>\/{phone-number-id}\/media<\/code>, tied to the number.<\/li>\n\n\n<li>Meta doesn&#8217;t publish a lifetime for the handle. Since it&#8217;s only used when creating the template, there&#8217;s no reason to store it.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common media ID mistakes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Storing the download URL instead of the ID.<\/strong> The URL expires in 5 minutes. Store the ID (for uploads) or the path in your storage (for received media).<\/li>\n\n\n<li><strong>Hard-coding the ID.<\/strong> It works in testing and breaks 30 days later. Use a cache with the upload date.<\/li>\n\n\n<li><strong>Sharing IDs across numbers.<\/strong> The media is tied to the number it was uploaded on. Upload once per number.<\/li>\n\n\n<li><strong>Using the header handle to send.<\/strong> It&#8217;s only for template creation.<\/li>\n\n\n<li><strong>Changing the file but keeping the link.<\/strong> With the 10-minute cache, the recipient may get the old version. Version the URL.<\/li>\n\n\n<li><strong>Wrong MIME type on upload.<\/strong> If the declared type doesn&#8217;t match the content, the send can fail with <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-error-131053-media-upload\/\">error 131053<\/a>. Check the limits: images up to 5 MB, audio and video up to 16 MB, documents up to 100 MB, stickers up to 100 KB (static) or 500 KB (animated).<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Media IDs with Vectalk<\/h2>\n\n\n\n<p>Vectalk is a proxy for the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp Business API<\/a>, so media IDs follow the same rules as Meta&#8217;s. The media routes, documented at <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/media\/upload\">docs.vectalk.com.br<\/a>, are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>POST https:\/\/apis.vectalk.com.br\/api\/media<\/code> to upload (fields <code>file<\/code>, <code>type<\/code> and <code>messaging_product<\/code>), which returns <code>{ \"id\": \"...\" }<\/code>.<\/li>\n\n\n<li><code>GET https:\/\/apis.vectalk.com.br\/api\/media\/{mediaId}<\/code> to get the temporary download URL.<\/li>\n\n\n<li><code>GET https:\/\/apis.vectalk.com.br\/api\/media\/{mediaId}\/download<\/code> to download the binary directly.<\/li>\n\n\n<li><code>DELETE https:\/\/apis.vectalk.com.br\/api\/media\/{mediaId}<\/code> to delete the media from Meta&#8217;s servers.<\/li>\n\n<\/ul>\n\n\n\n<p>Media routes require an <strong>instance token<\/strong>, created in the dashboard under Settings, API Tokens; with it, the <code>phone_number_id<\/code> is resolved automatically and the ID is naturally tied to that number. The returned <code>id<\/code> goes into a send via <code>POST https:\/\/apis.vectalk.com.br\/api\/messages<\/code>, with the same body Meta uses. The ID cache and renewal logic live in your own system. Create an account at <a href=\"https:\/\/apps.vectalk.com.br\/register\">apps.vectalk.com.br\/register<\/a> to try it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How long is a WhatsApp media ID valid?<\/h3>\n\n\n\n<p>A media ID returned by an upload is valid for 30 days. A media ID received in a media webhook can be downloaded for 7 days. The download URL from <code>GET \/{media-id}<\/code> expires after 5 minutes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use the same media ID for multiple recipients?<\/h3>\n\n\n\n<p>Yes. Within the 30 days, the same <code>id<\/code> can be used in as many sends as you want, in media messages or in template headers. It&#8217;s the approach Meta recommends so each send doesn&#8217;t depend on your server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I renew a media ID without uploading again?<\/h3>\n\n\n\n<p>The documentation has no endpoint to extend its lifetime. To get another 30 days, upload the file again and replace the ID in your cache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What&#8217;s the difference between a media ID and a header handle?<\/h3>\n\n\n\n<p>The media ID comes from the number&#8217;s <code>\/media<\/code> endpoint and is used for sending. The header handle comes from the app&#8217;s Resumable Upload API and is only used as a sample when creating a media-header template.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What happens if I send an expired media ID?<\/h3>\n\n\n\n<p>The request fails and the API returns an error response instead of a message ID. Handle it by uploading once more and resending. For other payload errors, such as a <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-errors-131008-131009\/\">missing or invalid parameter<\/a>, the fix is to correct the request body.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources consulted on November 10, 2026:<\/strong> <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/business-phone-numbers\/media\" target=\"_blank\" rel=\"noreferrer noopener\">Media (Cloud API)<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/send-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Send messages: media caching<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/image-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Image messages<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/templates\/template-media\/\" target=\"_blank\" rel=\"noreferrer noopener\">Template media<\/a>, <a href=\"https:\/\/developers.facebook.com\/docs\/graph-api\/guides\/upload\" target=\"_blank\" rel=\"noreferrer noopener\">Resumable Upload API<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/support\/error-codes\" target=\"_blank\" rel=\"noreferrer noopener\">Cloud API error codes<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/media\/upload\">Vectalk docs: Media Upload<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/authentication\">Vectalk docs: Authentication<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An uploaded media ID lasts 30 days, a webhook media ID 7 days and a download URL 5 minutes. Here is how to reuse one upload across many sends and renew it safely.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-1771","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WhatsApp Media ID: Expiration and Reuse | Vectalk<\/title>\n<meta name=\"description\" content=\"WhatsApp media ID explained: how long uploads, download URLs and webhook media last, how to reuse one ID across sends and renew it when it expires.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WhatsApp Media ID: Expiration and Reuse | Vectalk\" \/>\n<meta property=\"og:description\" content=\"WhatsApp media ID explained: how long uploads, download URLs and webhook media last, how to reuse one ID across sends and renew it when it expires.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-10T19:25:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-10T19:26:00+00:00\" \/>\n<meta name=\"author\" content=\"wanderleyfcunha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wanderleyfcunha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"WhatsApp API media ID: how long it lasts and how to reuse uploads\",\"datePublished\":\"2026-11-10T19:25:56+00:00\",\"dateModified\":\"2026-11-10T19:26:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/\"},\"wordCount\":2120,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/\",\"name\":\"WhatsApp Media ID: Expiration and Reuse | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-10T19:25:56+00:00\",\"dateModified\":\"2026-11-10T19:26:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"WhatsApp media ID explained: how long uploads, download URLs and webhook media last, how to reuse one ID across sends and renew it when it expires.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-media-id-expiration\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WhatsApp API media ID: how long it lasts and how to reuse uploads\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\",\"name\":\"Blog Vectalk\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\",\"name\":\"wanderleyfcunha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"caption\":\"wanderleyfcunha\"},\"sameAs\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WhatsApp Media ID: Expiration and Reuse | Vectalk","description":"WhatsApp media ID explained: how long uploads, download URLs and webhook media last, how to reuse one ID across sends and renew it when it expires.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/","og_locale":"en_US","og_type":"article","og_title":"WhatsApp Media ID: Expiration and Reuse | Vectalk","og_description":"WhatsApp media ID explained: how long uploads, download URLs and webhook media last, how to reuse one ID across sends and renew it when it expires.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/","og_site_name":"Blog Vectalk","article_published_time":"2026-11-10T19:25:56+00:00","article_modified_time":"2026-11-10T19:26:00+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"WhatsApp API media ID: how long it lasts and how to reuse uploads","datePublished":"2026-11-10T19:25:56+00:00","dateModified":"2026-11-10T19:26:00+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/"},"wordCount":2120,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/","url":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/","name":"WhatsApp Media ID: Expiration and Reuse | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-11-10T19:25:56+00:00","dateModified":"2026-11-10T19:26:00+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"WhatsApp media ID explained: how long uploads, download URLs and webhook media last, how to reuse one ID across sends and renew it when it expires.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-media-id-expiration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"WhatsApp API media ID: how long it lasts and how to reuse uploads"}]},{"@type":"WebSite","@id":"https:\/\/vectalk.com.br\/blog\/#website","url":"https:\/\/vectalk.com.br\/blog\/","name":"Blog Vectalk","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vectalk.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b","name":"wanderleyfcunha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","caption":"wanderleyfcunha"},"sameAs":["https:\/\/vectalk.com.br\/blog"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/comments?post=1771"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1771\/revisions"}],"predecessor-version":[{"id":1774,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1771\/revisions\/1774"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=1771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=1771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=1771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}