⚙️
Channel360
HomeSign InSign Up
  • 🏠ChannelMobile Docs
  • Quick Start
    • Channel360 API
    • AgentChat API
    • Channel360 Guide
      • Dashboard
      • Templates
        • Template Creation
        • Template Configuration
      • Groups
        • Deleting Groups
        • Managing Group Details
      • Campaign
        • Campaign Creation
        • Campaign Statistics
      • Subscribers
        • Managing Subscribers
        • Subscriber Profile
  • Whatsapp Business API
    • WABA Prerequisites
    • WhatsApp Account Health
  • Our Products
    • Products
      • AgentChat
      • SMS
      • Broadcasting
      • ChatBot
  • API Usage
    • Using the Channel360 V1.1 API
      • Notifications
      • Templates
        • Create Templates
        • Read / Get Templates
        • Update Templates
        • Delete Templates
      • Webhooks
      • Conversations
        • Send Interactive Messages
        • Send Text Message
        • Send Media Message
          • Send Video Message
          • Send Image Message
          • Send File Message
        • Get Conversation History
  • Reference
    • API Reference
      • AgentChat API
      • Channel360 V1.1 API
  • FAQs
    • General FAQs
    • Channel360 FAQs
      • Templates
      • Notification Status
    • Technical FAQs
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. API Usage
  2. Using the Channel360 V1.1 API
  3. Conversations
  4. Send Media Message

Send Image Message

In this page we show you how to send a message containing an image.

PreviousSend Video MessageNextSend File Message

Last updated 1 year ago

Was this helpful?

An image conversation type refers to a message that includes an image, and optionally, text and/or actions.

Arguments/Parameters are additional pieces of information that you include in the request to customise the behavior of the API or to filter the results returned by the API.

In this table below you'll see the Arguments for this request.

Arguments
Explaination

mediaURL *required

Provides the URL where the file content is hosted or located.

text (optional)

The text content of the message. Maximum length of 4096 characters.

altText (optional)

A description of the image that's optional, provided mainly for accessibility reasons. By default, it'll be saved using the image file's name.

actions (optional)

An array of actions related to the message.

Both examples demonstrate how to construct a request to send an image message to a WhatsApp user using the specified API endpoint.

The placeholders indicate that certain values, such as image URLs and organization/app user IDs, will be provided dynamically or replaced with actual values when making the request.

{
    "type": "image",
    "mediaUrl": "https://example.org/test.jpeg",
    "altText": "Here is an image attached to the message"
}
curl --location 'channel360.co.za/v1.1/org/{{orgId}}/whatsapp/appuser/{{appUser}}/reply' \
--data '{
    "type": "image",
    "mediaUrl": "https://example.org/test.jpeg",
    "altText": "Here is an image attached to the message"
}'

The provided YAML configuration below defines an API specification using the OpenAPI (formerly known as Swagger) format.

Send image request

post

API request to send an image

Path parameters
orgIdstringRequired
appUserstringRequired
Body
typestring · enumRequiredExample: imagePossible values:
mediaUrlstringRequiredExample: https://example.org/test.png
altTextstringRequiredExample: Here is an image attached to the message
Responses
200
Successfully Replied.
application/json
post
POST /V1.1/org/{orgId}/whatsapp/appuser/{appUser}/reply HTTP/1.1
Host: www.channel360.co.za
Content-Type: application/json
Accept: */*
Content-Length: 111

{
  "type": "image",
  "mediaUrl": "https://example.org/test.png",
  "altText": "Here is an image attached to the message"
}
200

Successfully Replied.

{
  "conversation": {
    "_id": "7g5a782574s53d87487537642",
    "appMakerLastRead": 8475635121.871,
    "appUserLastRead": 9593289247.783,
    "unreadCount": 3
  },
  "message": {
    "_id": "662f89b15833c2b5bc9ae96e",
    "role": "appMaker",
    "authorId": "05thfg521jhf505h",
    "type": "image",
    "avatarUrl": "https://www.gravatar.com/avatar/00000000000000000000000000000000.png?s=200&d=mm",
    "mediaUrl": "https://example.org/test.png",
    "mediaSize": 5190,
    "altText": "Here is an image attached to the message",
    "received": 1714391473.791,
    "mediaType": "image/png",
    "source": {
      "type": "api"
    }
  }
}