Messages

Send a message

Creates a new message and sends it. Supports text messages and media messages.

post/message

Request body

senderstring

The phone number sending the message

recipientstring

The phone number receiving the message

messagestring

The message content

mediastring[] nullable

Media files to attach to the message

urlstring nullable

URL to a media file to attach to the message

Example request

{
  "sender": "+18005551234",
  "recipient": "+18005556789",
  "message": "Hello, this is a test message",
  "url": "https://example.com/image.jpg"
}

Response

Message created successfully

dataobject

The created message

Changes

No recorded changes to this endpoint across all 1 revision of this API.