Skip to content

Messaging Commands

The webex messaging (alias: webex msg) subcommand provides access to the Webex Messaging APIs for managing rooms, messages, teams, and webhooks.

ResourceDescription
attachment-actionsAttachment action management
ecm-folder-linkingECM folder linking
eventsEvent management
hdsHybrid Data Security management
membershipsRoom membership management
messagesMessage management
peoplePeople in messaging context
room-tabsRoom tab management
roomsRoom (space) management
team-membershipsTeam membership management
teamsTeam management
webhooksWebhook management
Terminal window
# List resources
webex messaging <resource> list
# Get by ID
webex messaging <resource> get --id "..."
# Create
webex messaging <resource> create --body-file config.json
# Update
webex messaging <resource> update --id "..." --body-file updated.json
# Delete
webex messaging <resource> delete --id "..."
Terminal window
# List rooms
webex messaging rooms list --paginate
# List messages in a room
webex messaging messages list --room-id "ROOM_ID"
# List teams
webex messaging teams list
# List team memberships
webex messaging team-memberships list --team-id "TEAM_ID"
# List webhooks
webex messaging webhooks list
# List room memberships
webex messaging memberships list --room-id "ROOM_ID"

The existing files array, in --body or --body-file JSON, accepts one attachment. Entries starting with http:// or https:// keep the JSON request; any other entry is a local path uploaded as multipart/form-data.

Terminal window
# Upload a local file to a direct message
webex messaging messages create --body '{"toPersonEmail":"user@example.com","text":"Guide attached","files":["./guide.md"]}'
# Preview without sending (shows path and size, never file contents)
webex messaging messages create --body-file message.json --dry-run

Relative paths resolve from the current working directory, not the JSON file’s directory; through MCP they refer to the server’s machine. A local upload needs one regular file of at most 100 MiB, and its other fields must be strings, so Adaptive Card attachments cannot accompany it. Read-only mode blocks uploads. Only attach files you intend to share. See the Messaging skill for the full contract.

Use webex messaging hds (hybrid-data-security is a group alias) to inspect organizations, clusters, nodes, network-test results, alarms, and resource usage. The overlapping upstream groups are consolidated.

Terminal window
webex messaging hds list-clusters-org --organization-id <id>
webex messaging hds list-nodes-cluster --cluster-id <id>
webex messaging hds get-alarms-node --node-id <id>
webex messaging hds get-usage-node --node-id <id>

Distinct older routes remain separate: get-database-org versus get-database-config-org, and get-multi-tenant-org versus list-tenants-org. Existing numeric spellings remain aliases for the latter two operations.