Contact Center Commands
The webex cc subcommand provides access to the Webex Contact Center API. The --orgid flag is auto-populated from your login, so you typically don’t need to pass it.
Requests go to the organization’s Contact Center data center: the one saved with webex config set cc-region <region>, else us1. --cc-region overrides it for one command. See Contact Center data center.
Resource Groups
Section titled “Resource Groups”| Resource | Description |
|---|---|
activities | Flow activity schemas and input choices |
asset | Work-item and custom-messaging assets |
campaign-group | Campaign group membership |
channel | Custom channel configuration |
events | Flow event specifications |
external-data-updates | Completed task numeric global-variable updates |
functions | Custom flow functions |
search-metadata | Search GraphQL schema discovery |
templates | Flow templates |
usage-reports | Asynchronous resource usage exports |
address-book | Address books |
agent-personal-greeting-files | Agent personal greeting file management |
agent-summaries | Agent summary reports |
agent-wellbeing | Agent wellbeing configuration |
agents | Agent state operations (login, logout, state change) |
ai-agent | AI Agent Studio agents: configuration, tools, publishing, export (private API) |
ai-agent-session | AI Agent Studio conversation sessions and messages (private API) |
ai-agent-transcript | AI Agent Studio audited transcript reads (private API) |
ai-assistant | AI assistant configuration |
ai-feature | AI feature management |
audio-files | IVR prompts and audio files |
auto-csat | Automated CSAT configuration |
auxiliary-code | Idle and wrap-up reason codes |
business-hour | Business hours schedules |
call-monitor | Live call monitoring sessions: start, barge in, coach, hold, and end (alias: call-monitoring) |
call-monitoring-config | Saved call monitoring configurations |
callbacks | Callback management |
campaign-manager | Outbound campaign management |
captures | Capture management |
contact-list-management | Contact list management |
contact-number | Contact number management |
contact-service-queue | Contact service queues |
data-sources | Data source configuration |
desktop-layout | Agent desktop layouts |
desktop-profile | Agent desktop profiles |
dial-number | DN-to-entry-point mappings |
dial-plan | Outdial plans |
dnc-management | Do-not-call list management |
entry-point | Inbound entry points (voice, chat, email, social) |
estimated-wait-time | Estimated wait time configuration |
flow | Draft authoring, validation, import/export, and publication |
generated-summaries | AI-generated summary management |
global-variables | Flow global variables |
holiday-list | Holiday lists |
journey | Customer journey management |
journey-customer-identification | Journey customer identification |
journey-data-ingestion | Journey data ingestion |
journey-profile-creation-insights | Journey profile creation insights |
journey-subscription | Journey subscription management |
journey-trigger-actions | Journey trigger actions |
journey-workspace-management | Journey workspace management |
multimedia-profile | Channel blending profiles |
notification | Notification management |
organization-setting | Organization-wide contact center settings |
outdial-ani | Outdial ANI lists |
overrides | Schedule overrides |
queues | Queue statistics and management |
realtime | Realtime data and statistics |
resource-collection | Resource collection management |
search | Search operations |
site | Contact center sites |
skill | Skill definitions |
skill-profile | Skill profile assignments |
subscriptions | Subscription management |
tasks | Task management |
team | Agent teams |
tenant-configuration | Tenant configuration |
user-profiles | User profile (access control) |
users | CC-enabled users |
work-types | Work type definitions |
Common Patterns
Section titled “Common Patterns”# List resourceswebex cc <resource> list
# Get by IDwebex cc <resource> get --orgid "..." --id "..."
# Createwebex cc <resource> create --orgid "..." --body-file config.json
# Updatewebex cc <resource> update --orgid "..." --id "..." --body-file updated.json
# Deletewebex cc <resource> delete --orgid "..." --id "..."
# List references (what depends on this resource)webex cc <resource> list-references --orgid "..." --id "..."update of a configuration object, such as a site, team, queue or user, replaces the whole object, and fields you leave out are cleared. Get the object first and send it back whole with your changes. ai-agent update is the exception: it keeps fields you leave out.
Filtering and Pagination
Section titled “Filtering and Pagination”CC list endpoints support RSQL filtering:
webex cc site list --filter='name=="Site A"'webex cc team list --search="Sales"Get every item in a list:
webex cc entry-point list --paginate--paginate returns every item in the list, reading all its pages, and ignores paging flags such as --page and --page-size. If it cannot read the whole list, it fails with incomplete list rather than return part of it.
How each kind of list is read, 100 items per page:
- Most lists are read to their page count, and
bulk-exportlists to theirtotalResources. - Lists that take no paging parameters return everything in one response and are read once.
- Customer Journey lists state no total, so they end at a page shorter than asked, or at a page that is not found.
- AI Agent Studio lists (
cc ai-agent*) are read by offset to their stated total.
Commands that return a single object ignore it, and so do cc tasks get and cc call-monitor list-sessions, whose paging is not known.
Manual pagination:
webex cc entry-point list --page=0 --page-size=100webex cc entry-point list --page=1 --page-size=100Audio File Operations
Section titled “Audio File Operations”The CLI provides streamlined download and upload commands for CC audio files and agent personal greetings. These use multipart/form-data uploads and binary downloads — the generated CRUD commands only handle metadata.
Audio Files
Section titled “Audio Files”# Download an audio file to diskwebex cc audio-files download --id <audio-file-id> --output prompt.wav
# Upload a new audio filewebex cc audio-files upload --file prompt.wav --name "Main Greeting"webex cc audio-files upload --file prompt.wav --name "Main Greeting" --description "IVR main menu"webex cc audio-files upload --file prompt.wav --dry-runAgent Personal Greetings
Section titled “Agent Personal Greetings”# Download an agent greetingwebex cc agent-personal-greeting-files download --id <greeting-id> --output greeting.wav
# Upload a new agent greeting (uses the org's default greeting purpose)webex cc agent-personal-greeting-files upload --agent-id <agent-id> --file greeting.wav# Upload for a specific greeting purposewebex cc agent-personal-greeting-files upload --agent-id <agent-id> --file greeting.wav --greeting-purpose-id <id>Exceptions
Section titled “Exceptions”Most resources use list as the list subcommand. One exception:
| Resource | List command |
|---|---|
dial-number | list-dialed-mapping |
Use --help on any resource to see its available subcommands.
Flow authoring and migration
Section titled “Flow authoring and migration”Current flow commands use the unprefixed Contact Center routes. flow is the canonical group; flows is an alias. Import/export now use the typed FlowV2 JSON contract, not legacy FDL. Existing automation consuming raw FDL must use export-legacy instead.
webex cc flow listwebex cc flow get --flow-id <id>webex cc flow export --flow-id <id> --version draft > flow.jsonwebex cc flow validate --body-file flow.jsonwebex cc flow import --body-file flow.json --overwrite false --flow-type FLOWwebex cc flow patch-draft --flow-id <id> --body-file patch.jsonwebex cc flow export-legacy --flow-id <id> > legacy-flow.jsonwebex cc activities list-definitionswebex cc events list-specificationswebex cc templates list-flowBodies must be supplied with --body or --body-file; these generated commands do not read stdin. The CLI uses the fixed project ID internally. --organization overrides the login organization.
Current flow, activity, and event commands use unprefixed routes. Template discovery uses /templates. Legacy flow import/export retain their separate FDL contract.
Import limitations: flow import-legacy and functions import are exposed but their generated commands do not implement the required upload body. Do not use them for migration until upload handling is implemented.
AI Agent Studio
Section titled “AI Agent Studio”webex cc ai-agent list --paginatewebex cc ai-agent get-configuration --agent-id <agent-id>webex cc ai-agent export --agent-id <agent-id> > agent.jsonwebex cc ai-agent update --agent-id <agent-id> --body-file changes.jsonwebex cc ai-agent publish --agent-id <agent-id> --description "Shorter greeting"webex cc ai-agent-session list --agent-id <agent-id> --paginate--agent-idis theidfromai-agent list. Studio selects an agent by its runtime token, which the CLI looks up from the ID. Tokens never appear in output, and--debugshows only their length.- Edits change the agent’s draft. Callers get them only after
publish, andlist-versionsshows the draft and the published versions. updatekeeps top-level fields you leave out.getreportsbot_metadata.ai_engineas the engine family; send the exact engine (engine_identifier) back, or the agent’s engine changes.- A tool needs
input_entitiesin JSON Schema form even when it takes no input. Start from a tool inget-configuration. - In an organization with Advanced Data Protection, the messages of live sessions are encrypted.
ai-agent-transcript create-audit-recordadds a permanent compliance entry under your name, and with a regular Webex login the messages stay encrypted afterwards. - A voice session’s
interaction_idis the Contact Center task ID thatcaptures listaccepts. - Studio is in the organization’s Contact Center data center, which
--cc-regionorwebex config set cc-regionselects, as for the rest ofwebex cc.
Other refreshed Contact Center APIs
Section titled “Other refreshed Contact Center APIs”| Group | Purpose |
|---|---|
activities, events, templates | Discover activity schemas, event schemas, input choices, and starter flows. |
functions | Manage custom function source, drafts, locks, versions, and publish tags. test implicitly publishes the draft before execution. |
asset, channel | Configure work-item/custom-messaging resources and their references. |
campaign-group | List campaigns belonging to a campaign group. |
search-metadata | Discover supported Search GraphQL fields and operations. |
usage-reports | Discover resource types, request asynchronous CSV exports, inspect status, and download files. |
external-data-updates | Update numeric global-variable values on tasks completed within the preceding two days. |
webex cc usage-reports list-resource-typeswebex cc usage-reports create --body-file report-request.jsonwebex cc usage-reports get --report-id <report-id>webex cc usage-reports download-file --file-id <file-id> --output raw > report.binwebex cc external-data-updates update-task-global-variables --body-file task-update.jsonDiscover report types before creating a report; the collection does not enumerate the types or CSV columns. Download with fileId, not reportId. Reports can span available data up to 36 months, may split into monthly files, and expire seven days after completion. Only one report processes per organization at a time. Downloads may be gzip-compressed CSV; check the format before parsing and use --output raw to preserve file bytes.
For task controls, unhold (alias resume) resumes a held voice call; pause-digital and resume-digital handle paused non-real-time digital tasks. append-message retains update-2 as an alias. Queue lookups use list-agent-based, list-skill-based, list-team-based, list-by-skill-profile, list-by-dynamic-skills, and list-by-user-skill-profile; pass IDs as flags. Whisper coaching is beta. The refresh also adds conference-participant removal, campaign-time lookup, and contact closure across a campaign chain.