sendport messages▾
sendport messages
Send, list, inspect and tail messages.
$
sendport messages sendSend a message. --text needs an open session window; --template always works.
Usage
sendport messages send --to <e164> [--text <body> | --template <name>]| Flag | Type | Description |
|---|---|---|
| --to <e164> | string | Recipient, e.g. +201005550123. Required. |
| --text <body> | string | Free-form body. Mutually exclusive with --template. |
| --template <name> | string | Approved template name. |
| --lang <code> | string | Template language. Default en. |
| --param <value> | string[] | Body placeholder value, repeatable and positional. |
| --media <path|url> | string | Attach a file. Uploads it first if given a local path. |
| --from <e164> | string | Sending number when the account has several. |
| --dry-run | boolean | Print 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 lsList recent messages, newest first.
Usage
sendport messages ls [--to <e164>] [--status <status>] [--limit <n>]| Flag | Type | Description |
|---|---|---|
| --to <e164> | string | Only messages with this contact. |
| --status <status> | enum | accepted, sent, delivered, read, failed. |
| --since <duration> | string | Relative window, e.g. 2h, 7d. |
| --limit <n> | number | Rows to return. Default 25. |
$
sendport messages getShow one message by msg_… or wamid.…, including its full status timeline.
Usage
sendport messages get <id>| Flag | Type | Description |
|---|---|---|
| --json | boolean | Raw JSON. |
$
sendport messages watchStream messages and status changes to the terminal as they happen. Ctrl-C to stop.
Usage
sendport messages watch [--to <e164>]| Flag | Type | Description |
|---|---|---|
| --to <e164> | string | Only this conversation. |
| --inbound | boolean | Inbound only. |