omnichannelmessenger
  1. Image
omnichannelmessenger
  • Sent API
    • Image
      • URL
      • File Base64
    • Video
      • URL
      • File Base64
    • Audio
      • URL
      • File Base64
    • Document
      • URL
      • File Base64
    • Text
      POST
    • Contact
      POST
    • Sticker
      POST
    • Async Status
      POST
  • Sent Group API
    • Image
      • File Base64
        POST
      • URL
        POST
    • Video
      • URL
      • File Base64
    • Audio
      • URL
      • File Base64
    • Document
      • URL
      • File Base64
    • Text
      POST
    • Async Status
      POST
  • Administration
    • User Info
      POST
    • API Report
      POST
    • Purge The Report
      POST
    • Change Profile Name
      POST
  • Feature
    • Short URL
      • Generate
      • Query
    • Generate Login by Code
      POST
    • Generate Login QR
      POST
    • Chat History
      POST
    • Check Destination Info
      POST
    • Get Group Member
      POST
    • Logout
      POST
    • Webhook BOT
      POST
  • Scheduler
    • Scheduler Message Info
    • Remove Schedule Message
  • Dev
    • Text Group
  1. Image

URL

POST
/api/sendImage
Sending Image with or without caption to Group by Group ID.
Number as group invitation link
Use url if source image from online
Use caption message contains caption
Use asyncFlag and fill it with on to enable async request with message id as return

Request

Body Params application/json

Example
{
    "number": "qMhSDalKq2vfDmmBn2PU",
    "key": "XXX123XXX",
    "caption": "Hello World",
    "url": {{urlImageSample}},
    "isGroup": true
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.omnichannelmessenger.com/api/sendImage' \
--header 'Content-Type: application/json' \
--data-raw '{
    "number": "qMhSDalKq2vfDmmBn2PU",
    "key": "XXX123XXX",
    "caption": "Hello World",
    "url": "https://www.sample-videos.com/img/Sample-jpg-image-100kb.jpg",
    "isGroup": true
}'

Responses

🟢200Response
application/json
Body

Example
{}
🟠403Key not valid
Modified at 2024-12-29 07:19:19
Previous
File Base64
Next
URL
Built with