cURL
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>" }
Session token or API key
Channel ID to send through
1
Message content payload
Message type (e.g. text, image, template)
Conversation ID (optional)
Recipient phone number
Recipient phone number (alias for to)
Created
Show child attributes
A URL to the JSON Schema for this object.
"https://example.com/schemas/MessageCreatedOutputBody.json"