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.

Message → Send Document

AI-generated

Summary

Send a WhatsApp document to a recipient through the selected Kapso phone number, using either a Meta media ID or a public URL. You can add an optional caption, filename, reply context, and callback data.

Inputs

  • Phone Number Name or ID — Kapso WhatsApp phone number used to send the document; choose a loaded number or provide its ID.
  • Recipient Phone (required) — Recipient’s Meta-format phone number: 8–15 digits, without a plus sign or spaces.
  • Media Source — Choose Media ID or Public Link. Defaults to Media ID.
  • Media ID (required) — Required when Media Source is Media ID. Provide the ID of uploaded media or a Kapso Trigger media attachment.
  • Public URL (required) — Required when Media Source is Public Link. Provide an HTTP or HTTPS URL for the document.
  • Caption (optional) — Plain-text caption shown below the document, up to 1024 characters.
  • Filename (optional) — Filename displayed to the recipient, up to 240 characters.
  • Reply To Message ID (optional) — WAMID of the message to reply to; supports reply context for this send operation.
  • Callback Data (optional) — Opaque metadata, up to 512 characters, returned in message status webhooks and not shown to the recipient.

Output shape

A single Kapso API response item for the send request.

The supplied source excerpt does not show the request execution or response mapping, so the exact response fields are unspecified.

Links

Discussion