Skip to content

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.

ResourceDescription
activitiesFlow activity schemas and input choices
assetWork-item and custom-messaging assets
campaign-groupCampaign group membership
channelCustom channel configuration
eventsFlow event specifications
external-data-updatesCompleted task numeric global-variable updates
functionsCustom flow functions
search-metadataSearch GraphQL schema discovery
templatesFlow templates
usage-reportsAsynchronous resource usage exports
address-bookAddress books
agent-personal-greeting-filesAgent personal greeting file management
agent-summariesAgent summary reports
agent-wellbeingAgent wellbeing configuration
agentsAgent state operations (login, logout, state change)
ai-agentAI Agent Studio agents: configuration, tools, publishing, export (private API)
ai-agent-sessionAI Agent Studio conversation sessions and messages (private API)
ai-agent-transcriptAI Agent Studio audited transcript reads (private API)
ai-assistantAI assistant configuration
ai-featureAI feature management
audio-filesIVR prompts and audio files
auto-csatAutomated CSAT configuration
auxiliary-codeIdle and wrap-up reason codes
business-hourBusiness hours schedules
call-monitorLive call monitoring sessions: start, barge in, coach, hold, and end (alias: call-monitoring)
call-monitoring-configSaved call monitoring configurations
callbacksCallback management
campaign-managerOutbound campaign management
capturesCapture management
contact-list-managementContact list management
contact-numberContact number management
contact-service-queueContact service queues
data-sourcesData source configuration
desktop-layoutAgent desktop layouts
desktop-profileAgent desktop profiles
dial-numberDN-to-entry-point mappings
dial-planOutdial plans
dnc-managementDo-not-call list management
entry-pointInbound entry points (voice, chat, email, social)
estimated-wait-timeEstimated wait time configuration
flowDraft authoring, validation, import/export, and publication
generated-summariesAI-generated summary management
global-variablesFlow global variables
holiday-listHoliday lists
journeyCustomer journey management
journey-customer-identificationJourney customer identification
journey-data-ingestionJourney data ingestion
journey-profile-creation-insightsJourney profile creation insights
journey-subscriptionJourney subscription management
journey-trigger-actionsJourney trigger actions
journey-workspace-managementJourney workspace management
multimedia-profileChannel blending profiles
notificationNotification management
organization-settingOrganization-wide contact center settings
outdial-aniOutdial ANI lists
overridesSchedule overrides
queuesQueue statistics and management
realtimeRealtime data and statistics
resource-collectionResource collection management
searchSearch operations
siteContact center sites
skillSkill definitions
skill-profileSkill profile assignments
subscriptionsSubscription management
tasksTask management
teamAgent teams
tenant-configurationTenant configuration
user-profilesUser profile (access control)
usersCC-enabled users
work-typesWork type definitions
Terminal window
# List resources
webex cc <resource> list
# Get by ID
webex cc <resource> get --orgid "..." --id "..."
# Create
webex cc <resource> create --orgid "..." --body-file config.json
# Update
webex cc <resource> update --orgid "..." --id "..." --body-file updated.json
# Delete
webex 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.

CC list endpoints support RSQL filtering:

Terminal window
webex cc site list --filter='name=="Site A"'
webex cc team list --search="Sales"

Get every item in a list:

Terminal window
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-export lists to their totalResources.
  • 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:

Terminal window
webex cc entry-point list --page=0 --page-size=100
webex cc entry-point list --page=1 --page-size=100

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.

Terminal window
# Download an audio file to disk
webex cc audio-files download --id <audio-file-id> --output prompt.wav
# Upload a new audio file
webex 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-run
Terminal window
# Download an agent greeting
webex 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 purpose
webex cc agent-personal-greeting-files upload --agent-id <agent-id> --file greeting.wav --greeting-purpose-id <id>

Most resources use list as the list subcommand. One exception:

ResourceList command
dial-numberlist-dialed-mapping

Use --help on any resource to see its available subcommands.

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.

Terminal window
webex cc flow list
webex cc flow get --flow-id <id>
webex cc flow export --flow-id <id> --version draft > flow.json
webex cc flow validate --body-file flow.json
webex cc flow import --body-file flow.json --overwrite false --flow-type FLOW
webex cc flow patch-draft --flow-id <id> --body-file patch.json
webex cc flow export-legacy --flow-id <id> > legacy-flow.json
webex cc activities list-definitions
webex cc events list-specifications
webex cc templates list-flow

Bodies 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.

Terminal window
webex cc ai-agent list --paginate
webex cc ai-agent get-configuration --agent-id <agent-id>
webex cc ai-agent export --agent-id <agent-id> > agent.json
webex cc ai-agent update --agent-id <agent-id> --body-file changes.json
webex cc ai-agent publish --agent-id <agent-id> --description "Shorter greeting"
webex cc ai-agent-session list --agent-id <agent-id> --paginate
  • --agent-id is the id from ai-agent list. Studio selects an agent by its runtime token, which the CLI looks up from the ID. Tokens never appear in output, and --debug shows only their length.
  • Edits change the agent’s draft. Callers get them only after publish, and list-versions shows the draft and the published versions.
  • update keeps top-level fields you leave out. get reports bot_metadata.ai_engine as the engine family; send the exact engine (engine_identifier) back, or the agent’s engine changes.
  • A tool needs input_entities in JSON Schema form even when it takes no input. Start from a tool in get-configuration.
  • In an organization with Advanced Data Protection, the messages of live sessions are encrypted. ai-agent-transcript create-audit-record adds a permanent compliance entry under your name, and with a regular Webex login the messages stay encrypted afterwards.
  • A voice session’s interaction_id is the Contact Center task ID that captures list accepts.
  • Studio is in the organization’s Contact Center data center, which --cc-region or webex config set cc-region selects, as for the rest of webex cc.
GroupPurpose
activities, events, templatesDiscover activity schemas, event schemas, input choices, and starter flows.
functionsManage custom function source, drafts, locks, versions, and publish tags. test implicitly publishes the draft before execution.
asset, channelConfigure work-item/custom-messaging resources and their references.
campaign-groupList campaigns belonging to a campaign group.
search-metadataDiscover supported Search GraphQL fields and operations.
usage-reportsDiscover resource types, request asynchronous CSV exports, inspect status, and download files.
external-data-updatesUpdate numeric global-variable values on tasks completed within the preceding two days.
Terminal window
webex cc usage-reports list-resource-types
webex cc usage-reports create --body-file report-request.json
webex cc usage-reports get --report-id <report-id>
webex cc usage-reports download-file --file-id <file-id> --output raw > report.bin
webex cc external-data-updates update-task-global-variables --body-file task-update.json

Discover 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.