Kapso API icon

Kapso API

Send WhatsApp messages, templates, flows, media, contacts, broadcasts, and inbox records through Kapso. Choose a resource, then follow each operation setup hints.

Media → Upload From URL

AI-generated

Summary

Upload media from a public URL into the media store of a specified WhatsApp account in Kapso. Specify the WhatsApp phone number (by name or ID), provide the source URL of the media file, and select the storage delivery method on Kapso's platform.

Inputs

  • Phone Number Name or ID (required) — Select the WhatsApp account (phone number) that will store the ingested media. Options are loaded from connected Kapso numbers; you can pick from the list or specify an ID via an expression.
  • Source URL (required) — Provide the publicly accessible HTTPS URL of the media file to upload into the selected WhatsApp account's media store. URL must be valid and between 1 to 2048 characters.
  • Delivery — Choose the delivery type determining how Kapso stores the media: 'Meta Media' or 'Meta Resumable Asset'. Defaults to 'Meta Media'.

Output shape

a single JSON object representing the uploaded media response from Kapso API

The operation returns the API response after successfully uploading the media to the specified WhatsApp account. Errors or failures are returned according to Kapso API error format.

Examples

Example 1: User wants to add an image from a web URL into their WhatsApp media via Kapso.

Provide the phone number ID or select from options, assign the source HTTPS URL of the image, and choose the preferred delivery method for media storage.

Links

Discussion