🚨 Important Lab Dependency
This mission requires configuration created in the following missions:
- NO DEPENDENCY
Using Webex Contact Center Developer Portal
Story
Webex Contact Center APIs enable automation, customization, and integration with external applications. By leveraging these APIs, administrators can streamline processes, enhance agent efficiency, and improve customer interactions. In this introduction mission, we will explore how to interact with the Developer Portal and execute different types of API calls.
Mission Details
In this mission, attendees will learn how to interact with Webex Contact Center APIs by performing API calls via the Developer Portal. Specifically, we will work with the Address Book feature.
Good to Know [Optional]
Understanding API Calls with Real-Life Comparisons
APIs (Application Programming Interfaces) allow different systems to communicate by sending and receiving structured requests. Here are the most common API call types, explained with real-world analogies:
-
GET – Retrieving Information
Analogy: Checking your bank balance at an ATM. You request information, and the system provides it without making any changes.
Example Use Case: Retrieving a customer’s interaction history in Webex Contact Center before routing their call. -
POST – Creating New Data
Analogy: Ordering a new item online. You submit details, and a new order (or record) is created in the system.
Example Use Case: Creating a new customer support ticket when an issue is reported during a call. -
PUT – Updating Existing Data
Analogy: Changing your home address in an online banking system. Instead of adding a new address, the existing one is replaced.
Example Use Case: Updating a customer’s preferred contact method in a CRM system. -
PATCH – Modifying Partial Data
Analogy: Updating your phone number on a social media profile without changing other details like your name or email.
Example Use Case: Changing only the priority level of an existing support ticket. -
DELETE – Removing Data
Analogy: Canceling a hotel reservation. The record is removed, preventing further use.
Example Use Case: Deleting a scheduled callback request if the customer no longer needs assistance. -
Webhooks – Automated Notifications
Analogy: Receiving an SMS alert when your package is out for delivery. Instead of requesting updates repeatedly, you get notified when something happens.
Example Use Case: Notifying an agent when a VIP customer joins the queue. -
SEARCH API (GraphQL Queries) – Retrieving Specific Data Efficiently
Analogy: Using a restaurant menu app to filter only "vegan dishes under $10" instead of browsing the entire menu. Unlike traditional GET requests that return all data, GraphQL allows users to request exactly what they need.
Example Use Case: Searching for all unresolved support tickets assigned to a specific agent without loading unnecessary ticket details.
APIs streamline operations by automating tasks, integrating systems, and enhancing customer experiences. Understanding these core calls helps optimize workflows in platforms like Webex Contact Center.
Build
Create a New Address Book entity by using POST
-
Open Developer Portal and click on Sign In. Your login will be of the format wxcclabs+admin_IDYour_Attendee_ID@gmail.com. You will see another login screen where you may need to enter the email address again and the password provided to you.
-
Click on the little arrow next to Documentation, choose Webex Contact Center under Customer Experience section.
-
On Menu panel on the left, scroll down to API Reference section and click on Configuration then Adress Book. Look at the list of available API calls.
Note
Address Book Overview
Address Book is available in the Webex Contact Center Agent Desktop. Agents can make outbound calls using Address Books, selecting numbers from pre-configured lists instead of entering them manually in the Start a New Call field. Administrators can configure and manage Address Books via the Webex Contact Center APIs. -
Scroll down and click on Create a new Address Book, then click on Request Body (JSON) on the right.
-
Clear Request Body content. Paste the following body and replace the \<Your_Attendee_ID> with your 3-digit Attendee ID. Then scroll down and click on Run.
Request Body:
Example of the expected response: 201 Response
-
Switch to Webex Control Hub and navigate to Address Book under Desktop Experience Section. Locate your new created AddressBook_Your_Attendee_ID
-
You should see your new created AddressBook_Your_Attendee_ID. There are still no Address Book entries so let's add them.
-
On the same Address Book configuration page, copy the AddressBook_AddressBook_ ID into notepad.
-
Switch to Developer Portal and select Address Book again from left menu pane.
-
Click on Create a new Address Book Entry, then click on Request Body (JSON) on the right.
-
In the Parameters section paste addressBookId you copied on Step 8 of the current mission.
-
Clear Request Body content and paste the following body, then scroll down click on Run button.
Request Body:
Example of the expected Response: 201 Response
-
Switch to Webex Control Hub. Open the configuration page of your AddressBook_Your_Attendee_ID and refresh the page.
-
You should see your new created Entry List with Name TAC Number and Contact Number +14085267209.
Retrieve Address Book Entry by ID (GET)
We will retrieve information about your newly created address book using a GET API call.
-
Switch to Developer Portal and select Address Book again from left menu pane.
-
Locate and open Get specific Address Book by ID, then switch to Parameters section on the right.
-
Paste the same AddressBook_AddressBook_ ID into id field of the Parameters section. You can quickly copy it by switching back to Control Hub. Then click Run at the bottom.
Example of the expected Response: 200 Response
{ "id": "115358d7-5c46-4988-9a50-e7f40c3b7daf", "name": "AddressBook_140", "description": "", "parentType": "ORGANIZATION", "createdTime": 1738771074000, "lastUpdatedTime": 1738773007000 }
Update Address Book Description
-
Switch to Developer Portal and select Address Book again from left menu pane.
-
Locate and open Update specific Address Book by ID, then switch to Parameters section on the right.
-
Paste the same ID of your AddressBook_AddressBook_ into id cell of Parameters section. You can quickly copy ID of your address book by switching back to Control Hub.
-
Clear Request Body content and paste the following body. Then click Run.
Replace value YourAddressBook_Name to your AddressBook_Your_Attendee_ID
Replace YouAddressBook_ID to actual ID of your AddressBook_AddressBook_
Request Body:
{ "name": "YourAddressBook_Name", "id": "YouAddressBook_ID", "parentType": "ORGANIZATION", "description": "Testing PUT requests from Developer Portal" }Example of the expected Response: 200 Response
{ "organizationId": "e56f00d4-98d8-4b62-a165-d05a41243d98", "id": "115358d7-5c46-4988-9a50-e7f40c3b7daf", "version": 5, "name": "AddressBook_140", "description": "Testing PUT requests from Developer Portal", "parentType": "ORGANIZATION", "createdTime": 1738771074000, "lastUpdatedTime": 1738775594832 } -
Switch to Webex Control Hub. Open the configuration page of your AddressBook_Your_Attendee_ID and refresh the page to validate updated Description field.
Use Search API to retrieve data from Analyzer DB.
Note
When working with Webex Contact Center (Webex CC) GraphQL queries, timestamps are represented in Epoch time (Unix timestamp) format. This format counts the number of seconds (or milliseconds) that have elapsed since January 1, 1970 (UTC).
If you need to convert a regular date/time into Epoch format or vice versa, you can use this online converter: https://www.epochconverter.com/
Ensure that your queries and filters use the correct time format to retrieve accurate results.
-
Switch to Developer Portal then locate and select Data then select Search from API REFERENCE menu
-
Click on Search tasks and then switch to Try Out tab
-
Make sure Authorization toggle to Use personal access token is ON

