Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.
Use these endpoints to upload media files (images, documents, videos) for use in
template and session WhatsApp messages, and to retrieve or download previously
uploaded media.
Media Upload
POST /oapi/wa/mediaupload
string
required
API key generated for the TUC associated with the sending phone number.
string
application/json
Uploads a local file (multipart) or a remote file URL and returns a media ID/URL you
can reference from send-message payloads (e.g. image.id, document.id).
Request parameters
string
required
WhatsApp phone number (with country code) for which media is being uploaded.
file
required
Media file to upload (image, document, video, etc.), sent as multipart form data.
As an alternative to file, send a url form field holding a remote file URL. Send one
or the other, not both.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OneXtel","colors":{"primary":"#242C6A","light":"#242C6A","dark":"#242C6A"},"logo":{"light":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/Xsymbol.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=ca8a83762561eb064c1ebb35709d6f77","dark":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/logo.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=cb43d9837bb40c11e42081de17ca736e"},"favicon":{"light":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/Xsymbol.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=ca8a83762561eb064c1ebb35709d6f77","dark":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/logo.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=cb43d9837bb40c11e42081de17ca736e"},"appearance":{"default":"light","strict":true},"background":{"decoration":"grid","color":{"light":"#ffffff","dark":"#ffffff"}},"navbar":{"links":[{"href":"/download-pdf","label":"Download PDF"}],"primary":{"type":"button","label":"OneXtel","href":"https://onextel.com"}},"footer":{"socials":{"website":"https://onextel.com","linkedin":"https://www.linkedin.com/company/14525405","instagram":"https://www.instagram.com/onextel_media"}},"icons":{"library":"fontawesome"},"banner":{"content":"**Beta documentation, for internal review.** Do not share this site with customers.","dismissible":false,"type":"warning"},"contextual":{"options":["copy","view","download-pdf",{"title":"Download all docs","description":"Every guide, API reference and plugin page in one PDF","icon":"file-pdf","href":"/download-pdf"},"download-spec","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"onextel-09023014","hasAudioNarration":false,"actualSubdomain":"onextel-09023014","customDomains":[],"gitSource":{"type":"github","owner":"1xtel","repo":"onextel-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f49a9ffae5051c418fcb"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b09147e5972eb552bebeb08","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Guides","count":81},{"language":"default","tag":"API Reference","count":80},{"language":"default","tag":"WhatsApp","count":37},{"language":"default","tag":"Truecaller","count":31},{"language":"default","tag":"RCS","count":18},{"language":"default","tag":"SMS (International)","count":14},{"language":"default","tag":"Campaigns","count":14},{"language":"default","tag":"Platform","count":14},{"language":"default","tag":"Verify","count":12},{"language":"default","tag":"Plugins","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"feedback.css","content":".oxf{--oxf-navy: #252e6a;--oxf-red: #d72327;--oxf-sky: #dae6f1;--oxf-grey: #e6e7e8;--oxf-ink: #231f20;--oxf-surface: #ffffff;font-size:14px;line-height:1.45}html.dark .oxf{--oxf-sky: #2a3350;--oxf-grey: #3a3f55;--oxf-ink: #f1f3f8;--oxf-surface: #151a2e}.oxf[hidden],.oxf [hidden]{display:none}.oxf-bubble,.oxf-launcher,.oxf-primary{background:var(--oxf-navy);color:#ffffff;border:0;border-radius:999px;padding:8px 14px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgb(0 0 0 / 0.18)}.oxf-bubble{position:absolute;z-index:60}.oxf-launcher{position:fixed;right:20px;bottom:20px;z-index:55}.oxf-bubble:focus-visible,.oxf-launcher:focus-visible,.oxf-panel button:focus-visible,.oxf-input:focus-visible{outline:2px solid var(--oxf-red);outline-offset:2px}.oxf-panel{position:fixed;right:20px;bottom:68px;z-index:56;width:min(380px, calc(100vw - 32px));max-height:min(70vh, 640px);overflow-y:auto;padding:16px;background:var(--oxf-surface);color:var(--oxf-ink);border:1px solid var(--oxf-grey);border-radius:12px;box-shadow:0 12px 32px rgb(0 0 0 / 0.22)}.oxf-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.oxf-help,.oxf-local,.oxf-status,.oxf-meta,.oxf-empty{margin:8px 0 0;font-size:13px;opacity:0.8}.oxf-status:empty{display:none}.oxf-starters,.oxf-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.oxf-secondary{background:transparent;color:inherit;border:1px solid var(--oxf-grey);border-radius:8px;padding:6px 10px;cursor:pointer}.oxf-link{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font-size:13px}.oxf-form{display:grid;gap:8px;margin-top:12px}.oxf-quote,.oxf-jump{margin:0;padding:8px 10px;background:var(--oxf-sky);color:inherit;border:0;border-left:3px solid var(--oxf-navy);border-radius:4px;font-size:13px;text-align:left;overflow-wrap:anywhere}.oxf-jump{display:block;width:100%;cursor:pointer}.oxf-input{width:100%;padding:8px 10px;background:var(--oxf-surface);color:inherit;border:1px solid var(--oxf-grey);border-radius:8px;font:inherit}.oxf-primary{border-radius:8px;box-shadow:none}.oxf-primary:disabled{opacity:0.6;cursor:default}.oxf-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}.oxf-item{padding-top:12px;border-top:1px solid var(--oxf-grey)}.oxf-comment{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.oxf-meta{display:flex;justify-content:space-between;gap:8px}.oxf-resolved .oxf-jump,.oxf-resolved .oxf-comment{opacity:0.55}.oxf-pick-hint{position:fixed;left:50%;bottom:20px;z-index:57;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:10px 14px;background:var(--oxf-navy);color:#ffffff;border-radius:8px;box-shadow:0 4px 14px rgb(0 0 0 / 0.18)}html.oxf-picking #content,html.oxf-picking main{cursor:crosshair}.oxf-pick-target{outline:2px solid #d72327;outline-offset:3px;border-radius:4px}::highlight(oxf-note){background-color:rgb(247 231 206 / 0.9);color:#231f20}::highlight(oxf-focus){background-color:rgb(215 35 39 / 0.3)}@media print{.oxf{display:none}}"},{"filePath":"banner.css","content":"#banner{background-color:#d72327!important}"}]}
{"page":{"pagePath":"api-reference/whatsapp/media","slug":"/api-reference/whatsapp/media","pageMetadata":{"title":"Media","description":"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.","href":"/api-reference/whatsapp/media"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use these endpoints to upload media files (images, documents, videos) for use in\ntemplate and session WhatsApp messages, and to retrieve or download previously\nuploaded media.`}),`\n`,_jsx(Heading,{level:`2`,id:`media-upload`,children:`Media Upload`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /oapi/wa/mediaupload`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(ParamField,{header:`apikey`,type:`string`,required:true,id:`param-apikey`,children:_jsx(_components.p,{children:`API key generated for the TUC associated with the sending phone number.`})}),`\n`,_jsx(ParamField,{header:`accept`,type:`string`,id:`param-accept`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`application/json`})})}),`\n`,_jsxs(_components.p,{children:[`Uploads a local file (multipart) or a remote file URL and returns a media ID/URL you\ncan reference from send-message payloads (e.g. `,_jsx(_components.code,{children:`image.id`}),`, `,_jsx(_components.code,{children:`document.id`}),`).`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsx(ParamField,{body:`phone_number`,type:`string`,required:true,id:`param-phone-number`,children:_jsx(_components.p,{children:`WhatsApp phone number (with country code) for which media is being uploaded.`})}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsx(_components.p,{children:`Media file to upload (image, document, video, etc.), sent as multipart form data.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`As an alternative to `,_jsx(_components.code,{children:`file`}),`, send a `,_jsx(_components.code,{children:`url`}),` form field holding a remote file URL. Send one\nor the other, not both.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`sample-curl-request`,children:`Sample cURL request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.onexaura.com/oapi/wa/mediaupload'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accept: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'apikey: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'phone_number=\"919217160065\"'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'file=@\"\u003cmedia file name>\"'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`sample-json-payload`,children:`Sample JSON payload`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"919217160065\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"binary file data\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`sample-response-payload`,children:`Sample response payload`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Media ID assigned to the uploaded file.`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"success\"`}),` on successful upload.`]})}),`\n`,_jsx(ResponseField,{name:`http_status`,type:`integer`,id:`param-http-status`,children:_jsx(_components.p,{children:`HTTP status code of the upload operation.`})}),`\n`,_jsx(ResponseField,{name:`onextel_media_url`,type:`string`,id:`param-onextel-media-url`,children:_jsx(_components.p,{children:`Hosted URL of the uploaded media file.`})}),`\n`,_jsx(CodeBlock,{filename:`Response`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"27015499406910550\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"http_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"onextel_media_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://warcssm.1xtel.co/media/media/543e3517-9efc-4e72-8c0c-5027530f1cc7/titan20.jpeg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error`}),_jsx(_components.th,{children:`Response`}),_jsx(_components.th,{children:`Error Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid Method`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`405`}),_jsx(_components.td,{children:`Method Not Allowed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Missing ApiKey`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`114 (200)`}),_jsx(_components.td,{children:`NO VALID AUTH_KEY FOUND`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid ApiKey`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`AUTHENTICATION FAILURE`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Missing Content-Type`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Missing Content-Type / Missing form data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid Content-Type`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Content-Type must be multipart/form-data or application`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Missing phone_number`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`phone_number is mandatory`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Neither a file nor URL is provided`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Either the file or the URL must be provided`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Both the file and URL are provided`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Only one file or URL can be provided`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid Json`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Invalid JSON`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Upstream Req Failure`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:`Reason of Failure can be multiple`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Upstream service unavailable`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:`Service unavailable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Unknown Request`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal server error - unexpected arguments`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`fetch-media-url`,children:`Fetch Media URL`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /oapi/wa/media`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(ParamField,{header:`apiKey`,type:`string`,required:true,id:`param-api-key`,children:_jsx(_components.p,{children:`API key generated for the TUC associated with the sending phone number.`})}),`\n`,_jsx(_components.p,{children:`Retrieves the hosted URL for a previously uploaded media item by its media ID.`}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`mediaId`,type:`string`,required:true,id:`param-media-id`,children:_jsx(_components.p,{children:`Media ID returned from the Media Upload endpoint.`})}),`\n`,_jsx(ParamField,{query:`phoneNumber`,type:`string`,required:true,id:`param-phone-number-1`,children:_jsx(_components.p,{children:`WhatsApp sender phone number associated with the media.`})}),`\n`,_jsx(Heading,{level:`3`,id:`sample-curl-request-2`,children:`Sample cURL request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.onexaura.com/oapi/wa/media?mediaId=YOUR_MEDIA_ID\u0026phoneNumber=919999999999'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'apiKey: YOUR_API_KEY'`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`download-media`,children:`Download Media`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /oapi/wa/download-media`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(ParamField,{header:`apiKey`,type:`string`,required:true,id:`param-api-key-1`,children:_jsx(_components.p,{children:`API key generated for the TUC associated with the sending phone number.`})}),`\n`,_jsx(_components.p,{children:`Downloads the media file content for a given hosted media URL.`}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-2`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`mediaUrl`,type:`string`,required:true,id:`param-media-url`,children:_jsxs(_components.p,{children:[`Hosted media URL (e.g. the `,_jsx(_components.code,{children:`onextel_media_url`}),` value returned from Media Upload, or the\nURL returned from Fetch Media URL).`]})}),`\n`,_jsx(ParamField,{query:`phoneNumber`,type:`string`,required:true,id:`param-phone-number-2`,children:_jsx(_components.p,{children:`WhatsApp sender phone number associated with the media.`})}),`\n`,_jsx(Heading,{level:`3`,id:`sample-curl-request-3`,children:`Sample cURL request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.onexaura.com/oapi/wa/download-media?mediaUrl=YOUR_MEDIA_URL\u0026phoneNumber=919999999999'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'apiKey: YOUR_API_KEY'`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Media","description":"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.","href":"/api-reference/whatsapp/media"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Media Upload","slug":"media-upload","depth":2,"children":[{"title":"Request parameters","slug":"request-parameters","depth":3,"children":[]},{"title":"Sample cURL request","slug":"sample-curl-request","depth":3,"children":[]},{"title":"Sample JSON payload","slug":"sample-json-payload","depth":3,"children":[]},{"title":"Sample response payload","slug":"sample-response-payload","depth":3,"children":[]},{"title":"Error codes","slug":"error-codes","depth":3,"children":[]}]},{"title":"Fetch Media URL","slug":"fetch-media-url","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters","depth":3,"children":[]},{"title":"Sample cURL request","slug":"sample-curl-request-2","depth":3,"children":[]}]},{"title":"Download Media","slug":"download-media","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-2","depth":3,"children":[]},{"title":"Sample cURL request","slug":"sample-curl-request-3","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/onextel-09023014/3fd9b1eec8d14911/feedback.js"],"subdomain":"onextel-09023014","siteName":"OneXtel","title":"Media - OneXtel","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T11:41:30.246Z","originalFileLocation":"api-reference/whatsapp/media.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OneXtel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Media - OneXtel\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OneXtel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://onextel-09023014.mintlify.site/_mintlify/api/og/v2?division=WhatsApp\u0026amp;title=Media\u0026amp;description=Upload+media+for+use+in+WhatsApp+messages%2C+fetch+a+media+URL+by+ID%2C+and+download+media+by+URL.\u0026amp;theme=bf91e30fa1f84b6896b98302\u0026amp;signature=dabf70e10371a2a77cb72112c8d2014c6165a7679ad057c73c826667a247164c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Media - OneXtel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://onextel-09023014.mintlify.site/_mintlify/api/og/v2?division=WhatsApp\u0026amp;title=Media\u0026amp;description=Upload+media+for+use+in+WhatsApp+messages%2C+fetch+a+media+URL+by+ID%2C+and+download+media+by+URL.\u0026amp;theme=bf91e30fa1f84b6896b98302\u0026amp;signature=dabf70e10371a2a77cb72112c8d2014c6165a7679ad057c73c826667a247164c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OneXtel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#242C6A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/whatsapp/media.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://onextel-09023014.mintlify.app/#organization\",\"name\":\"OneXtel\",\"url\":\"https://onextel-09023014.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/Xsymbol.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=ca8a83762561eb064c1ebb35709d6f77\"}},{\"@type\":\"WebSite\",\"@id\":\"https://onextel-09023014.mintlify.app#website\",\"name\":\"OneXtel\",\"url\":\"https://onextel-09023014.mintlify.app\",\"publisher\":{\"@id\":\"https://onextel-09023014.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media#webpage\",\"url\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media\",\"name\":\"Media\",\"description\":\"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.\",\"dateModified\":\"2026-11-26T11:41:30.246Z\",\"isPartOf\":{\"@id\":\"https://onextel-09023014.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WhatsApp\",\"item\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Media\",\"item\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media#article\",\"headline\":\"Media\",\"name\":\"Media\",\"description\":\"Upload media for use in WhatsApp messages, fetch a media URL by ID, and download media by URL.\",\"url\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media\",\"mainEntityOfPage\":{\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/whatsapp/media#webpage\"},\"dateModified\":\"2026-11-26T11:41:30.246Z\",\"publisher\":{\"@id\":\"https://onextel-09023014.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://onextel-09023014.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OneXtel\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OneXtel\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/whatsapp/media.md","siteName":"OneXtel","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/about-onextel"}]},{"tab":"API Reference","groups":[{"group":"Tools","pages":[{"title":"Validate a payload","href":"/api-reference/payload-validator"}]},{"group":"WhatsApp","pages":[{"title":"WhatsApp API Overview","href":"/api-reference/whatsapp/overview"},{"title":"Create WhatsApp Template","href":"/api-reference/whatsapp/templates-create"},{"title":"Fetch WhatsApp Templates","href":"/api-reference/whatsapp/templates-fetch"},{"title":"Send WhatsApp Template Message","href":"/api-reference/whatsapp/send-template-message"},{"title":"Send Session Messages","description":"Send non-template (session/interactive) WhatsApp messages — text, media, address, contact, URL button, list, media carousel, and reply — through the OneXtel /oapi/send_sms API.","href":"/api-reference/whatsapp/send-session-messages"},{"title":"Media","href":"/api-reference/whatsapp/media"},{"title":"Opt In / Opt Out","description":"Manage WhatsApp marketing and utility message consent: list, add, and remove opt-in and opt-out entries per recipient number.","href":"/api-reference/whatsapp/opt-in-opt-out"},{"group":"Callbacks","pages":[{"title":"WhatsApp Callback Events","href":"/api-reference/whatsapp/callback-events"},{"title":"Callback: Incoming Messages","href":"/api-reference/whatsapp/callback-incoming-messages"},{"title":"Callback: Delivery Notification","href":"/api-reference/whatsapp/callback-delivery-notification"},{"title":"Callback: Button Clicks","href":"/api-reference/whatsapp/callback-button-clicks"},{"title":"Callback: URL Click","href":"/api-reference/whatsapp/callback-url-click"}]},{"title":"WhatsApp Error Codes","href":"/api-reference/whatsapp/error-codes"}]},{"group":"RCS","pages":[{"title":"RCS Messaging Overview","href":"/api-reference/rcs/overview"},{"title":"RCS Templates","href":"/api-reference/rcs/templates"},{"title":"Send an RCS Template Message","href":"/api-reference/rcs/send-template-message"},{"title":"Send Non-Template Messages","href":"/api-reference/rcs/send-messages"},{"title":"Media Upload","href":"/api-reference/rcs/media"},{"title":"Opt In / Opt Out","href":"/api-reference/rcs/opt-in-opt-out"},{"title":"RCS Delivery Notification","href":"/api-reference/rcs/callback-delivery-notification"},{"title":"RCS Operator Error Codes","href":"/api-reference/rcs/error-codes"}]},{"group":"SMS (India)","pages":[{"title":"India SMS Overview","href":"/api-reference/sms/overview"},{"title":"Send SMS — India","href":"/api-reference/sms/send-sms-omni"},{"title":"DLR Callback","href":"/api-reference/sms/dlr-callback"},{"title":"Clicker Callback","href":"/api-reference/sms/clicker-callback"},{"title":"Pull Message Status","href":"/api-reference/sms/get-status"},{"title":"Standalone URL Shortener","href":"/api-reference/sms/url-shortener"},{"title":"India SMS Error Codes","href":"/api-reference/sms/error-codes"}]},{"group":"SMS (International)","pages":[{"title":"International SMS overview","href":"/api-reference/sms-international/overview"},{"title":"Send SMS — International","sidebarTitle":"Send SMS","href":"/api-reference/sms-international/send-sms"},{"title":"DLR callback","href":"/api-reference/sms-international/dlr-callback"},{"title":"International SMS response codes","sidebarTitle":"Response codes","href":"/api-reference/sms-international/error-codes"}]},{"group":"OmniChannel","pages":[{"title":"OmniChannel API Overview","href":"/api-reference/omnichannel/overview"},{"title":"Fallback API","href":"/api-reference/omnichannel/fallback"},{"title":"Message Status","href":"/api-reference/omnichannel/message-status"},{"title":"Message History","href":"/api-reference/omnichannel/message-history"}]},{"group":"Verify","pages":[{"title":"Verify API Overview","href":"/api-reference/verify/overview"},{"title":"Create and dispatch a PIN","openapi":"POST /v1/pins","href":"/api-reference/verify/create-and-dispatch-a-pin"},{"title":"Resend a PIN","openapi":"POST /v1/pins/{pinId}/resend","href":"/api-reference/verify/resend-a-pin"},{"title":"Verify a PIN","openapi":"POST /v1/pins/{pinId}/verify","href":"/api-reference/verify/verify-a-pin"},{"title":"List templates","openapi":"GET /v1/templates","href":"/api-reference/verify/list-templates"},{"title":"List channel accounts","openapi":"GET /v1/channel-accounts","href":"/api-reference/verify/list-channel-accounts"},{"title":"Verify Error Codes","href":"/api-reference/verify/error-codes"},{"group":"Pins","pages":[{"title":"Create and dispatch a PIN","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml post /v1/pins","href":"/api-reference/pins/create-and-dispatch-a-pin"},{"title":"Resend a PIN","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml post /v1/pins/{pinId}/resend","href":"/api-reference/pins/resend-a-pin"},{"title":"Verify a PIN","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml post /v1/pins/{pinId}/verify","href":"/api-reference/pins/verify-a-pin"}]},{"group":"Templates","pages":[{"title":"List templates","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml get /v1/templates","href":"/api-reference/templates/list-templates"}]},{"group":"Channel Accounts","pages":[{"title":"List channel accounts","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml get /v1/channel-accounts","href":"/api-reference/channel-accounts/list-channel-accounts"}]}]},{"group":"Truecaller","pages":[{"title":"Truecaller API Overview","href":"/api-reference/truecaller/overview"},{"title":"Rich messages","href":"/api-reference/truecaller/rich-messages"},{"title":"Webhooks","href":"/api-reference/truecaller/webhooks"},{"title":"Errors","href":"/api-reference/truecaller/errors"},{"group":"Messages","pages":[{"title":"Send a message","openapi":"api-reference/truecaller/openapi.yaml POST /v1/messages","href":"/api-reference/truecaller/send-message"},{"title":"Get a message","openapi":"api-reference/truecaller/openapi.yaml GET /v1/messages/{id}","href":"/api-reference/truecaller/get-message"}]},{"group":"Templates","pages":[{"title":"List templates","openapi":"api-reference/truecaller/openapi.yaml GET /v1/templates","href":"/api-reference/truecaller/list-templates"},{"title":"Create a template","openapi":"api-reference/truecaller/openapi.yaml POST /v1/templates","href":"/api-reference/truecaller/create-template"},{"title":"Get a template","openapi":"api-reference/truecaller/openapi.yaml GET /v1/templates/{id}","href":"/api-reference/truecaller/get-template"},{"title":"Update a template","openapi":"api-reference/truecaller/openapi.yaml PUT /v1/templates/{id}","href":"/api-reference/truecaller/update-template"},{"title":"Submit a template","openapi":"api-reference/truecaller/openapi.yaml POST /v1/templates/{id}/submit","href":"/api-reference/truecaller/submit-template"},{"title":"Preview a template","openapi":"api-reference/truecaller/openapi.yaml POST /v1/templates/{id}/preview","href":"/api-reference/truecaller/preview-template"},{"title":"Delete a template","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/templates/{id}","href":"/api-reference/truecaller/delete-template"},{"title":"Upload media","openapi":"api-reference/truecaller/openapi.yaml POST /v1/media","href":"/api-reference/truecaller/upload-media"}]},{"group":"Contact lists","pages":[{"title":"List contact lists","openapi":"api-reference/truecaller/openapi.yaml GET /v1/lists","href":"/api-reference/truecaller/list-contact-lists"},{"title":"Create a contact list","openapi":"api-reference/truecaller/openapi.yaml POST /v1/lists","href":"/api-reference/truecaller/create-contact-list"},{"title":"Add contacts","openapi":"api-reference/truecaller/openapi.yaml POST /v1/lists/{id}/contacts","href":"/api-reference/truecaller/add-contacts"},{"title":"Check an audience","openapi":"api-reference/truecaller/openapi.yaml POST /v1/lists/validate","href":"/api-reference/truecaller/validate-audience"},{"title":"Get a contact list","openapi":"api-reference/truecaller/openapi.yaml GET /v1/lists/{id}","href":"/api-reference/truecaller/get-contact-list"},{"title":"Delete a contact list","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/lists/{id}","href":"/api-reference/truecaller/delete-contact-list"},{"title":"Opt a number out","openapi":"api-reference/truecaller/openapi.yaml POST /v1/opt-outs","href":"/api-reference/truecaller/opt-out"},{"title":"Remove an opt-out","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/opt-outs/{phone}","href":"/api-reference/truecaller/remove-opt-out"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns","href":"/api-reference/truecaller/list-campaigns"},{"title":"Create a campaign","openapi":"api-reference/truecaller/openapi.yaml POST /v1/campaigns","href":"/api-reference/truecaller/create-campaign"},{"title":"Get a campaign","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns/{id}","href":"/api-reference/truecaller/get-campaign"},{"title":"Launch a campaign","openapi":"api-reference/truecaller/openapi.yaml POST /v1/campaigns/{id}/launch","href":"/api-reference/truecaller/launch-campaign"},{"title":"Cancel a campaign","openapi":"api-reference/truecaller/openapi.yaml POST /v1/campaigns/{id}/cancel","href":"/api-reference/truecaller/cancel-campaign"},{"title":"Delete a draft campaign","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/campaigns/{id}","href":"/api-reference/truecaller/delete-campaign"},{"title":"Campaign report","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns/{id}/report","href":"/api-reference/truecaller/campaign-report"},{"title":"Export campaign messages","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns/{id}/messages.csv","href":"/api-reference/truecaller/export-campaign-messages"}]},{"group":"Senders","pages":[{"title":"List senders","openapi":"api-reference/truecaller/openapi.yaml GET /v1/senders","href":"/api-reference/truecaller/list-senders"}]}]}]},{"tab":"Plugins","pages":[{"title":"Plugins","href":"/plugins/overview"}]},{"tab":"Archived APIs","pages":[{"title":"Archived APIs","href":"/legacy/overview"}]}]},"basePath":"","title":"Media - OneXtel","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["10e4515597"],"chunks":["BannerMarkdown-74C-oA3c.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}