sendport messages▾

sendport messages

Send, list, inspect and tail messages.

$sendport messages send

Send a message. --text needs an open session window; --template always works.

Usage
sendport messages send --to <e164> [--text <body> | --template <name>]
FlagTypeDescription
--to <e164>stringRecipient, e.g. +201005550123. Required.
--text <body>stringFree-form body. Mutually exclusive with --template.
--template <name>stringApproved template name.
--lang <code>stringTemplate language. Default en.
--param <value>string[]Body placeholder value, repeatable and positional.
--media <path|url>stringAttach a file. Uploads it first if given a local path.
--from <e164>stringSending number when the account has several.
--dry-runbooleanPrint the request body without sending.
Examples
# free-form, inside the 24h window
sendport messages send --to +201005550123 --text "Your table is ready."

# template with two body placeholders
sendport messages send --to +201005550123 \
  --template order_shipped --lang en \
  --param "A-4417" --param "Tuesday"

# attach a local file
sendport messages send --to +201005550123 --media ./receipt.pdf
$sendport messages ls

List recent messages, newest first.

Usage
sendport messages ls [--to <e164>] [--status <status>] [--limit <n>]
FlagTypeDescription
--to <e164>stringOnly messages with this contact.
--status <status>enumaccepted, sent, delivered, read, failed.
--since <duration>stringRelative window, e.g. 2h, 7d.
--limit <n>numberRows to return. Default 25.
$sendport messages get

Show one message by msg_… or wamid.…, including its full status timeline.

Usage
sendport messages get <id>
FlagTypeDescription
--jsonbooleanRaw JSON.
$sendport messages watch

Stream messages and status changes to the terminal as they happen. Ctrl-C to stop.

Usage
sendport messages watch [--to <e164>]
FlagTypeDescription
--to <e164>stringOnly this conversation.
--inboundbooleanInbound only.