-
Click on Maximize Screen, clear the text from GraphQL query window. Then paste the following query.
Request Body:
{ #Global CAD Variables: Usage of taskDetails Object to retrieve the Value of Global Variables taskDetails( # NOTE: from and to are mandatory arguments that take the Epoch timestamp in milliseconds from: 1767864600000 #This can be set to Date.now() - (days * 24 * 60 * 60 * 1000) for lookback in days to: 1767868200000 #This can be set to Date.now() in millis filter: { #Filter the type of Task and: [ { channelType: { equals: telephony } } #Telephony calls only { origin: { equals: "+31204854646" } } #Customer ANI { status: { equals: "ended" } } #Final Disposition { direction: { equals: "inbound" } } #Inbound call only { isActive: { equals: false } } #Resolved call only { owner: { notequals: { id: null } } } #Only calls that had an Owner ] } ) { tasks { id #TaskId-SessionId-CallId status #Status totalDuration #CallTime origin #ANI destination #DNIS lastAgent { #Agent id name } stringGlobalVariables(name: "Global_Language") { #GlobalCADVariable name value } } } }Note
Current query is configured to search calls with following details from Analyzer database:
-
Time range set to 1 hour: From Thursday, January 8, 2026 10:30:00 AM to 11:30:00 AM.
-
Telephony inbound calls only.
-
Calls only from +31204854646.
-
Ended calls only.
-
Calls that were assigned to an owner (agent).
Example of the expected response: 200 Response
{ "data": { "taskDetails": { "tasks": [ { "id": "34e12bbc-4888-474e-b6c8-b0afbe8d442f", "status": "ended", "totalDuration": 209402, "origin": "+31204854646", "destination": "+441256231731", "lastAgent": { "id": "b9b45479-756f-4c55-8663-8ae7800a9a18", "name": "Agent140 Lab" }, "stringGlobalVariables": { "name": "Global_Language", "value": "en-AU" } } ] } } }Note
Output of the query is configured to represent the following information
-
Unique ID of the call
-
Status of the call
-
Total duration of the call
-
Origin of the call. Who called.
-
Destination of the call. Entry Point number.
-
Agent, who accepted the call: ID and Name
-
Language selected by the caller. Represented as Global_Language variable
-
-
Open JSON Path tool https://jsonpath.com/ to test your GraphQL response. Clear the content from Document section and from JSONPath Query adress line.
-
Switch to Developer Portal and copy the response
-
Switch back to JSON Path tool and paste the response into the Document section.

-
Test the following paths by pasting them into JSONPath Query adress line one by one:
$.data.taskDetails.tasks[0].id- Interaction ID of the call.$.data.taskDetails.tasks[0].status- Status of the call.$.data.taskDetails.tasks[0].totalDuration- Total Duration of the call.$.data.taskDetails.tasks[0].destination- Call destination. This is the number essigned to Entry Point.$.data.taskDetails.tasks[0].lastAgent.id- Agent ID who accepted the call.$.data.taskDetails.tasks[0].lastAgent.name- Agent name who accepted the call.$.data.taskDetails.tasks[0].stringGlobalVariables.name- Language Global Variable that was used in the flow.$.data.taskDetails.tasks[0].stringGlobalVariables.value- Language selected by a caller.
Congratulations, you have succesfully completed Introduction to Developer Portal mission! 🎉🎉











