POST
/
v1
/
messages
Send a message
curl --request POST \
  --url https://api.wazapin.id/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_id": "<string>",
  "content": "<unknown>",
  "type": "<string>",
  "conversation_id": "<string>",
  "to": "<string>",
  "to_phone": "<string>"
}
'
{
  "data": {
    "channel_id": "<string>",
    "content": "<unknown>",
    "conversation_id": "<string>",
    "created_at": "<string>",
    "delivered_at": "<string>",
    "direction": "<string>",
    "error": "<string>",
    "error_code": "<string>",
    "external_message_id": "<string>",
    "failed_at": "<string>",
    "id": "<string>",
    "max_retries": 123,
    "metadata": "<unknown>",
    "organization_id": "<string>",
    "provider_message_id": "<string>",
    "queued_at": "<string>",
    "read_at": "<string>",
    "retry_count": 123,
    "sender_phone": "<string>",
    "sending_at": "<string>",
    "sent_at": "<string>",
    "sent_by": "<string>",
    "sent_via": "<string>",
    "status": "<string>",
    "to_phone": "<string>",
    "type": "<string>",
    "updated_at": "<string>"
  },
  "$schema": "<string>"
}

Authorizations

Authorization
string
header
required

Session token or API key

Body

application/json
channel_id
string
required

Channel ID to send through

Minimum string length: 1
content
any
required

Message content payload

type
string
required

Message type (e.g. text, image, template)

Minimum string length: 1
conversation_id
string

Conversation ID (optional)

to
string

Recipient phone number

to_phone
string

Recipient phone number (alias for to)

Response

Created

data
object
required
$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/MessageCreatedOutputBody.json"