Qpien Api Docs
Help centerMain website
Help centerMain website
  1. Modules
  • Overview
  • Get started
    • Authentication
    • Scopes
  • Modules
    • Contacts
    • CustomerPersons
    • Conversations
    • Messages
    • Channels
    • WhatsappBusinessTemplates
    • SendMessages
  • Webhooks
    • Overview
Help centerMain website
Help centerMain website
  1. Modules

SendMessages

Description#

The SendMessages module is used to send messages to WhatsApp channels via the Qpien API. It supports both WhatsApp Web and WhatsApp Business integrations.
The phone that will send the message must be connected via the Qpien panel.

Supported Channel Types#

WHATS_APP_WEB: WhatsApp Web integration
WHATS_APP_BUSINESS: WhatsApp Business API integration

Phone Number Format#

All phone numbers must begin with the country code (Turkey's country code is 90).
Example: 905123456789

Mutations#

Send Message#

Use this mutation to send a new message using WhatsApp platforms
Input:
Response:
FieldTypeDescription
contentStringPlain text content of the message.
channelTypeChannelTypeChannel through which the message will be sent (e.g., WhatsApp Web, Whatsapp Business).
senderChannelIdStringIdentifier of the sender's channel.
receiverIds[String]List of recipient identifiers who will receive the message.
templateIdStringIdentifier of the message template to use (mainly for structured messages).
templateParams[ExternalCreateMessageByWhatsappTemplateParam]Parameters required for populating the WhatsApp template message.
media[Media]Media attachments (images, videos, files) to include with the message.

Example Usage#

Mutation Example — Send Message Via Whatsapp Business#

Bash (cURL)
Node.js

Mutation Example — Send Message Via Whatsapp Web#

Bash (cURL)
Node.js
Modified at 2025-09-30 09:47:35
Previous
WhatsappBusinessTemplates
Next
Overview
Built with