Messaging Commands
The webex messaging (alias: webex msg) subcommand provides access to the Webex Messaging APIs for managing rooms, messages, teams, and webhooks.
Resource Groups
Section titled “Resource Groups”| Resource | Description |
|---|---|
attachment-actions | Attachment action management |
ecm-folder-linking | ECM folder linking |
events | Event management |
hds | Hybrid Data Security management |
memberships | Room membership management |
messages | Message management |
people | People in messaging context |
room-tabs | Room tab management |
rooms | Room (space) management |
team-memberships | Team membership management |
teams | Team management |
webhooks | Webhook management |
Common Patterns
Section titled “Common Patterns”# List resourceswebex messaging <resource> list
# Get by IDwebex messaging <resource> get --id "..."
# Createwebex messaging <resource> create --body-file config.json
# Updatewebex messaging <resource> update --id "..." --body-file updated.json
# Deletewebex messaging <resource> delete --id "..."Examples
Section titled “Examples”# List roomswebex messaging rooms list --paginate
# List messages in a roomwebex messaging messages list --room-id "ROOM_ID"
# List teamswebex messaging teams list
# List team membershipswebex messaging team-memberships list --team-id "TEAM_ID"
# List webhookswebex messaging webhooks list
# List room membershipswebex messaging memberships list --room-id "ROOM_ID"File Attachments
Section titled “File Attachments”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.
# Upload a local file to a direct messagewebex 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-runRelative 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.
Hybrid Data Security
Section titled “Hybrid Data Security”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.
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.