Skip to main content
POST
/
messages
/
send
Send a message
curl --request POST \
  --url https://api.bitbybit.studio/whatsapp/open/v1/messages/send \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "to": "6281234567890",
  "message": "Hello! This is a sample message from WhatsApp API.",
  "sources": "whatsapp cloud api",
  "imageUrl": "https://example.com/image.jpg",
  "ignoreActiveTicket": false,
  "countryCode": "ID"
}
'
{
  "data": {
    "messageId2": "<string>",
    "timestamp": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Create one in Settings > Developer.

Body

application/json
to
string
required

Destination phone number in WhatsApp format (e.g., 628xxxxxxxxxx)

Example:

"6281234567890"

message
string
required

Message content to be sent

Example:

"Hello! This is a sample message from WhatsApp API."

sources
enum<string>
required

Messaging channel to use

Available options:
whatsapp cloud api,
whatsapp coex
imageUrl
string

Image URL — if provided, sends an image message instead of text

Example:

"https://example.com/image.jpg"

ignoreActiveTicket
boolean
default:false

If true, skip sending when the chat is actively handled by an agent

countryCode
string | null

Country code for number formatting (e.g., ID, EN, IN)

Example:

"ID"

Response

Message sent successfully

data
object