Actions28
- Message Actions
- Chat Actions
- Contact Actions
- Session Actions
- Media Actions
- Storage Actions
- Webhook Actions
- Ticket Actions
Media → Upload from URL
AI-generatedSummary
Uploads a media file to a WAOtomatis session by giving the API a public URL to fetch, and returns the API's upload response (including the media id usable in later sends).
Inputs
- Session (required) — The WAOtomatis session (connected WhatsApp number) to upload to. Pick from a searchable list or enter an ID (letters, digits, underscore, hyphen). Errors if empty.
- Media URL (required) — Public URL of the file (e.g. https://example.com/file.pdf) that the WAOtomatis API will fetch itself.
- MIME Type — Overrides the MIME type. If left empty it is not sent and the API infers it from the fetched response.
Output shape
One output item per input item, containing the JSON response from POST /v1/sessions/{sessionId}/media.
The exact response fields are defined by the API, not the node. The Media ID in the response can be used with Message → Send (Media Source: By Media ID). Errors are thrown as NodeApiError with the API's message and code, unless Continue On Fail is on, in which case an item with an error message is emitted.
Examples
Example 1: Upload a PDF from a public link, then send it as a WhatsApp document.
Resource: Media, Operation: Upload from URL, Session: pick from list, Media URL: https://example.com/invoice.pdf. Pass the returned media id into Message → Send.
Example 2: Force the MIME type when the host serves a generic content type.
Media URL: {{ $json.fileUrl }}, MIME Type: image/jpeg.
