Config Webservices API Reference Guide
Config Webservices API Reference Guide
Services
Reference Guide
October 2023
Five9 and the Five9 logo are registered trademarks of Five9 and its
subsidiaries in the United States and other countries. Other marks and
brands may be claimed as the property of others. The product plans,
specifications, and descriptions herein are provided for information only and
subject to change without notice, and are provided without warranty of any
kind, express or implied. Copyright © 2023 Five9, Inc.
About Five9
Five9 is the leading provider of cloud contact center software, bringing the power of
the cloud to thousands of customers and facilitating more than three billion customer
interactions annually. Since 2001, Five9 has led the cloud revolution in contact
centers, delivering software to help organizations of every size transition from
premise-based software to the cloud. With its extensive expertise, technology, and
ecosystem of partners, Five9 delivers secure, reliable, scalable cloud contact center
software to help businesses create exceptional customer experiences, increase agent
productivity and deliver tangible results. For more information visit www.five9.com.
Trademarks
Five9®
Five9 Logo
Five9® SoCoCare™
Five9® Connect™
What’s New 13
Data Types 19
dates and times 19
adminConfigTranslation 19
adminPermission 20
adminPermissionType 20
adminRole 21
agentAuditReportCriteria 22
agentAvailability 22
agentGroup 22
agentPermission 23
agentPermissionType 23
agentProductivity 28
agentRole 28
agentState 29
apiOperationType 30
autodialCampaign 30
baseOutboundcampaign 31
autodialCampaign 31
outboundCampaign 32
basicImportResult 39
crmImportResult 40
dispositionsImportResult 40
listImportResult 40
basicImportSettings 41
crmDeleteSettings 43
crmUpdateSettings 43
dispositionsUpdateSettings 43
listDeleteMode 44
listUpdateSettings 45
callCounterState 47
callNowMode 47
Methods 133
Agent Groups 133
createAgentGroup 133
deleteAgentGroup 134
getAgentGroup 134
getAgentGroups 134
modifyAgentGroup 135
Call Variables 135
createCallVariable 136
createCallVariablesGroup 136
deleteCallVariable 136
deleteCallVariablesGroupResponse 137
getCallVariableGroups 137
getCallVariables 137
modifyCallVariable 138
modifyCallVariablesGroup 138
Campaign Configuration 139
addDispositionsToCampaign 139
addDNISToCampaign 140
Exceptions 227
Examples 239
XML Examples 239
addToListCsv 239
addRecordToList 240
asyncAddRecordsToList 242
deleteFromContacts 243
runReport 244
PHP Example 245
This table lists the changes made in the last six releases of this document:
The Five9 Configuration Web Services enable you to build secure applications to access,
configure, manage, and synchronize call center information with work flow-
management systems, such as lead management, CRM, and ERP systems.
This guide is intended for developers who understand these technologies and
protocols:
l Client-server architecture and Web services
l SOAP, HTTP, and XML
l JSP, ASP, CGI, or Perl
l Computer-telephony integration concepts, processes, events, and call routing
l Overall call center integration and configuration
Note
If you use Apache CXF, be aware that it does not support swaRef.xsd types.
Before the SOAP envelope, it inserts text for which Five9 returns this exception:
Exception=javax.xml.ws.soap.SOAPFaultException: org.xm-
l.sax.SAXParseException: Content is not allowed in prolog.
Five9 recommends that you use the latest version. Previous versions are still supported
but are not recommended because they do not contain all the features.
Five9username is the user name of the administrator:
Note
In the rest of this guide, the features that apply to these versions are
highlighted. Release 13 supports SOAP web services but adds no new features.
l Version 4: https://api.five9.com/wsadmin/v4/
AdminWebService?wsdl&user=<Five9username>
l Version 3: https://api.five9.com/wsadmin/v3/
AdminWebService?wsdl&user=<Five9username>
l Version 2: https://api.five9.com/wsadmin/v2/
AdminWebService?wsdl&user=<Five9username>
To ensure that connections are secure, send all requests by Transport Layer Security
protocol (HTTPS) or VPN (IPSec or SSH) to the URL for your version, for example:
https://api.five9.com/wsadmin[/<version>]/AdminWebService
With HTTP basic authentication, the user name and password are encoded in base 64.
In your client, construct your authorization header as follows:
3 In your client, include the Authorization header with the value Basic
<base64-encoded string>.
Example: Web services header with encoded user name and password.
POST https://api.five9.com/wsadmin/AdminWebService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Authorization: Basic RXhhbXBsZVVzZXJOYW1lOkV4YW1wbGVQYXNzd29yZA==
These data types are specific to the Five9 methods used in the requests and responses.
For information on primitive data types, refer to www.w3.org/TR/xmlschema-2/.
adminConfigTranslation
Version 9.5
adminPermission
adminPermission
Contains the role of the administrator.
adminPermissionType
Contains the list of permissions assigned to an administrator.
adminRole
adminRole
Contains the role of the administrator.
agentAuditReportCriteria
agentAuditReportCriteria
No longer used. For report information, see runReport and its data types.
agentAvailability
Data type of autodial campaigns that enables the dialer to dial only when agents are
available to take calls. If you do not use this object, numbers are dialed continuously
whether or not agents are available. See baseOutboundcampaign.
agentGroup
Contains the details of a single group of agents.
agentPermission
agentPermission
Contains the permissions assigned to a user.
agentPermissionType
Contains all the permissions that can be assigned to an agent. This variable is a string.
Important
Agents who log into a PSTN station or forward calls between sessions
may incur high long-distance fees. Only give permission to the appro-
priate users.
agentPermissionType
agentPermissionType
agentPermissionType
agentPermissionType
agentProductivity
agentProductivity
Contains the number of seconds used in reports to identify possible deviations from
the expected performance of agents.
agentRole
Contains the attributes and permissions that can be assigned to an agent.
agentState
agentState
Removed from
Version 10
apiOperationType
apiOperationType
Contains the possible types of operation. QueryStatistics and
QueryChangedStatistics do not apply to the Configuration Web Services API
autodialCampaign
Contains the attributes of an autodial campaign. autodialCampaign extends
baseOutboundCampaign.
baseOutboundcampaign
baseOutboundcampaign
This section contains information about campaigns.
autodialCampaign
Contains information about autodial campaigns. It is used by
createAutodialResponse, getAutodialCampaignResponse, and
modifyAutodialCampaign
baseOutboundcampaign
outboundCampaign
Contains information about outbound campaigns. All data types used by
createOutboundCampaign are listed below. Depending on the campaign mode and
your goal, you can use these flags as follows:
baseOutboundcampaign
baseOutboundcampaign
baseOutboundcampaign
baseOutboundcampaign
baseOutboundcampaign
baseOutboundcampaign
basicImportResult
basicImportResult
Contains information about rejected records.
basicImportResult
crmImportResult
Contains the results of an import transaction.
dispositionsImportResult
Contains the information returned by a dispositions update transaction.
dispositionsImportResult extends dispositionsImportResult.
listImportResult
Contains information about the imported contact records. listImportResult extends
basicImportResult.
basicImportSettings
basicImportSettings
Contains the settings for updating all lists and contacts.
basicImportSettings
basicImportSettings
crmDeleteSettings
Contains deletion settings.
crmUpdateSettings
Contains the CRM update settings.
dispositionsUpdateSettings
Contains the disposition update settings.
basicImportSettings
listDeleteMode
Contains the options for deleting records from a list.
basicImportSettings
listUpdateSettings
Contains the list update settings.
basicImportSettings
callCounterState
callCounterState
Contains the maximum number and count of requests sent for a specific operation type
in a specific time period.
callNowMode
Contains the records that are dialed immediately.
NEW_LIST_ string New list records are dialed immediately even if the
ONLY corresponding CRM records existed before the import.
ANY string All imported records are dialed immediately.
callAnalysisMode
Contains the types of attempts when a call is answered.
callLogReportCriteria
callLogReportCriteria
No longer used. For report information, see runReport and its data types.
callType
Removed from
Version 10
callVariable
Contains the details of a call variable.
callVariable
callVariableRestriction
callVariableRestriction
Contains the restriction values of a call variable.
callVariableType
Contains the possible data types of a call variable.
callVariablesGroup
callVariablesGroup
Contains a group of call variables.
callbackFormat
Version 9.5
Contains the file format of the HTTP callback message in the HTTP Content-Type
header. For asynchronous batch methods, the HTTP callback request enables the API
client to provide the URL for the VCC API server to post the list update results after
processing is completed.
l addToList
l deleteFromList
l addToListCsv
l deleteFromListCsv
l addToListFtp
l deleteFromListFtp
l asyncAddRecordsToList
l updateContacts
l asyncDeleteRecordsFromList
l updateContactsCsv
l asyncUpdateCrmRecords
l updateContactsFtp
l deleteAllFromList
l updateDispositions
l deleteFromContacts
l updateDispositionsCsv
l deleteFromContactsCsv
l updateDispositionsFtp
l deleteFromContactsFtp
campaign
campaign
Contains the campaign attributes returned by getCampaignsResponse.
campaignCallWrapup
Contains the details for the work time after the end of a call.
campaignDialNumber
campaignDialNumber
Contains the types of numbers associated with a campaign.
campaignDialingAction
Contains the possible actions to take after dialing a number.
campaignDialingActionType
campaignDialingActionType
Contains the types of dialing actions.
campaignDialingMode
Contains the possible dialing modes.
campaignDialingOrder
campaignDialingOrder
Contains the dialing order of phone numbers when contact records have multiple
phone numbers.
campaignDialingSchedule
Contains the dialing configurations for a campaign profile.
campaignFilterCriterion
campaignFilterCriterion
Contains the criterion by which to filter records in the dialer.
campaignMode
Contains the options for a campaign.
campaignNumberSchedule
campaignNumberSchedule
Contains the time ranges applied to a number associated with a record.
campaignProfileFilter
Contains the configurations for the campaign profile filter.
campaignProfileInfo
Contains the details of a campaign profile.
campaignProfileInfo
campaignState
campaignState
Contains the possible states of a campaign.
campaignStateDialingRule
Version 9.5
Contains the possible dialing rule methods for finding the allowed dialing days and
hours.
campaignStrategies
campaignStrategies
Version 4
Contains a list of campaign strategies. For each campaign, you can create up to 20
strategies, and you can use up to 20 active strategies concurrently.
campaignStrategy
Version 4
campaignStrategyFilter
campaignStrategyFilter
Version 4
campaignStrategyPeriod
Version 4
Contains the dialing pattern for the strategy.
campaignTimeZoneAssignment
campaignTimeZoneAssignment
Version 9.5
Contains the possible methods for finding the contact’s time zone.
campaignType
Contains the types of campaigns.
campaignsSettings
campaignsSettings
Version 9.5
cannedReport
cannedReport
Contains reference information for a canned report.
cavRestrictionType
Contains the possible restrictions that can be placed on the value of a call variable.
compareOperatorType
Contains the operators for the filter criteria.
contactField
contactField
Contains the configuration of a contact field.
contactFieldDisplay
contactFieldDisplay
Contains the options for the appearance of field data in the agent’s desktop.
contactFieldMapping
Contains data that can be mapped to a specific field in the contact database.
contactFieldRestriction
contactFieldRestriction
Contains the restriction that applies to the data stored in a contact field.
contactFieldRestrictionType
Contains the available types of restrictions.
contactFieldType
contactFieldType
Contains the types of data that can be stored in a specific contact field.
contactsLookupResult
contactsLookupResult
Contains the contact database records that match the crmLookupCriteria.
crmAddMode
Specifies whether a contact record is added to the contact database when a new
record is added to a dialing list.
crmManagerRole
Contains the attributes and permissions that can be assigned to a CRM manager.
crmManagerPermission
Contains the permissions assigned to a user.
crmManagerPermissionType
crmManagerPermissionType
Contains the possible permissions that can be assigned to a CRM Manager. Currently,
there are no permissions that can be assigned to the CRM Manager role.
crmCriteriaGrouping
Contains the conditions for the filter group of a campaign profile.
crmCriteriaGroupingType
Contains the types of filters that you can apply before a record can be called.
crmDeleteMode
crmDeleteMode
Contains the modes used for deleting data from the contact database.
crmDeleteSettings
Contains the available options for deleting data from the contact database.
crmFieldCriterion
Contains an individual criterion in the contact database.
crmImportResult
crmImportResult
Contains the results of an import transaction.
crmLookupCriteria
Contains the criteria used to find matching records in the contact database.
crmUpdateMode
Contains how contact records should be updated when records are added to a dialing
list.
crmUpdateSettings
crmUpdateSettings
Contains CRM update settings.
cssTheme
Version 9.5
customDispositionType
customDispositionType
Contains CRM update settings.
customReportCriteria
Contains the criteria by which to filter the data contained in a report.
data
data
Contains the parameter that contains the value of one field of a contact record.
dateRange
Contains the dates for which a dialing rule applies. You must specify either the days of
the week or a date range. If both are specified, daysOfWeek is used, and the date range
is ignored.
dayOfWeek
Contains the days of the week.
dialSortOrder
dialSortOrder
Contains the order for dialing numbers in the ASAP queue.
dialingRule
Contains the configuration for a dialing rule. Dialing rules are used to ensure that the
VCC does not dial numbers during certain times or days.
disposition
disposition
Contains the attributes of a custom disposition.
disposition
disposition
dispositionCount
dispositionCount
Contains the number of times that a disposition can be used before the campaign is
stopped.
dispositionTypeParams
Contains the information returned by a dispositions update transaction.
dispositionsImportResult
dispositionsImportResult
Contains the number of updated disposition records.
dispositionsUpdateMode
Contains how dispositions are updated.
dispositionsUpdateSettings
Contains the settings to be used when updating dispositions.
distributionAlgorithm
Contains the algorithm used by the ACD to determine to which agent to transfer a call
in a specific queue.
distributionTimeFrame
distributionTimeFrame
Contains the time interval for MinCallsHandled and MinHandleTime in
distributionAlgorithm.
emailNotifications
emailNotifications
Contains the options for email notifications.
entry
Contains import warnings in key-value pair format.
extensionSettings
Version 9.5
Contains the number of digits that can be used for extensions assigned to users and
inbound campaigns.
fieldEntry
fieldEntry
Maps the column number to the contact database field name for each field imported
into the dialing list and contact database.
ftpImportSettings
ftpImportSettings
Contains the settings to access an FTP server.
generalCampaign
Contains information about a campaign. These elements are returned in the
inboundCampaign data type by the getInboundCampaignResponse method.
i18NObjectField
Version 9.5
i18NObjectType
i18NObjectType
Version 9.5
importData
Contains the data to be imported.
importIdentifier
Contains the data import identifier.
importTrouble
importTrouble
Version 3
importTroubleKind
Version 3
inboundCampaign
inboundCampaign
Contains the attributes of an inbound campaign.
inboundIvrScriptSchedule
Version 9.5
ivrIcons
ivrIcons
Version 10
ivrScriptDef
Contains an IVR script.
ivrScriptOwnership
Version 10
ivrScriptSchedule
ivrScriptSchedule
Contains the configuration of an IVR script.
keyPerfomanceIndicators
Note
Note the spelling of the data type.
Contains the settings used to customize Service Level statistics in the supervisor
application and in reporting.
keyValuePair
Contains a key-value pair.
language
language
Contains the language of the prompts.
limitTimeoutState
Contains the maximum number and count of requests sent for a specific operation type
in a specific time period.
listAddMode
Contains how to add records to a list.
listDeleteSettings
listDeleteSettings
Contains the list deletion settings.
listDialingMode
Contains the list dialing modes. These options apply to lists used with the Predictive,
Power, and Progressive campaign dialing modes.
listInfo
Contains a dialing list.
listImportResult
listImportResult
Contains information about the modified contact records. listImportResult extends
basicImportResult.
listState
Contains the attributes of each list associated with a campaign.
listUpdateSettings
listUpdateSettings
Contains the list update settings. listUpdateSettings extends basicImportSettings.
listUpdateSettings
listUpdateSimpleSettings
listUpdateSimpleSettings
Version 3
mediaType
Version 9.5
mediaTypeConfig
mediaTypeConfig
Version 9.5
mediaTypeItem
Version 9.5
miscVccOptions
miscVccOptions
Contains global VCC configuration options that are not found in other categories.
operationType
operationType
Contains the type of operation.
orderByField
Contains the sorting order of fields in the dialer.
outboundCampaign
Contains the attributes of an outbound campaign.
passwordPolicies
passwordPolicies
Version 2
passwordPolicyEntries
Version 2
passwordPolicyEntryValue
passwordPolicyEntryValue
Contains the password policies for the domain.
promptInfo
Contains information about a prompt.
promptType
promptType
Contains the type of prompt.
reasonCode
Contains a single reason code that can be selected by agents. Reason codes must be
enabled in VCC Configuration under the Other tab.
reasonCodeType
reasonCodeType
Contains the types of reason codes.
record
Contains a row of a reporting table.
recordData
Contains the fields for a single dialing list record. This record is added to the contact
database, or it is modified if it already exits.
remoteHostLoginSettings
remoteHostLoginSettings
Contains the FTP server settings for exporting recordings or reports to a remote server.
reportObjectList
Contains the type of data to be included in the report.
reportRowData
Contains the reporting data as a two-dimensional array. Note that the time is in Pacific
Standard Time (PST).
reportTimeCriteria
reportTimeCriteria
Contains the period from which to retrieve data from for a report.
reportingPermission
Contains the reporting permissions.
reportingPermissionType
Contains the possible reporting permissions.
reportingRole
reportingRole
Contains the reporting role.
sayAs
Contains the possible text elements of a prompt should be read. In the VCC, this
information is located in the TTS Builder.
sayAs
sayAsFormat
sayAsFormat
Contains the date and time format of the prompt.
scriptParameterValue
scriptParameterValue
Contains the values of external variables for an IVR script.
sForceEmailAccount
Contains the attributes of a Salesforce email account.
skill
skill
Contains the attributes of a skill.
skillInfo
skillInfo
Contains a skill assigned to users.
speedDialNumber
Version 10.2
stateDialingRule
Version 9.5
Contains the possible methods for finding the state dialing rules that apply to the
contact.
stateProvince
stateProvince
Contains the states and provinces of the U.S. and Canada that are used in state dialing
rules.
stateProvince
stringArray
stringArray
Contains the values of import setting fields. The name space for this data type is
http://jaxb.dev.java.net/array.
supervisorPermission
Contains the supervisor role.
supervisorPermissionType
supervisorPermissionType
Contains the list of supervisor permissions.
Important
Supervisors who log into a PSTN station or forward calls between ses-
sions may incur high long-distance fees. Therefore, be sure to give per-
mission only to the appropriate users.
supervisorPermissionType
supervisorPermissionType
supervisorRole
supervisorRole
Contains the supervisor role.
timePeriod
Contains the unit of the dial ASAP time-out.
timeRange
timeRange
Contains the time range for a dialing rule.
timeZoneAssignment
Version 9.5
Contains the possible methods for finding the contact’s time zone.
timer
Contains the amount of time until expiration. The amount is the sum of the days,
hours, minutes, and seconds.
ttsInfo
ttsInfo
Contains a TTS prompt.
userInfo
Contains the information about a user.
userGeneralInfo
userGeneralInfo
Contains detailed information about a user.
userProfile
userProfile
Contains the details of a profile.
userRoleType
userRoleType
Contains roles that can be assigned to a user.
userRoles
Contains roles assigned to a user.
userSkill
Contains the queue assigned to a user.
vccConfiguration
vccConfiguration
Contains global VCC settings.
versions
versions
Version 9.5
From the most recent version to the oldest, the possible values are v13, v12, v11, v10_
2, v10, v9_5, v9_3, and "" (empty string).
visualModeSettings
visualModeSettings
Version 9.5
webConnector
Contains the configuration details of a web connector.
webConnector
webConnector
webConnectorAgentAppType
webConnectorAgentAppType
Contains the types of browsers in which a connector can be open.
webConnectorCTIWebServicesType
Contains the possible browsers that can be used to open connectors when using the
CTI Web Services.
webConnectorTriggerType
webConnectorTriggerType
Contains the possible connector triggers that can be used during a call.
wrongListDialingMode
wrongListDialingMode
Version 9.3
wsObjectType
Contains the available filters that you can use in the reports.
xFrameOption
xFrameOption
Version 9.5
Contains the possible values of the X-Frame-Options header for your Visual IVR pages.
Agent Groups
createAgentGroup
Use this method to create an agent group. The group can be empty or contain agents.
createAgentGroup
Parameter Type Description
group agentGroup Information about the group to create.
Agent Groups
createAgentGroupResponse
Parameter Type Description
group agentGroup Information about the created group.
deleteAgentGroup
Deletes an agent group. Agents in the group are not deleted.
deleteAgentGroup
Parameter Type Description
groupName string Name of the group.
deleteAgentGroupResponse
Empty.
getAgentGroup
Returns an agent group.
getAgentGroup
Parameter Type Description
groupName string Name of the group.
getAgentGroupResponse
Parameter Type Description
return agentGroup Information about the group.
getAgentGroups
Returns a list of agent groups whose names match a string pattern.
Call Variables
getAgentGroups
Parameter Type Description
groupNamePattern string Name of the group or regular expression. For all
agent groups, use this pattern: .*.
getAgentGroupsResponse
Parameter Type Description
return agentGroup[0..unbounded] Groups that match the pattern.
modifyAgentGroup
Updates an agent group.
modifyAgentGroup
Parameter Type Description
group agentGroup Group to be modified with the name of an
existing group. If included, the new
parameters replace those of the existing
group.
addAgents string List of agent names to be added to the
[0..unbounded] group.
removeAgents string List of agent names to be removed from the
[0..unbounded] group.
modifyAgentGroupResponse
Empty.
Call Variables
Call Variables
createCallVariable
Creates a call variable.
createCallVariable
Parameter Type Description
variable callVariable Information about a call variable.
createCallVariableResponse
Empty.
createCallVariablesGroup
Creates a call variables group.
createCallVariablesGroup
Parameter Type Description
name string Name of call variables group.
description string Comment about the group.
createCallVariablesGroupResponse
Empty.
deleteCallVariable
Deletes a call variable.
deleteCallVariable
Parameter Type Description
name string Name of call variables group.
groupName string Group name of call variable.
Call Variables
deleteCallVariableResponse
Empty.
deleteCallVariablesGroup
Deletes a group of call variables.
deleteCallVariablesGroup
Parameter Type Description
name string Name of call variables group.
deleteCallVariablesGroupResponse
Empty.
getCallVariableGroups
Returns information about a group of call variables that match a pattern.
getCallVariableGroups
Parameter Type Description
namePattern string Name of call variables group or regular expression. If
omitted, all call variables are returned.
getCallVariableGroupsResponse
Parameter Type Description
return callVariablesGroup Call variables groups that match the
[0..unbounded] pattern.
getCallVariables
Returns information about a group of call variables.
Call Variables
getCallVariables
Parameter Type Description
namePattern string Name of call variables group or regular expression. If
omitted, all call variables are returned.
groupName string Group name of call variables.
getCallVariablesResponse
Parameter Type Description
return callVariable[0..unbounded] Call variables that match the
pattern.
modifyCallVariable
Replaces a call variable with another of the same name.
modifyCallVariable
Parameter Type Description
variable callVariable New configuration for the call variable.
modifyCallVariableResponse
Empty.
modifyCallVariablesGroup
Updates the description of a call variables group.
modifyCallVariablesGroup
Parameter Type Description
name string Name of group.
description string New description of the group.
Campaign Configuration
modifyCallVariablesGroupResponse
Empty.
Campaign Configuration
Important
The names of campaigns and of their components, such as dispositions, need
to reflect their purpose in your business. Agents use these elements when
processing calls, voicemail, and callbacks. Therefore when creating campaigns
and dispositions, be sure to use meaningful names that have fewer than 50
characters so that agents can easily read the names.
addDispositionsToCampaign getListsForCampaign
addDNISToCampaign getOutboundCampaign
addListsToCampaign modifyAutodialCampaign
addSkillsToCampaign modifyCampaignLists
createAutodialCampaign modifyInboundCampaign
createInboundCampaign modifyOutboundCampaign
createOutboundCampaign removeDispositionsFromCampaign
deleteCampaign removeDNISFromCampaign
getAutodialCampaign removeListsFromCampaign
getCampaignDNISList removeSkillsFromCampaign
getCampaigns renameCampaign
getDNISList setDefaultIVRSchedule
getInboundCampaign
addDispositionsToCampaign
Adds a list of dispositions to a campaign. The dispositions must already be configured.
Campaign Configuration
addDispositionsToCampaign
Parameter Type Description
campaignName string Name of campaign.
dispositions string List of dispositions to add to
[0..unbounded] the campaign.
isSkipPreviewDisposition boolean For campaigns running in
preview mode, whether the
dispositions that are added
should be used as skip call
preview dispositions.
addDispositionsToCampaignResponse
Empty.
addDNISToCampaign
Adds DNIS (Dialed Number Identification Service) numbers to an inbound campaign. A
DNIS is a phone number that can be dialed by a caller. When calls are received from
that number, the VCC runs the IVR script associated with the campaign to which the
DNIS has been added.
addDNISToCampaign
Parameter Type Description
campaignName string Name of campaign.
DNISList string [0..unbounded] List of numbers to add to the
campaign.
addDNISToCampaignResponse
Empty.
addListsToCampaign
Adds dialing lists to an outbound campaign. The dialing lists must already be
configured.
Campaign Configuration
addListsToCampaign
Parameter Type Description
campaignName string Name of campaign.
lists listState Dialing lists to add to the campaign. This data
[0..unbounded] type contains the campaign attributes of
each list.
addListsToCampaignResponse
Empty.
addSkillsToCampaign
Adds skills to the specified campaign. The skills must already be configured.
addSkillsToCampaign
Parameter Type Description
campaignName string Name of campaign.
skills string [0..unbounded] List of skills to add to the campaign.
addSkillsToCampaignResponse
Empty.
createAutodialCampaign
Creates an autodial campaign.
createAutodialCampaign
Parameter Type Description
campaign autodialCampaign Attributes of the campaign.
Campaign Configuration
createAutodialCampaignResponse
Empty.
createInboundCampaign
Creates an inbound campaign.
createInboundCampaign
Parameter Type Description
campaign inboundCampaign Attributes of the campaign.
createInboundCampaignResponse
Empty.
createOutboundCampaign
Creates an outbound campaign.
createOutboundCampaign
Parameter Type Description
campaign outboundCampaign Attributes of the campaign.
createOutboundCampaignResponse
Empty.
deleteCampaign
Deletes a campaign.
Campaign Configuration
deleteCampaign
Parameter Type Description
campaignName string Name of the campaign.
deleteCampaignResponse
Empty.
getAutodialCampaign
Returns the attributes of an autodial campaign.
getAutodialCampaign
Parameter Type Description
campaignName string Name of the campaign.
getAutodialCampaignResponse
Parameter Type Description
return autodialCampaign Name of the campaign.
getCampaigns
Returns a list of campaigns whose names match a string pattern. If no name is
specified, all the existing campaigns in the domain are returned.
getCampaigns
Parameter Type Description
campaignNamePattern string Name of the campaign or regular
expression that matches several
campaign names. For example, for all
campaigns, use this pattern: .*.
campaignType campaignType Type of campaign: inbound, outbound,
or autodial.
Campaign Configuration
getCampaignsResponse
Parameter Type Description
return campaign[0..unbounded] Name and basic attributes of the
campaign.
getCampaignDNISList
Returns the list of DNIS associated with a campaign.
getCampaignDNISList
Parameter Type Description
campaignName string Name of the campaign.
getCampaignDNISListResponse
Parameter Type Description
return string [0..unbounded] List of DNIS associated with the campaign.
getDNISList
Returns the list of DNIS for the domain.
getDNISList
Parameter Type Description
selectUnassigned boolean Whether to return the list of DNIS unassigned to
a campaign:
l True: the list is returned.
l False: all DNIS provisioned for the domain
are returned.
Campaign Configuration
getDNISListResponse
Parameter Type Description
return string List of unassigned DNIS associated with the
[0..unbounded] domain.
getInboundCampaign
Returns the attributes of an inbound campaign.
getInboundCampaign
Parameter Type Description
campaignName string Name of the campaign.
getInboundCampaignResponse
Parameter Type Description
return inboundCampaign Attributes of the campaign.
getListsForCampaign
Returns the attributes of the dialing lists associated with an outbound campaign.
getListsForCampaign
Parameter Type Description
campaignName string Name of the outbound campaign.
getListsForCampaignResponse
Parameter Type Description
return listState List and attributes of dialing lists associated
[0..unbounded] with this campaign.
Campaign Configuration
getOutboundCampaign
Returns the attributes of an outbound campaign.
getOutboundCampaign
Parameter Type Description
campaignName string Name of the outbound campaign.
getOutboundCampaignResponse
Parameter Type Description
return outboundCampaign Attributes of the campaign.
modifyCampaignLists
Updates the lists and attributes of dialing lists associated with an outbound campaign.
modifyCampaignLists
Parameter Type Description
campaignName string Name of the outbound campaign.
lists listState List and attributes of dialing lists associated
[0..unbounded] with this campaign.
modifyCampaignListsResponse
Empty.
modifyAutodialCampaign
Updates attributes of an autodial campaign.
modifyAutodialCampaign
Parameter Type Description
campaign autodialCampaign Attributes of autodial campaign.
Campaign Configuration
modifyAutodialCampaignResponse
Empty.
modifyInboundCampaign
Updates the attributes of an inbound campaign.
modifyInboundCampaign
Parameter Type Description
campaign inboundCampaign Attributes of inbound campaign.
modifyInboundCampaignResponse
Empty.
modifyOutboundCampaign
Updates the attributes of an outbound campaign.
modifyOutboundCampaign
Parameter Type Description
campaign outboundCampaign Attributes of outbound campaign.
modifyOutboundCampaignResponse
Empty.
removeDispositionsFromCampaign
Deleted the dispositions from a campaign.
Campaign Configuration
removeDispositionsFromCampaign
Parameter Type Description
campaignName string Name of campaign.
dispositions string List of dispositions to remove from this
[0..unbounded] campaign.
removeDispositionsFromCampaignResponse
Empty.
removeDNISFromCampaign
Removes a list of DNIS from a campaign. When calls are received at that number after
it has been removed from a campaign, the VCC plays a recording indicating that the
number is out of service.
removeDNISFromCampaign
Parameter Type Description
campaignName string Name of campaign.
DNISList string List of DNIS to remove from this
[0..unbounded] campaign.
removeDNISFromCampaignResponse
Empty.
removeListsFromCampaign
Removes dialing lists from an outbound campaign.
removeListsFromCampaign
Parameter Type Description
campaignName string Name of campaign.
lists string List of dialing lists to remove from this
[0..unbounded] campaign.
Campaign Configuration
removeListsFromCampaignResponse
Empty.
removeSkillsFromCampaign
Removes skills from an outbound campaign.
removeSkillsFromCampaign
Parameter Type Description
campaignName string Name of campaign.
skills string List of skills to remove from this
[0..unbounded] campaign.
removeSkillsFromCampaignResponse
Empty.
renameCampaign
Renames a campaign.
renameCampaign
Parameter Type Description
campaignName string Name of campaign.
campaignNewName string New name of campaign.
renameCampaignResponse
Empty.
setDefaultIVRSchedule
Assigns a default IVR script to a campaign.
Campaign Management
setDefaultIVRSchedule
Parameter Type Description
campaignName string Name of campaign.
scriptName string Name of the script.
params scriptParameterValue List of external variables to
[0..unbounded] set for the IVR script before
executing the script.
isVisualModeEnabled boolean Whether Visual IVR is
Version 3 enabled in the campaign
schedule.
isChatEnabled boolean Whether chat is enabled in
Version 3 the campaign schedule.
setDefaultIVRScheduleResponse
Empty.
Campaign Management
asyncUpdateCampaignDispositions
Version 9.5
Use this method to update the disposition of a small number of records. The method
returns an importIdentifier object that you can use to query the import status and
result. To check the status of the update, use the response identifier in the request of
getDispositionsImportResult.
Campaign Management
asyncUpdateCampaignDispositions
Parameter Type Description
campaignName string Name of
campaign.
dispositionsUpdateSettings dispositionsUpdateSettings Update
settings.
importData importData List of
dispositions to
be imported.
asyncUpdateCampaignDispositionsResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. Use this
identifier to check the import status and result.
forceStopCampaign
Stops a campaign, which immediately disconnects all active calls.
forceStopCampaign
Parameter Type Description
campaignName string Name of campaign.
forceStopCampaignResponse
Empty.
getCampaignState
Returns the state of a campaign and track changes in the state of a campaign by using
long polling. The method returns the updated state or the current state after the time-
out.
Campaign Management
getCampaignState
Parameter Type Description
campaignName string Name of campaign.
waitUntilChange long Optional duration in seconds to wait for changes. If
omitted, the response is returned immediately.
getCampaignStateResponse
Parameter Type Description
Current state of the campaign, which may be running, not
return campaignState
running, starting, or stopping.
getCampaignStrategies
Version 4
getCampaignStrategies
Parameter Type Description
campaignName string Name of campaign.
getCampaignStrategiesResponse
Parameter Type Description
return campaignStrategies List of strategies.
getDispositionsImportResult
Returns details about the imported dispositions.
Campaign Management
getDispositionsImportResult
Parameter Type Description
identifier importIdentifier Identifier of the import session, which was
returned in the response to the import
request.
getDispositionsImportResultResponse
Parameter Type Description
return dispositionsImportResult Result of disposition import
operation.
resetCampaign
Resets the campaign to redial every number, except for numbers on the Do-Not-Call
list.
resetCampaign
Parameter Type Description
campaignName string Name of campaign.
resetCampaignResponse
Empty.
resetCampaignDispositions
Resets the dispositions of the campaign list records that match the dispositions. Calls
that occurred during the date and time interval are reset so that the contacts can be
dialed again if their disposition included in the list of dispositions.
Campaign Management
resetCampaignDispositions
Parameter Type Description
campaignName string Name of campaign.
dispositions string List of dispositions to reset.
[0..unbounded]
after dateTime Start time of the call interval. The start time
is not included in the interval.
before dateTime End time of the call interval. The end time is
not included in the interval.
resetCampaignDispositionsResponse
Empty.
resetListPosition
Resets to the beginning the dialing lists position of an outbound campaign. By default,
the dialer attempts to dial all the records in campaign lists before restarting. In some
cases, you may need to start dialing from the beginning of the lists. To do so, use the
resetListPosition method to reset campaign lists position to the first record in the
dialing lists, based on the record order at list upload.
resetListPosition
Parameter Type Description
campaignName string Name of campaign.
resetListPositionResponse
Empty.
setCampaignStrategies
Version 4
Campaign Management
setCampaignStrategies
Parameter Type Description
campaignName string Name of campaign.
campaignStrategies campaignStrategies List of updated strategies.
setCampaignStrategiesResponse
Empty.
startCampaign
Starts a campaign.
startCampaign
Parameter Type Description
campaignName string Name of campaign.
startCampaignResponse
Empty.
stopCampaign
Stops a campaign.
stopCampaign
Parameter Type Description
campaignName string Name of campaign.
stopCampaignResponse
Empty.
Campaign Management
updateDispositions
Updates batches of disposition values in a campaign. Records are passed as a two-
dimensional array (collection of strings).
Sets or resets a disposition for the specified records. Each request can contain up to
50,000 records. To check the status of the update, use the response identifier in the
request of getDispositionsImportResult.
updateDispositions
Parameter Type Description
campaignName string Name of
campaign.
DispositionsUpdateSettings dispositionsUpdateSettings Update
settings.
Note: This is case
sensitive.
updateDispositionsResponse
Parameter Type Description
return importIdentifier Identifier for the requested dispositions import.
This identifier can be used to check import
status and outcome.
updateDispositionsCsv
Updates batches of disposition values in a campaign. Records are passed as a string of
comma-separated values. The method returns an importIdentifier that you can use to
query import state and import result. To check the status of the update, use the
response identifier in the request of getDispositionsImportResult.
Campaign Management
updateDispositionsCsv
Parameter Type Description
campaignName string Name of
campaign.
DispositionsUpdateSettings dispositionsUpdateSettings Update
settings.
Note: This is case
sensitive.
updateDispositionsCsvResponse
Parameter Type Description
return importIdentifier Identifier for the requested dispositions import.
This identifier can be used to check import
status and outcome.
updateDispositionsFtp
Updates batches of disposition values in a campaign, based on data contained in a file
obtained from an FTP server.
updateDispositionsFtpResponse
Empty.
Campaign Profiles
Campaign Profiles
createCampaignProfile
Creates a campaign profile.
createCampaignProfile
Parameter Type Description
campaignProfile campaignProfileInfo Configuration of a campaign
profile.
createCampaignProfileResponse
Parameter Type Description
return campaignProfileInfo New campaign profile.
deleteCampaignProfile
Deletes a campaign profile.
deleteCampaignProfile
Parameter Type Description
profileName string Name of campaign profile.
deleteCampaignProfileResponse
Empty.
getCampaignProfileDispositions
Returns information about the dispositions of a campaign profile.
Campaign Profiles
getCampaignProfileDispositions
Parameter Type Description
profileName string Name of campaign profile.
getCampaignProfileDispositionsResponse
Parameter Type Description
return dispositionCount[0..unbounded] Dispositions for the profile.
getCampaignProfileFilter
Returns information about the filter of a campaign profile.
getCampaignProfileFilter
Parameter Type Description
profileName string Name of campaign profile.
getCampaignProfileFilterResponse
Parameter Type Description
return campaignProfileFilter Filter configuration for the profile.
getCampaignProfiles
Returns information about campaign profiles that match a pattern.
getCampaignProfiles
Parameter Type Description
namePattern string Name of campaign profile or regular expression. If
omitted, all profiles are returned.
Campaign Profiles
getCampaignProfilesResponse
Parameter Type Description
return campaignProfileInfo Campaign profiles that match the
[0..unbounded] pattern.
modifyCampaignProfile
Updates a campaign profile.
modifyCampaignProfile
Parameter Type Description
campaignProfile campaignProfileInfo Configuration of campaign profile.
modifyCampaignProfileResponse
Empty.
modifyCampaignProfileCrmCriteria
Updates the CRM filters of a campaign profile.
modifyCampaignProfileCrmCriteria
Parameter Type Description
profileName string Name of campaign profile.
grouping crmCriteriaGrouping Filter relationship between
the criteria.
addCriteria campaignFilterCriterion Criteria to add to the
[0..unbounded] profile.
removeCriteria campaignFilterCriterion Criteria to remove from
[0..unbounded] profile.
modifyCampaignProfileCrmCriteriaResponse
Empty.
Campaign Profiles
modifyCampaignProfileFilterOrder
Updates the criteria by which to dial the records of a campaign profile.
modifyCampaignProfileFilterOrder
Parameter Type Description
campaignProfile string Name of campaign profile.
addOrderByField orderByField List, priority, and order of columns
[0..unbounded] to sort.
removeOrderByField string Name of the contact field to remove
[0..unbounded] from the filter order.
modifyCampaignProfileFilterOrderResponse
Empty.
modifyCampaignProfileDispositions
Updates the disposition count limits for a campaign. If a campaign with this profile
reaches the maximum count for a disposition, the campaign stops automatically.
modifyCampaignProfileDispositions
Parameter Type Description
profileName string Name of campaign profile.
addDispositionCounts dispositionCount Limits for the number of
[0..unbounded] dispositions.
removeDispositionCounts dispositionCount Disposition limits to
[0..unbounded] remove from the profile.
modifyCampaignProfileDispositionsResponse
Empty.
Connectors
Connectors
Connectors enable you to transfer information about a call to a third-party service
when one of these events occurs:
l A contact record is selected.
l A call is accepted, disconnected, or assigned a disposition.
l A preview record is delivered to the agent.
l The agent initiates a warm transfer.
l The agent triggers a manual connector.
createWebConnector
Creates a web connector.
createWebConnector
Parameter Type Description
connector webConnector Name and configuration of Web connector.
createWebConnectorResponse
Empty.
deleteWebConnector
Deletes a web connector.
deleteWebConnector
Parameter Type Description
name string Name of Web connector.
deleteWebConnectorResponse
Empty.
Contact Fields
getWebConnectors
Returns the configuration of Web connectors.
getWebConnectors
Parameter Type Description
namePattern string Regular expression. If omitted, all objects are returned.
getWebConnectorsResponse
Parameter Type Description
return webConnector Web connectors that match the name
[0..unbounded] pattern.
modifyWebConnector
Updates a Web connector.
modifyWebConnector
Parameter Type Description
connector webConnector Name and configuration of the connector.
modifyWebConnectorResponse
Empty.
Contact Fields
Contact Fields
createContactField
Creates custom contact fields. When creating contact fields, campaigns must not be
running.
createContactField
Parameter Type Description
field contactField New contact field.
createContactFieldResponse
Empty.
deleteContactField
Deletes a contact field. When deleting contact fields, campaigns must not be running.
deleteContactField
Parameter Type Description
fieldName string Name of contact field.
deleteContactFieldResponse
Empty.
getContactFields
Returns the configuration of contact fields.
getContactFields
Parameter Type Description
namePattern string Regular expression. If omitted, all objects are returned.
Contact Management
getContactFieldsResponse
Parameter Type Description
return contactField Contact fields that match the name
[0..unbounded] pattern.
modifyContactField
Updates a contact field. When modifying contact fields, campaigns must not be
running.
modifyContactField
Parameter Type Description
field contactField Contact field configuration.
modifyContactFieldResponse
Empty.
Contact Management
You can add and update contact database records in XML or CSV format.
asyncUpdateCrmRecords
Updates up to 100 records in the contact database.
To check the status of the update, use the response identifier in the request of
getCrmImportResult.
Contact Management
asyncUpdateCrmRecords
Parameter Type Description
crmUpdateSettings crmUpdateSettings Update options.
importData importData List of records to update.
asyncUpdateCrmRecordsResponse
Parameter Type Description
return importIdentifier Identifier for the request. This identifier can be
used to check status and result.
deleteFromContacts
Deletes batches from the contact database based on the specified import settings.
Records are passed as a two-dimensional string array.
To check the status of the update, use the response identifier in the request of
getCrmImportResult.
Important
Because this batch method affects the performance of the dialer and uses significant
database resources, use this method only during off-peak periods. To delete single
records while an outbound campaign is running, use deleteRecordFromList
instead. To delete up to 100 records, use asyncDeleteRecordsFromList. If you
require a larger batch, contact your Five9 representative.
deleteFromContacts
Parameter Type Description
crmDeleteSettings crmDeleteSettings Deletion options.
importData importData List of XML-formatted records to
delete.
Contact Management
deleteFromContactsResponse
Parameter Type Description
return importIdentifier Identifier for the request. This identifier can be
used to check status and result.
deleteFromContactsCsv
Deletes batches of records from the contact database based on the specified import
settings. Records are passed as a two-dimensional string array.
To check the status of the update, use the response identifier in the request of
getCrmImportResult.
Important
Because this batch method affects the performance of the dialer and uses significant
database resources, use this method only during off-peak periods. To delete single
records while an outbound campaign is running, use deleteRecordFromList
instead. To delete up to 100 records, use asyncDeleteRecordsFromList. If you
require a larger batch, contact your Five9 representative.
deleteFromContactsCsv
Parameter Type Description
crmDeleteSettings crmDeleteSettings Deletion options.
csvData string List of CSV-formatted records to
delete.
deleteFromContactsCsvResponse
Parameter Type Description
return importIdentifier Identifier for the request. This identifier can be
used to check status and result.
Contact Management
deleteFromContactsFtp
Deletes batches of records by FTP. For more information about the format of the file
obtained from the FTP server, refer to the Administrator’s Guide.
Important
Because this batch method affects the performance of the dialer and uses significant
database resources, use this method only during off-peak periods. To delete single
records while an outbound campaign is running, use deleteRecordFromList
instead. To delete up to 100 records, use asyncDeleteRecordsFromList. If you
require a larger batch, contact your Five9 representative.
deleteFromContactsFtp
Parameter Type Description
DeleteSettings crmDeleteSettings Deletion options.
ftpSettings ftpImportSettings FTP settings.
deleteFromContactsFtpResponse
Empty.
getContactRecords
Returns one or more records from the contact database.
getContactRecords
Parameter Type Description
lookupCriteria crmLookupCriteria Search criteria.
getContactRecordsResponse
Parameter Type Description
return contactsLookupResult Description of the results.
Contact Management
getCrmImportResult
Returns the result of the contact records import process.
getCrmImportResult
Parameter Type Description
identifier importIdentifier Identifier for the imported data.
getCrmImportResultResponse
Parameter Type Description
return crmImportResult Description of the results.
updateContacts
Updates batches of records in the contact database. Records are passed as a two-
dimensional string array. To check the status of the update, use the response identifier
in the request of getCrmImportResult.
Note
In the process of creating and updating records, with multiple files/loads at once, if the
same record is being deleted before the list is completed, there is a possibility that the
deletion will occur before the update. This can result in the record being recreated with
the new updates.
Important
Because this batch method affects the performance of the dialer and uses significant
database resources, use this method only during off-peak periods. To update single
records while an outbound campaign is running, use updateCrmRecord instead. To
update up to 100 records, use asyncUpdateCrmRecords.
updateContacts
Parameter Type Description
crmUpdateSettings crmUpdateSettings Options that determine how
contact records are updated.
importData importData XML-formatted data to import.
Contact Management
updateContactsResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. This identifier
can be used to check import status and result.
updateContactsCsv
Updates batches of records in CSV format. Records are passed as a two-dimensional
string array. To check the status of the update, use the response identifier in the
request of getCrmImportResult.
Important
Because this batch method affects the performance of the dialer and uses significant
database resources, use this method only during off-peak periods. To update single
records while an outbound campaign is running, use updateCrmRecord instead. To
update up to 100 records, use asyncUpdateCrmRecords.
updateContactsCsv
Parameter Type Description
crmUpdateSettings crmUpdateSettings Options that determine how
contact records are updated.
csvData string Data in CSV format to be imported
to the Contacts database.
updateContactsCsvResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. This identifier
can be used to check import status and result.
updateContactsFtp
Imports batches of records by using FTP. For information about the format of the file
obtained from the FTP server, see the Administrator’s Guide.
Contact Management
Important
Because this batch method affects the performance of the dialer and uses significant
database resources, use this method only during off-peak periods. To update single
records while an outbound campaign is running, use updateCrmRecord instead. To
update up to 100 records, use asyncUpdateCrmRecords.
updateContactsFtp
Parameter Type Description
updateSettings crmUpdateSettings Options that determine how contact
records are updated.
ftpSettings ftpImportSettings FTP settings.
updateContactsFtpResponse
This method contains no parameters.
updateCrmRecord
Updates single records.
updateCrmRecord
Parameter Type Description
crmUpdateSettings crmUpdateSettings Options that determine how
contact records are updated.
record recordData Contact record to be updated.
updateCrmRecordResponse
Parameter Type Description
return crmImportResult Result of the update request.
Dialing Rules
Dialing Rules
getDialingRules
Returns details about existing dialing rules.
getDialingRules
Parameter Type Description
namePattern string Optional regular expression that matches one or more
dialing rules. If omitted, all objects are returned.
getDialingRulesResponse
Parameter Type Description
return dialingRule[0..unbounded] Configuration details of dialing rules.
setDialingRules
Creates, modifies, or deletes dialing rules.
setDialingRules
Parameter Type Description
setRules dialingRule Dialing rules to create or modify. If a rule
[0..unbounded] exists with the same name, it is replaced with
the new configuration.
removeRules string Names of the dialing rules to delete.
[0..unbounded]
setDialingRulesResponse
Empty.
Disposition Configuration
Disposition Configuration
createDisposition
Creates a disposition.
createDisposition
Parameter Type Description
disposition disposition Name and attributes of the disposition.
createDispositionResponse
Empty.
getDisposition
Returns the attributes of a disposition.
getDisposition
Parameter Type Description
dispositionName string Name of disposition.
getDispositionResponse
Parameter Type Description
return disposition Name and attributes of disposition.
getDispositions
Returns the attributes of the dispositions that match a name pattern.
Disposition Configuration
getDispositions
Parameter Type Description
dispositionNamePattern string Name pattern to be compared to the
disposition names in the domain.
getDispositionsResponse
Parameter Type Description
return disposition Attributes of the dispositions that match
[0..unbounded] the pattern.
modifyDisposition
Updates the attributes of a disposition.
modifyDisposition
Parameter Type Description
disposition disposition Name and attributes of disposition.
modifyDispositionResponse
Empty.
removeDisposition
Deletes a disposition from the configuration.
removeDisposition
Parameter Type Description
dispositionName string Name of the disposition.
removeDispositionResponse
Empty.
Domain Limits
renameDisposition
Updates a disposition.
renameDisposition
Parameter Type Description
dispositionName string Name of the disposition.
dispositionNewName string New name of the disposition.
renameDispositionResponse
Empty.
Domain Limits
For security reasons, Five9 has implemented default limits for each type of Web
Services request. If you require higher limits for some types of requests, contact Five9
Customer Support.
Important
API request limits may change over time. To ensure that you always know the correct
limits for your domain, use getCallCountersState. The response contain the cur-
rent limits for each type of request in the table below.
The minute, hour, or day count starts at the beginning of the time interval at the
location of the data center, including its time zone.
If you start to send requests at 9:30 PM in California, the hourly interval ends at 10:00
PM. At that time, the limit is reset for the next hour.
If your production domain has 4000 agents, calculate as follows the number of records
that you can update or insert each hour with asyncUpdateCrmRecords. Your domain
may have different limits from those in the example.
Maximum number of requests each hour: 1000
X
Maximum number of records in each request: 100
Domain Limits
Domain Limits
Domain Limits
getCallCountersState
Returns your domain’s request limits.
No limit is set for this request. However, Five9 recommends that you do not use it
excessively.
getCallCountersState
This method contains no parameters.
getCallCountersStateResponse
Parameter Type Description
return limitTimeoutState Collection of limits for different request types.
IVR Script
IVR Script
These methods allow you to manage Interactive Voice Response (IVR) scripts, which are
visual devices for routing calls in inbound and autodial campaigns.
createIVRScript
Creates an IVR script. To add details, use modifyIVRScript.
createIVRScript
Parameter Type Description
name string Name of script.
createIVRScriptResponse
Parameter Type Description
return ivrScriptDef Name and description of script.
deleteIVRScript
Deletes an IVR script.
deleteIVRScript
Parameter Type Description
name string Name of script.
deleteIVRScriptResponse
Empty.
IVR Script
getIVRScripts
Returns information about IVR scripts.
getIVRScripts
Parameter Type Description
namePattern string Regular expression for the script names. If omitted, all
objects are returned.
getIVRScriptsResponse
Parameter Type Description
return ivrScriptDef[0..unbounded] Name and description of scripts.
modifyIVRScript
Updates an IVR script.
modifyIVRScript
Parameter Type Description
scriptDef ivrScriptDef Name and description of scripts.
modifyIVRScriptResponse
Empty.
setIvrScriptOwnership
Version 10
IVR Script
setIvrScriptOwnership
Parameter Type Description
ivrScriptName string Name of script.
othersCanCopy boolean Whether other users can copy the script.
setIvrScriptOwnershipResponse
Empty.
getIvrScriptOwnership
Version 10
getIvrScriptOwnership
Parameter Type Description
ivrScriptName string Name of script.
getIvrScriptOwnershipResponse
Parameter Type Description
return ivrScriptOwnership Script ownership information.
removeIvrScriptOwnership
Version 10
removeIvrScriptOwnership
Parameter Type Description
ivrScriptName string Name of script.
IVR Script
removeIvrScriptOwnershipResponse
Empty.
setIvrIcons
Version 10
setIvrIcons
Parameter Type Description
ivrIcons ivrIcons Icons.
ivrScriptName string Name of script.
setIvrIconsResponse
Empty.
getIvrIcons
Version 10
getIvrIcons
Parameter Type Description
ivrScriptName string Name of script.
getIvrIconsResponse
Parameter Type Description
ivrIcons ivrIcons Icons.
List Management
removeIvrIcons
Version 10
removeIvrIcons
Parameter Type Description
ivrScriptName string Name of script.
removeIvrIconsResponse
Empty.
List Management
You can create, delete, and modify dialing lists. You can add, modify, or delete records
to/from a list.
addNumbersToDnc
Adds phone numbers to your domain’s do-not-call (DNC) list. Because these lists are
typically very large, you can import them only from 11:00 PM – 6:00 AM Pacific Time. If
you use this method at other times, you receive an exception.
addNumbersToDnc
Parameter Type Description
numbers string [0..unbounded] List of numbers to add to the list.
addNumbersToDncResponse
Parameter Type Description
return int Number of records added to the DNC list.
List Management
addRecordToList
Adds a record to a list. If a corresponding record does not already exist in the contact
database, a new record is added. Otherwise, the existing record is updated based on
the options settings.
Important
To import large numbers of records, use addToList or addToListCsv.
addRecordToList
Parameter Type Description
listName string Name of list.
listUpdateSettings listUpdateSettings List update settings.
record recordData Data to import.
addRecordToListResponse
Parameter Type Description
return listImportResult Result of the addition.
addRecordToListSimple
Version 3
Adds a record to a list instead of addRecordToList if you need only a few parameters.
Because this method is simpler, it is faster than addRecordToList. If a corresponding record
does not exist in the contact database, a new record is added. Otherwise, the existing
record is updated according to the parameters.
Important
To import large numbers of records, use addToList or addToListCsv.
Because addRecordToListSimple does not have a duplicate records flag, if the list
record has more than two matches, the behavior is as follows:
List Management
l Users receive this fault: More than one record matches specified criteria.
This behavior is equivalent to this:
l crmUpdateMode = UPDATE_SOLE_MATCHES
l listAddMode = ADD_IF_SOLE_CRM_MATCH
addRecordToListSimple
Parameter Type Description
listName string Name of list.
listUpdateSimpleSettings listUpdateSimpleSettings List update
settings.
record recordData Data to import.
addRecordToListSimpleResponse
Empty.
addToList
Imports batches of list records into a list. Depending on the settings, importing records
may affect the contact database records. Records are passed as a two-dimensional
array (collection of strings). To check the status of the update, use the response
identifier in the request of getListImportResult.
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To insert single records while an outbound campaign is
running, use addRecordToListSimple instead. To insert up to 100 records,
use asyncAddRecordsToList.
List Management
addToList
Parameter Type Description
listName string Name of list.
listUpdateSettings listUpdateSettings List update settings.
importData importData Data to import.
addToListResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. Can be used to
check import status and result.
addToListCsv
Imports batches of records into a list. Depending on the import settings, contact
records may be affected. Records are passed as a string of comma-separated values. To
check the status of the update, use the response identifier in the request of
getListImportResult.
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To insert single records while an outbound campaign is
running, use addRecordToListSimple instead. To insert up to 100 records,
use asyncAddRecordsToList.
addToListCsv
Parameter Type Description
listName string Name of list.
listUpdateSettings listUpdateSettings List update settings.
csvData string Data to import. Fields are
separated by commas; records
are separated by new lines.
List Management
addToListCsvResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. Can be used to
check import status and result.
addToListFtp
Imports by FTP a batch of list records. Depending on the settings, importing records
may affect the contact database records. Records are passed as a string of comma-
separated values. The method returns an identifier object that you can use to query the
import status and result. For more information about the format of the file obtained
from the FTP server, refer to the VCC Administrator’s Guide.
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To insert single records while an outbound campaign is
running, use addRecordToListSimple instead. To insert up to 100 records,
use asyncAddRecordsToList.
addToListFtp
Parameter Type Description
listName string Name of list.
updateSettings listUpdateSettings List update settings.
ftpSettings ftpImportSettings FTP settings.
addToListFtpResponse
Empty.
asyncAddRecordsToList
Adds up to 100 records to a list. If the records do not exist in the contact database, they
are added. Otherwise, the existing records are updated based on the list update
List Management
settings. To check the status of the update, use the response identifier in the request of
getListImportResult.
Important
To insert a large number of records, use addToList or addToListCsv.
asyncAddRecordsToList
Parameter Type Description
listName string Name of list.
listUpdateSettings listUpdateSettings List update
settings.
importData importData Data to
import in XML
format.
resetDispositionsInCampaignsImportDa string Optional list
ta [0..unbounded] of campaign
Version 9.5 names in
which to reset
the
dispositions.
asyncAddRecordsToListResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. Can be used to
check import status and result.
asyncDeleteRecordsFromList
Deletes multiple records from a list. Use one of the deleteFromContacts methods to
delete a contact. To check the status of the update, use the response identifier in the
request of getListImportResult.
List Management
Important
Because this method affects the performance of the dialer, use this
method only during off-peak periods. To delete a large number of
records, use deleteFromList or deleteFromListCsv instead.
asyncDeleteRecordsFromList
Parameter Type Description
listName string Name of list.
listDeleteSettings listDeleteSettings List update settings.
importData importData Records to be deleted.
asyncDeleteRecordsFromListResponse
Parameter Type Description
return importIdentifier Identifier for the imported data. Can be used to
check import status and result.
checkDncForNumbers
Checks whether phone numbers are part of a DNC list. The response contains the
numbers found in the DNC list.
checkDncForNumbers
Parameter Type Description
numbers string List of numbers to search in the DNC list. You may
[0..unbounded] include up to 50000 phone numbers in a request.
checkDncForNumbersResponse
Parameter Type Description
return string [0..unbounded] Numbers found in the DNC list.
List Management
createList
Creates a dialing list.
createList
Parameter Type Description
listName string Name of list.
createListResponse
Empty.
deleteAllFromList
Deletes all records from a list.
To check the status of the update, use the response identifier in the request of
getListImportResult.
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To delete single records while an outbound campaign is
running, use deleteRecordFromList instead. To delete up to 100 records,
use asyncDeleteRecordsFromList. If you require a larger batch, contact
your Five9 representative.
deleteAllFromList
Parameter Type Description
listName string Name of list.
reportEmail string Email address for the deletion report.
callbackUrl string URL for the HTTP callback.
Version 9.5
callbackFormat callbackFormat File format returned by the client.
Version 9.5
List Management
deleteAllFromListResponse
Parameter Type Description
return importIdentifier Identifier for the deleted data. Can be used to
check import status and result.
deleteFromList
Deletes batches of records from a list.
To check the status of the update, use the response identifier in the request of
getListImportResult.
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To delete single records while an outbound campaign is
running, use deleteRecordFromList instead. To delete up to 100 records,
use asyncDeleteRecordsFromList. If you require a larger batch, contact
your Five9 representative.
deleteFromList
Parameter Type Description
listName string Name of list.
listDeleteSettings listDeleteSettings List deletion settings.
importData importData Records to delete from the list.
deleteFromListResponse
Parameter Type Description
return importIdentifier Identifier for the deleted data. Can be used to
check import status and result.
List Management
deleteFromListCsv
Deletes batches of records from a list. Records are passed as a string of comma-
separated values.
To check the status of the update, use the response identifier in the request of
getListImportResult.
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To delete single records while an outbound campaign is
running, use deleteRecordFromList instead. To delete up to 100 records,
use asyncDeleteRecordsFromList. If you require a larger batch, contact
your Five9 representative.
deleteFromListCsv
Parameter Type Description
listName string Name of list.
listDeleteSettings listDeleteSettings List deletion settings.
csvData string Records to remove from the list
in CSV format.
deleteFromListCsvResponse
Parameter Type Description
return importIdentifier Identifier for the deleted data. Can be used to
check import status and result.
deleteFromListFtp
Removes batches of records from a list by FTP. For more information about the format
of the file obtained from the FTP server, refer to the VCC Administrator’s Guide.
List Management
Important
Because this batch method affects the performance of the dialer and
uses significant database resources, use this method only during off-
peak periods. To delete single records while an outbound campaign is
running, use deleteRecordFromList instead. To delete up to 100 records,
use asyncDeleteRecordsFromList. If you require a larger batch, contact
your Five9 representative.
deleteFromListFtp
Parameter Type Description
listName string Name of list.
deleteSettings listDeleteSettings List deletion settings.
ftpSettings ftpImportSettings FTP settings.
deleteFromListFtpResponse
Empty.
deleteList
Deletes a list from the Five9 VCC configuration. Although the list is deleted, the contact
records remain in the Contact database.
deleteList
Parameter Type Description
listName string Name of list.
deleteListResponse
Empty.
List Management
deleteRecordFromList
Deletes a record from a list. Use one of the deleteFromContacts methods to delete a
contact.
Important
Because this method affects the performance of the dialer, use this
method only during off-peak periods. To delete a large number of
records, use deleteFromList or deleteFromListCsv instead.
deleteRecordFromList
Parameter Type Description
listName string Name of list.
listDeleteSettings listDeleteSettings List deletion settings.
record recordData Records to delete from the list.
deleteRecordFromListResponse
Parameter Type Description
return listImportResult Result of the deletion.
getListImportResult
Returns the detailed outcome of a list import. The import is identified by the identifier
object returned in the list import response.
getListImportResult
Parameter Type Description
identifier importIdentifier Identifier returned in one of the import
responses.
getListImportResultResponse
Parameter Type Description
return listImportResult Detailed description of the import results.
List Management
getListsInfo
Returns the names and sizes of all the dialing lists in a domain. The request contains
the specified list name starts-with pattern. The response contains all the matching lists
in the Five9 domain where the Five9 user ID in the HTTP header is located. For more
information about the HTTP header, see Basic Access Authentication.
getListsInfo
Parameter Type Description
listNamePattern string Pattern that is matched to the list names in the
user’s domain.
getListsInfoResponse
Parameter Type Description
return listInfo All dialing lists in domain with the size of
[0..unbounded] each list.
isImportRunning
Checks whether data is being imported by using the importIdentifier object returned in
the list import response. To track changes in the import process, use the waitTime
parameter (long-polling technique). The method returns the new state when it is
changed or the current state after the specified waitTime.
isImportRunning
Parameter Type Description
identifier importIdentifier Identifier for the import session.
waitTime long Optional number of seconds to wait for
changes. If not specified, This method
contains the result immediately.
isImportRunningResponse
Parameter Type Description
return boolean Whether import is running.
removeNumbersFromDnc
Checks whether phone numbers are part of a DNC list. The response contains the
numbers found in the DNC list.
removeNumbersFromDnc
Parameter Type Description
numbers string [0..unbounded] List of numbers to remove from the DNC
list.
removeNumbersFromDncResponse
Parameter Type Description
return int 0 if successful.
getAvailableLocales
Version 9.5
getAvailableLocales
Takes no parameters.
getAvailableLocalesResponse
Parameter Type Description
return string [0..unbounded] List of available locales.
getConfigurationTranslations
Version 9.5
getConfigurationTranslations
Parameter Type Description
localeName string Name of the locale.
getConfigurationTranslationsResponse
Parameter Type Description
return adminConfigTranslation List of configuration translations
[0..unbounded] for the locale.
getLocale
Version 9.5
getLocale
Takes no parameters.
getLocaleResponse
Parameter Type Description
return string Name of the locale.
setLocale
Version 9.5
setLocale
Parameter Type Description
localeName string Name of the locale.
setLocaleResponse
Empty.
updateConfigurationTranslations
Version 9.5
updateConfigurationTranslations
Parameter Type Description
localeName string Name of the locale.
diffTranslations adminConfigTranslation List of configuration
[0..unbounded] translations for the locale.
updateConfigurationTranslationsResponse
Parameter Type Description
translationsWithNonExistingKey adminConfigTranslation Updated list of
[0..unbounded] configuration
translations for
the locale.
Prompt Management
Prompt Management
addPromptTTS
Creates a prompt and to generate an audio file with text and text-to-speech settings.
addPromptTTS
Parameter Type Description
prompt promptInfo New prompt attributes.
ttsInfo ttsInfo Properties of the text-to-speech audio file.
addPromptTTSResponse
Empty.
addPromptWav
Creates a prompt and to upload a WAV audio file. For more information about the
supported WAV formats, refer to the Five9 Administrator’s Guide.
addPromptWav
Parameter Type Description
prompt promptInfo New prompt attributes.
wavFile swaRef WAV file attachment in a MIME package. For more
information, see Using swaRef.
addPromptWavResponse
Empty.
Prompt Management
addPromptWavInline
Creates a prompt and uploads an audio file in base-64 format.
addPromptWavInline
Parameter Type Description
prompt promptInfo New prompt attributes.
wavFile base64Binary WAV file attachment in a MIME package.
addPromptWavInlineResponse
Empty.
deleteLanguagePrompt
Version 9.5
You cannot overwrite an existing prompt. If you try to modify a prompt in any
language, an exception occurs.
Each prompt can exist in only one version in each language. If you try to modify an
existing prompt, you get an exception. Therefore, use this method to delete the current
language version. Afterward, use one of the modification methods to upload the new
version.
deleteLanguagePrompt
Parameter Type Description
promptName string Name of the prompt.
language string Language of the prompt.
deleteLanguagePromptResponse
Empty.
Prompt Management
deletePrompt
Deletes a prompt.
deletePrompt
Parameter Type Description
promptName string Name of prompt.
deletePromptResponse
Empty.
getPrompt
Returns the attributes of a prompt.
getPrompt
Parameter Type Description
promptName string Name of prompt.
getPromptResponse
Parameter Type Description
return promptInfo Prompt attributes.
getPrompts
Version 9.5
getPrompts
Contains no parameters.
Prompt Management
getPromptsResponse
Parameter Type Description
prompts promptInfo[0..unbounded] List of prompt attributes.
modifyPromptTTS
Updates the text-to-speech settings and the text of a prompt.
modifyPromptTTS
Parameter Type Description
prompt promptInfo New prompt attributes.
ttsInfo ttsInfo Properties of the text-to-speech audio file.
modifyPromptTTSResponse
Empty.
modifyPromptWav
Updates the settings and the audio file of a prompt.
modifyPromptWav
Parameter Type Description
prompt promptInfo Prompt attributes.
wavFile swaref WAV file attachment in a MIME package. For more
information, see the Web Services specifications.
modifyPromptWavResponse
Empty.
Reason Codes
modifyPromptWavInline
Updates the settings and the audio file of a prompt.
modifyPromptWavInline
Parameter Type Description
prompt promptInfo Prompt attributes.
wavFile base64Binary Prompt file, application/octet-stream.
modifyPromptWavInlineResponse
Empty.
Reason Codes
createReasonCode
Creates a reason code. The response contains an exception if a reason code with the
same name already exists or if the maximum number of reason codes has been
reached.
createReasonCode
Parameter Type Description
reasonCode reasonCode Name and attributes of reason code.
createReasonCodeResponse
Empty.
deleteReasonCode
No longer used. Instead, use deleteReasonCodeByType.
Reason Codes
deleteReasonCodeByType
Deletes a reason code.
deleteReasonCodeByType
Parameter Type Description
reasonCodeName string Name of reason code.
type reasonCodeType Type of reason code.
deleteReasonCodeByTypeResponse
Empty.
getReasonCode
No longer used. Instead, use getReasonCodeByType.
getReasonCodeByType
Returns the details of a reason code.
getReasonCodeByType
Parameter Type Description
reasonCodeName string Name of reason code.
type reasonCodeType Type of reason code.
getReasonCodeByTypeResponse
Parameter Type Description
return reasonCode Name and attributes of reason code.
Reports
modifyReasonCode
Updates a reason code.
modifyReasonCode
Parameter Type Description
reasonCode reasonCode Name and attributes of reason code.
modifyReasonCodeResponse
Empty.
Reports
Important
When obtained with the API, all reports that return a date use the Pacific time zone
adjusted for daylight savings time if needed. For example, if you are located in the
Central time zone, the time in reports is always -2 hours.
getReportResult
Returns the data from a report generated by runReport.
Reports
Important
For best results, Five9 recommends using the getReportResultCsv
method to return report data.
getReportResult
Parameter Type Description
identifier string Unique identifier returned by runReport.
getReportResultResponse
Parameter Type Description
return reportRowData Result of the report in table format (two-
dimensional array). The time zone is Pacific
Standard Time (PST). By default, the limit is 5,000
records.
getReportResultCsv
Returns the data from a report generated by runReport. The result of the report is in
CSV format.
getReportResultCsv
Parameter Type Description
identifier string Unique identifier returned by runReport.
getReportResultCsvResponse
Parameter Type Description
return string Result of the report in CSV format. By default, the limit is
50,000 records.
Reports
isReportRunning
Checks whether a report is running and tracks changes in the status of a report. The
method returns the response as soon as the report is completed.
Important
To prevent this method from overloading the system, Five9 recommends
that you set the timeout parameter to at least five seconds. If report gen-
eration takes longer than the specified time-out, the method returns
True, and the client resends the method.
isReportRunning
Parameter Type Description
identifier string Unique identifier returned by runReport.
timeout long Required time in seconds to wait for changes before
returning the current state. If set to 0, this method
returns the result immediately. Cannot be empty. Long
polling.
isReportRunningResponse
Parameter Type Description
return boolean Whether the report is running.
l True: Report still being
generated.
l False: Report generation
completed.
runReport
Use this method to generate a report. Because the time to generate a report varies,
you need to follow up with isReportRunning until it returns false. If you omit this step,
the report that you retrieve may not contain all the data that you expect. When the
report is completely generated, retrieve the data with getReportResult or
getReportResultCsv.
Session Information
To reduce network traffic when calling runReport, Five9 recommends that you limit the
criteria to a smaller time period to reduce the data returned. For example, to obtain
data for a year, split the time period into months or weeks to return smaller data
amounts instead of requesting one large report for an entire year.
runReport
Parameter Type Description
folderName string Report category, such as Call Log
Reports. The VCC contains standard and
custom reports. For more information,
see the Dashboards and Reports User’s
Guide.
reportName string Name of the report, such as Call Log.
criteria customReportCriteria Filters used to generate the report.
runReportResponse
Parameter Type Description
return string Identifier used to check the status of the report
(isReportRunning) and to retrieve the results
(getReportResult).
Session Information
closeSession
Closes the administrator’s session. The administrator can then log in to the VCC
Administrator application.
closeSession
Takes no parameters.
Skill Management
closeSessionResponse
Empty.
Skill Management
You can create, add, and modify skills, and obtain skill information. After you create
skills, you can assign them to users.
Important
Because methods to add, delete, and modify skills affect the per-
formance of the dialer, Five9 recommends that you use these methods
only during off-peak hours.
addSkillAudioFile
Version 9.5
addSkillAudioFile
Parameter Type Description
skillName string Skill name.
promptName string Prompt name.
addSkillAudioFileResponse
Empty.
createSkill
Creates a skill. An exception is thrown if the skill already exists, if the limit number of
skills is reached, or if skill attributes are invalid.
Skill Management
createSkill
Parameter Type Description
skillInfo skillInfo New skill information.
createSkillResponse
Parameter Type Description
return skillInfo New skill information.
deleteSkill
Deletes a skill.
deleteSkill
Parameter Type Description
skillName string Name of skill to be deleted.
deleteSkillResponse
Empty.
getSkill
Returns skill information: skill name, skill description, message of the day, and whether
skill voicemail messages are routed to agents.
getSkill
Parameter Type Description
skillName string Name of skill.
getSkillResponse
Parameter Type Description
return getSkill Skill information.
Skill Management
getSkillAudioFiles
Version 9.5
getSkill
Parameter Type Description
skillName string Name of skill.
getSkillResponse
Parameter Type Description
prompts string [0..unbounded] List of files.
getSkillInfo
Returns detailed skill information about a skill.
getSkillInfo
Parameter Type Description
skillName string Name of skill.
getSkillInfoResponse
Parameter Type Description
return skillInfo Skill information.
getSkills
Returns information about each skill name that matches a pattern.
Skill Management
getSkills
Parameter Type Description
skillNamePattern string Pattern of skill name. The skill name pattern is a
regular expression. If omitted or equal to an
empty string, all objects are returned.
getSkillsResponse
Parameter Type Description
return skill Skill information for each skill that matches the
[0..unbounded] pattern.
getSkillsInfo
Returns a list of users that possess the skill that matches a skill name pattern.
getSkillsInfo
Parameter Type Description
skillNamePattern string Pattern of skill name. The skill name pattern is a
regular expression. If omitted or equal to an
empty string, all objects are returned.
getSkillsInfoResponse
Parameter Type Description
return skillInfo Skill information for each skill that matches the
[0..unbounded] pattern.
getSkillVoicemailGreeting
Returns the attributes of a prompt.
Skill Management
getSkillVoicemailGreeting
Parameter Type Description
skillName string Name of skill with the specified voicemail greeting.
getSkillVoicemailGreetingResponse
Parameter Type Description
return base64Binary Audio file that is the voicemail greeting of specified
skill. For more information, refer to the XML
definition.
modifySkill
Modifies an existing skill. An exception is thrown if the skill already exists or if the skill
attributes are invalid.
modifySkill
Parameter Type Description
skill skill Name of skill to modify.
modifySkillResponse
Parameter Type Description
return skillInfo Information about the modified skill.
removeSkillAudioFile
Version 9.5
removeSkillAudioFile
Parameter Type Description
skillName string Skill name.
promptName string Prompt name.
removeSkillAudioFileResponse
Empty.
setSkillVoicemailGreeting
Uploads the audio file in WAV format provided by the Web Services user and associates
it with a skill to be played when no agents are available to take calls. If a voicemail
greeting already exists for the skill, it is replaced. For more information about the WAV
formats supported by the VCC, refer to the Administrator’s Guide.
setSkillVoicemailGreeting
Parameter Type Description
skillName string New prompt attributes.
wavFile base64Binary Audio file that contains the recording. For more
information, refer to the XML definition.
setSkillVoicemailGreetingResponse
Empty.
createSpeedDialNumber
Version 10.2
createSpeedDialNumber
Parameter Type Description
code string Code assigned to the telephone number to speed dial.
description string Description for the number.
number string Telephone number to dial.
createSpeedDialNumberResponse
Parameter Type Description
SpeedDialNumber speedDialNumber Information about the speed dial
number.
getSpeedDialNumbers
Version 10.2
getSpeedDialNumbers
Empty.
getSpeedDialNumbersResponse
Parameter Type Description
SpeedDialNumber speedDialNumber Speed dial numbers.
[0..unbounded]
User Management
removeSpeedDialNumber
Version 10.2
removeSpeedDialNumber
Parameter Type Description
code string Code assigned to the number to speed dial.
removeSpeedDialNumberResponse
Empty.
User Management
You can create users, add and modify user attributes, and obtain user information.
createUser
Creates a user.
An exception is thrown if the user already exists, if the limit number of users is reached,
or if user attributes are invalid.
createUser
Parameter Type Description
userInfo userInfo New user information.
createUserResponse
Parameter Type Description
return userInfo New user information.
User Management
deleteUser
Deletes the specified user. An exception is thrown if the user does not exist.
deleteUser
Parameter Type Description
userName string Name of user to be deleted.
deleteUserResponse
Empty.
getUserGeneralInfo
No longer used. Use getUsersGeneralInfo instead.
getUserInfo
No longer used. Use getUsersInfo instead.
getUserVoicemailGreeting
Returns the user’s voicemail greeting.
getUserVoicemailGreeting
Parameter Type Description
userName string Name of user who has the specified voicemail greeting.
getUserVoicemailGreetingResponse
Parameter Type Description
return base64Binary Audio file that is the voicemail greeting of specified
user. For more information, refer to the XML
definition.
User Management
getUsersGeneralInfo
Returns general information about each user name that matches a pattern.
getUsersGeneralInfo
Parameter Type Description
userNamePattern string Regular expression that describes the user name
pattern. If omitted or equal to an empty string, all
objects are returned. For example, a pattern may
be the first characters of the user name.
Warning
Five9 recommends that you specify a string for the user-
NamePattern parameter as part of the method to reduce the number
of objects processed and returned. If you do not specify a string, all user
objects are returned. Depending on the number of user objects, the
response time may result in performance degradation.
getUsersGeneralInfoResponse
Parameter Type Description
return userGeneralInfo Information about each user name that matches
[0..unbounded] the pattern.
getUsersInfo
Returns information about roles and skills of each user name that matches a pattern.
getUsersInfo
Parameter Type Description
userNamePattern string Regular expression that describes the user name
pattern. If omitted or equal to an empty string, all
objects are returned. For example, a pattern may
be the first characters of the user’s name.
User Management
Warning
Five9 recommends that you specify a string for the user-
NamePattern parameter as part of the method to reduce the number
of objects processed and returned. If you do not specify a string, all user
objects are returned. Depending on the number of user objects, the
response time may result in performance degradation.
getUsersInfoResponse
Parameter Type Description
return userInfo Information about each user name that matches
[0..unbounded] the pattern.
modifyUser
Modifies the user’s attributes.
An exception is thrown if the user already exists, if the limit number of users is reached,
or if user attributes are invalid.
modifyUser
Parameter Type Description
userGeneralInfo userGeneralInfo User information to modify.
rolesToSet userRoles User roles to modify.
rolesToRemove userRoleType User roles to remove.
[0..unbounded]
modifyUserResponse
Parameter Type Description
return userInfo Modified user information.
User Management
modifyUserCannedReports
Updates the list of canned reports associated with a specific user. To get a list of the
user’s current canned reports, use getUsersInfo.
modifyUserCannedReports
Parameter Type Description
userName string Name of user.
cannedReportsToAdd cannedReport References to existing reports to
[0..unbounded] associate with user.
cannedReportsToRemove string Names of reports to disassociate
[0..unbounded] from user.
modifyUserCannedReportsResponse
Parameter Type Description
return userInfo Modified user information.
setUserVoicemailGreeting
Uploads the audio file in WAV format provided by the Web Services user and to play
the file when the user is not available to take calls. If a voicemail greeting already exists
for the user, it is replaced. For more information about the WAV formats supported by
the VCC, see the Basic Administrator’s Guide.
setUserVoicemailGreeting
Parameter Type Description
userName string Name of user.
wavFile base64Binary File name.
setUserVoicemailGreetingResponse
Empty.
User Management
userSkillAdd
Adds a skill to a user.
Important
To prevent the userSkillAdd method from overloading the system, Five9
recommends that you set a sleep parameter of at least 3 seconds
between each request. Because this method affects the performance of
the dialer and uses significant database resources, use this method only
during off-peak periods.
userSkillAdd
Parameter Type Description
userSkill userSkill Skill to be added.
userSkillAddResponse
Empty.
userSkillModify
Modifies a skill.
Important
To prevent the userSkillModify method from overloading the system,
Five9 recommends that you set a sleep parameter of at least 3 seconds
between each request. Because this method affects the performance of
the dialer and uses significant database resources, use this method only
during off-peak periods.
userSkillModify
Parameter Type Description
userSkill userSkill Skill to be modified.
User Profiles
userSkillModifyResponse
Empty.
userSkillRemove
Deletes a skill.
Important
To prevent the userSkillRemove method from overloading the system,
Five9 recommends that you set a sleep parameter of at least 3 seconds
between each request. Because this method affects the performance of
the dialer and uses significant database resources, use this method only
during off-peak periods.
userSkillRemove
Parameter Type Description
userSkill userSkill Skill to be deleted.
userSkillRemoveResponse
Empty.
User Profiles
User profiles simplify the task of configuring large numbers of users by enabling you to
assign the same permissions and skills to all members of a group.
createUserProfile
Creates a user profile with a set of users, roles, skills, and layout.
User Profiles
createUserProfile
Parameter Type Description
userProfile userProfile Profile to be created.
createUserProfileResponse
Parameter Type Description
return userProfile New profile.
deleteUserProfile
Deletes a user profile.
deleteUserProfile
Parameter Type Description
userProfileName string Name of profile.
deleteUserProfileResponse
Empty.
getUserProfile
Returns information (users, roles, and skills) about a user profile. To obtain information
about several user profiles, use getUserProfiles.
getUserProfile
Parameter Type Description
userProfileName string Name of profile.
getUserProfileResponse
Parameter Type Description
return userProfile Profile information.
User Profiles
getUserProfiles
Returns a list of user profiles whose names match a string pattern.
getUserProfiles
Parameter Type Description
userProfileNamePatern string Name of the profile or regular expression.
Note spelling. For all user profiles, omit the parameter or
use this pattern: .*
getUserProfilesResponse
Parameter Type Description
return userProfile List of user profiles.
[0..unbounded]
modifyUserProfile
Updates a user profile.
modifyUserProfile
Parameter Type Description
userProfile userProfile Name of profile.
modifyUserProfileResponse
Empty.
modifyUserProfileSkills
Updates the skills of a user profile.
VCC Configuration
modifyUserProfileSkills
Parameter Type Description
userProfileName string Name of profile.
addSkills string [0..unbounded] List of skills to add.
removeSkills string [0..unbounded] List of skills to remove.
modifyUserProfileSkillsResponse
Empty.
modifyUserProfileUserList
Updates the users of a user profile.
modifyUserProfileUserList
Parameter Type Description
userProfileName string Name of profile.
addUsers string [0..unbounded] List of users to add.
removeUsers string [0..unbounded] List of users to remove.
modifyUserProfileUserListResponse
Empty.
VCC Configuration
Returns information about the Virtual Call Center and the Web Services API.
getApiVersions
Version 9.5
VCC Configuration
Returns the newest and oldest production versions of the API available to the user so
that the client can use the appropriate URL and methods.
getApiVersions
Contains no parameters.
getApiVersionsResponse
Parameter Type Description
return versions Available versions of the API.
getVCCConfiguration
Returns the global settings of your VCC.
getVCCConfiguration
Empty.
getVCCConfigurationResponse
Parameter Type Description
return vccConfiguration Configuration of your VCC.
modifyVCCConfiguration
Updates the global settings of your Virtual Call Center.
modifyVCCConfiguration
Parameter Type Description
configuration vccConfiguration Configuration of your VCC.
modifyVCCConfigurationResponse
Empty.
All error messages contain at least the message parameter, which is a string that
describes the exception. Some exceptions contain additional parameters, which are
described in the table.
Name Description
AccessDisallowedFault Your domain does not have access to the Five9
Configuration Web Services. To request access,
contact Five9 Support.
AddRecordToListFault Version 3 Error with addRecordToListSimple
due to one of these reasons:
The following field(s) do not exist in the CRM
table: {0}
l Sending email not supported in this release.
l Mandatory field {0} missing.
l There can be maximum of 64 CRM fields.
l Number {0} must either be 10 digits for
dialing within North America or begin with
011 for International number.
l Number {0} has to be less than or equal to 16
digit and greater than or equal to 10 digit.
l List was not found.
l Specified record already exist in the list.
l At least one number should be specified for
new record.
l No value provided for key {0}.
l More than one record matches specified
criteria.
l At least one key must be provided.
l Time format must be provided along with
Time to Dial.
VCC Configuration
Name Description
l Incorrect Time to Dial.
VCC Configuration
Name Description
Name Type Description
campaignName string Name of campaign.
CampaignStateUpdateFault Campaign state cannot be updated, for
example: you cannot stop a campaign that is
not running.
Name Type Description
campaignName string Name of campaign.
details string Reason for the failure.
CantModifyObjectFault System error.
CommonCampaignFault Common part of the campaign error.
Version 3 Name Type Description
campaignName string Name of campaign.
ConcurrentModificationFault Specified object is already being modified by
another client.
CrmFieldNotFoundFault Specified contact database field cannot be
found in this domain.
Name Type Description
fieldName string Name of field.
DialProfileNotFoundFault Undefined profile is specified when creating or
modifying an outbound campaign.
Name Type Description
profileName string Name of profile.
DispositionAlreadyExistsFault Attempting to create a disposition that already
exists or to rename a disposition to the name of
a disposition that already exists.
Name Type Description
dispositionName string Name of disposition.
DispositionIsAlreadyAssigned Attempting to assign to a campaign a
Fault disposition that has already been assigned to
DispositionAlreadyAssigned the campaign.
Exception
Name Type Description
Note: The Fault name is campaignName string Name of campaign.
different from the Exception Information about
name. dispositionName string
current and requested
VCC Configuration
Name Description
Name Type Description
disposition.
DispositionIsNotAssisgnedFault Attempting to remove from a campaign a
disposition that is not assigned to that
DispositionIsNotAssigned campaign.
Exception
Name Type Description
Note: The spelling of the campaignName string Name of campaign.
Fault is different from that of dispositionName string Name of disposition.
the Exception.
VCC Configuration
Name Description
ExtensionsOutOfRangeFault Number of digits in the users’ extension is out of
Version 9.5 the allowed range.
Name Type Description
string Name of cam-
campaignName
[0..unbounded] paign.
string List of user
userNames
[0..unbounded] names.
FinderException Object cannot be found.
ImportCancelledFault Import operation was canceled.
ImportInProgressFault Campaign cannot be deleted because data is
being imported into this campaign or into a list
associated with this campaign
ImportSizeLimitExceededFault Request exceeds maximum number of records
ImportRecordsCountLimit allowed.
ExceededException Name Type Description
Note: The name of the fault Maximum number of
limit int
is different from that of the records allowed.
exception. Number of records in the
recordsCount int
request.
IncorrectArgumentFault Request contains incorrect argument name or
value, or non-parameterized scripts contain
parameters.
InternalImportFault All requests that trigger a data import process
may experience an internal import fault.
Resubmit the request.
InvalidAccountFault Invalid account regardless of the reason,
including password and security questions
issues. May be returned by the createUser and
modifyUser methods.
InvalidDateRangeFault Invalid date range. Start date and time must
precede end date and time.
Name Type Description
end dateTime End time of range.
start dateTime Start time of range.
InvalidImportDataFault Incorrectly formatted source data for import
VCC Configuration
Name Description
operations.
InvalidRegexpPatternFault Incorrectly formed regular expression used for
data lookup.
Name Type Description
pattern string Invalid regular expression.
InvalidUserDataFault Error in data provided to create or update user.
IvrScriptOwnershipNotFoundFaul Attempting to create or modify an IVR script
t with invalid ownership information.
Version 10
IvrScriptNotFoundFault Attempting to create or modify a campaign with
an IVR script that does not exist.
Name Type Description
ivrScriptName string Name of IVR script.
ListAlreadyAssignedFault List already assigned to this campaign.
Name Type Description
campaignName string Name of campaign.
listName string Name of list.
ListAlreadyExistsFault List name already in use.
Name Type Description
listName string Name of list.
ListCantBeRemovedFault Attempting to delete a list that is in use.
Name Type Description
listName string Name of list.
ListIsNotAssignedFault Attempting to modify or remove a list that is not
assigned to the campaign.
Name Type Description
campaignName string Name of campaign.
listName string Name of list.
ListNotFoundFault Attempting to modify a list that does not exist.
Name Type Description
listName string Name of list.
LocaleNotFoundFault Unable to find the contact’s locale.
Version 9.5
VCC Configuration
Name Description
Name Type Description
localeName string Name of locale.
LogoutReasonCodeNotFoundFault No reason codes of type logout exist with the
Removed from Version 10 name provided.
Name Type Description
Name of reason
reasonCodeName string
code.
MaxPlayFileCountForSkill Number of audio files for the skill has been
ExceededFault exceeded.
Version 9.5
Name Type Description
skillName string Name of skill.
MissedArgumentFault Required argument is missing from the request.
MissedOsLoginFault Do not use.
NotReadyReasonCodeNotFoundFaul No Not Ready reason code with that name
t exists.
Removed from Version 10 Name Type Description
Name of reason
reasonCodeName string
code.
ObjectAlreadyExistsFault Object with the same name already exists.
Name TypeDescription
id long Object ID.
Name of
objectName string
object.
objectType wsObjectType Type of data.
ObjectInUseFault Requested object is currently being used.
Name TypeDescription
id long Object ID.
Name of
objectName string
object.
objectType wsObjectType Type of data.
ObjectNotFoundFault Requested object does not exist.
Name Type Description
id long Object ID.
VCC Configuration
Name Description
Name Type Description
Name of
objectName string
object.
objectType wsObjectType Type of data.
ObjectsCountLimitExceededFault Maximum count for this type of object for your
domain has been reached.
Name Type Description
id long Object ID.
Limit that has
limit int
been reached.
Name of
objectName string
object.
objectType wsObjectType Type of data.
OperationsLimitExceededFault Maximum number of Web Services requests for
the 24-hour period has been exceeded.
Name Type Description
Maximum number of
limit long
requests.
operationType string Type of operation.
ParseException Error found during parsing.
Name Type Description
errorOffset int Location of the error.
PromptAlreadyExistsFault Attempting to create a prompt that already
exists.
Name Type Description
promptName string Name of prompt.
PromptCantBeDeletedFault Attempting to delete a prompt that is currently
in use.
Name Type Description
promptName string Name of prompt.
PromptNotFoundFault Attempting to create or modify a campaign that
requires a prompt.
Name Type Description
promptName string Name of prompt.
VCC Configuration
Name Description
ReasonCodeCountLimitExceeded Limit for the number of reason codes in a
Fault domain has been reached.
Name Type Description
Name of reason
reasonCodeName string
code.
ReasonCodeNotFoundFault No reason code of that name exists.
Name Type Description
Name of reason
reasonCodeName string
code.
ReportNotFoundFault Report with that name and category does not
exist.
Name Type Description
folder string Category of report.
reportName string Name of report.
ResultIsNotReadyFault Operation in progress has not been completed.
To check status, use isImportRunning or
isReportRunning.
ScheduleNotFoundFault FTP schedule was not found.
Name Type Description
scheduleName string Name of schedule.
ScheduleOperationFailedFault Attempt to schedule FTP event failed.
Name Type Description
Enumeratio
operationTyp
operation n of type
e
string.
sched- Name of
string
uleName schedule.
ServerFault Web Services server error.
ServiceUnavailableFault Web Services are not available.
SessionClosedFault Session closed while the request is executed
because another session is started concurrently
with the same credentials.
SkillAlreadyAssignedFault Attempting to assign to a campaign a skill
already assigned to the campaign.
VCC Configuration
Name Description
Name Type Description
campaignName string Name of campaign.
SkillAlreadyExistsFault Attempting to create a skill with a name that
already exists.
Name Type Description
skillName string Name of skill.
SkillCantBeDeletedFault Attempting to delete a skill used in other
objects.
Name Type Description
skillName string Name of skill.
SkillIsNotAssignedFault Attempting to remove or modify a skill that is
not assigned to that campaign.
Name Type Description
campaignName string Name of campaign.
skillName string Name of skill.
SkillNotFoundFault Requested skill cannot be found.
Name Type Description
skillName string Name of skill.
TooManyExtensionsFault Number of extensions has exceeded the
maximum allowed.
TooManyItemsFault Number of items has exceeded the maximum
allowed.
TooManyUsersFault Number of users has exceeded the maximum
allowed. Returned by createUser.
TtsGenerationFailed Audio file for the TTS prompt cannot be created.
Name Type Description
Note: Fault is absent from
the name of the Exception. promptName string Name of prompt.
VCC Configuration
Name Description
Name Type Description
userName string Name of user.
UserAlreadyHasSkillFault User already has the specified skill.
Name Type Description
skillName string Name of skill.
userName string Name of user.
UserAlreadyLoggedInFault User ID is already logged in.
UserCantBeDeletedFault User name cannot be deleted because it is used
in other objects.
Name Type Description
userName string Name of user.
UserDoesntHaveSkillFault User does not have the specified skill.
Name Type Description
skillName string Name of skill.
userName string Name of user.
UserHasNoRequiredRoleFault User being added to agent group does not have
UserHasNoRequiredRolesExceptio the required agent or supervisor role.
n Name Type Description
Note: The spelling of the userRoleType
roles Types of roles.
Fault is different from that of [0..unbounded]
the Exception. userName string Name of user.
VCC Configuration
Name Description
Name Type Description
campaignStat Specified
actualState
e state.
cam- Name of
string
paignName campaign.
Campaign
campaignStat state that
desiredState
e should be
specified.
WrongCampaignTypeFault Incorrect campaign type. For example,
outbound campaign requests should contain
types that apply to outbound campaigns.
Name Type
Description
Specified
actualType campaignType campaign
type.
Name of
campaignName string
campaign.
Campaign
desiredType campaignType types to
specify.
WrongListDialingModeFault Incorrect dialing mode.
WrongListDialingModeFault
Name Type Description
Version 4
campaignName string Name of campaign.
This contains an example request and response pair for these methods:
XML Examples
PHP Example
XML Examples
addToListCsv
addRecordToList
asyncAddRecordsToList
deleteFromContacts
runReport
addToListCsv
Request
listUpdateSettings, highlighted in blue, extends basicImportSettings, highlighted
in red.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:addToListCsv>
<listName>hotleadslist</listName>
<listUpdateSettings>
<fieldsMapping>
<columnNumber>1</columnNumber>
<fieldName>number1</fieldName>
<key>true</key>
</fieldsMapping>
<fieldsMapping>
<columnNumber>2</columnNumber>
<fieldName>first_name</fieldName>
XML Examples
<key>false</key>
</fieldsMapping>
<fieldsMapping>
<columnNumber>3</columnNumber>
<fieldName>last_name</fieldName>
<key>false</key>
</fieldsMapping>
<reportEmail>admin@yourcompany.com</reportEmail>
<separator>,</separator>
<skipHeaderLine>true</skipHeaderLine>
<cleanListBeforeUpdate>false</cleanListBeforeUpdate>
<crmAddMode>ADD_NEW</crmAddMode>
<crmUpdateMode>UPDATE_ALL</crmUpdateMode>
<listAddMode>ADD_ALL</listAddMode>
</listUpdateSettings>
<csvData>number1,first_name,last_name</csvData>
</ser:addToListCsv>
</env:Body>
</env:Envelope>
Response
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:addToListCsvResponse>
<return>
<identifier>0a2c9316-1a68-4be1-b817-c885326018c6
</identifier>
</return>
</ser:addToListCsvResponse>
</env:Body>
</env:Envelope>
addRecordToList
Request
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:addRecordToList>
<listName>some_list_name</listName>
<listUpdateSettings>
XML Examples
<fieldsMapping>
<columnNumber>1</columnNumber>
<fieldName>number1</fieldName>
<key>true</key>
</fieldsMapping>
<fieldsMapping>
<columnNumber>2</columnNumber>
<fieldName>first_name</fieldName>
<key>false</key>
</fieldsMapping>
<fieldsMapping>
<columnNumber>3</columnNumber>
<fieldName>last_name</fieldName>
<key>false</key>
</fieldsMapping>
<separator>,</separator>
<skipHeaderLine>false</skipHeaderLine>
<callNowMode>ANY</callNowMode>
<cleanListBeforeUpdate>false</cleanListBeforeUpdate>
<crmAddMode>ADD_NEW</crmAddMode>
<crmUpdateMode>UPDATE_FIRST</crmUpdateMode>
<listAddMode>ADD_FIRST</listAddMode>
</listUpdateSettings>
<record>
<fields>5551208111</fields>
<fields>John</fields>
<fields>Smith</fields>
</record>
</ser:addRecordToList>
</env:Body>
</env:Envelope>
Response
listImportResult, highlighted in blue, extends basicImportResults, highlighted in
red.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:addRecordToListResponse>
<return>
<uploadDuplicatesCount>0</uploadDuplicatesCount>
<uploadErrorsCount>0</uploadErrorsCount>
<warningsCount/>
<crmRecordsInserted>0</crmRecordsInserted>
<crmRecordsUpdated>1</crmRecordsUpdated>
XML Examples
<listName>some_list_name</listName>
<listRecordsDeleted>0</listRecordsDeleted>
<listRecordsInserted>0</listRecordsInserted>
</return>
</ser:addRecordToListResponse>
</env:Body>
</env:Envelope>
asyncAddRecordsToList
Request
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:asyncAddRecordsToList>
<listName>asdf</listName>
<listUpdateSettings>
<fieldsMapping>
<columnNumber>1</columnNumber>
<fieldName>number1</fieldName>
<key>true</key>
</fieldsMapping>
<fieldsMapping>
<columnNumber>2</columnNumber>
<fieldName>first_name</fieldName>
<key>false</key>
</fieldsMapping>
<callTimeColumnNumber>3</callTimeColumnNumber>
<crmAddMode>ADD_NEW</crmAddMode>
<callNowMode>ANY</callNowMode>
<crmUpdateMode>UPDATE_FIRST</crmUpdateMode>
<listAddMode>ADD_IF_SOLE_CRM_MATCH</listAddMode>
</listUpdateSettings>
<importData>
<values>
<item>6665554499</item>
<item>George</item>
<item>1341957101000</item>
</values>
<values>
<item>9995554499</item>
<item>Ringo</item>
<item>1341957500000</item>
</values>
XML Examples
</importData>
</ser:asyncAddRecordsToList>
</env:Body>
</env:Envelope>
Response
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:asyncAddRecordsToListResponse>
<return>
<identifier>some_string</identifier>
</return>
</ser:addRecordToListResponse>
</env:Body>
</env:Envelope>
deleteFromContacts
Request
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:deleteFromContacts>
<crmDeleteSettings>
<fieldsMapping>
<columnNumber>1</columnNumber>
<fieldName>number2</fieldName>
<key>true</key>
</fieldsMapping>
<reportEmail>admin@yourcompany.com</reportEmail>
<separator>,</separator>
<skipHeaderLine>false</skipHeaderLine>
<crmDeleteMode>DELETE_ALL</crmDeleteMode>
</crmDeleteSettings>
<importData>
<values>
<item>4155551234</item>
</values>
<values>
<item>5552654455</item>
</values>
XML Examples
</importData>
</ser:deleteFromContacts>
</env:Body>
</env:Envelope>
Response
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.admin.ws.five9.com/">
<env:Header/>
<env:Body>
<ser:deleteFromContactsResponse>
<return>
<identifier>91d4fb84-223f-49b9-8a12-c91484bc5c78
</identifier>
</return>
</ser:deleteFromContactsResponse>
</env:Body>
</env:Envelope>
runReport
This example contains multiple <criteria> objects.
Request
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance"
xmlns:tns="http://service.admin.ws.five9.com/"
xmlns:env="http://schemas.xmlsoap.org/soap/
envelope/"
xmlns:ins0="http://jaxb.dev.java.net/array">
<env:Body>
<tns:runReport>
<folderName>Shared Reports</folderName>
<reportName>Test Report</reportName>
<criteria>
<time>
<start>2019-04-16T20:22:17.173</start>
<end>2019-05-08T02:37:42.4786435-05:00</end>
</time>
<reportObjects>
<objectNames>Test Campaign1</objectNames>
<objectNames>Test Campaign2</objectNames>
<objectType>Campaign</objectType>
PHP Example
</reportObjects>
</criteria>
</tns:runReport>
</env:Body>
</env:Envelope>
Response
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<ns2:runReportResponse
xmlns:ns2="http://service.admin.ws.five9.com/">
<return>E0F0BC9A5544767BBrt0.c.ie.oA6DAA@
7p90E4Bs7lCf4v49BcAm
</return>
</ns2:runReportResponse>
</env:Body>
</env:Envelope>
PHP Example
<?php
echo "Begin<br/><br/>";
try
{
$soap_options = array( 'login' => 'Five9username', 'password' =>
'Five9password', 'trace' => true );
$client_five9 = new SoapClient( $wsdl_five9 , $soap_options );
}
catch (Exception $e)
{
$error_message = $e->getMessage();
echo $error_message;
}
PHP Example
$result = $client_five9->asyncAddRecordsToList($xml_data);
$variables = get_object_vars($result);
$resp = get_object_vars($variables['return']);
$identifier = $resp['identifier']; //the ID for the import
//echo $identifier;
while($import_running)
{
try
{
$IIR_result = $client_five9->isImportRunning($IIR_p);
prevent multiple calls within a second
$variables = get_object_vars($IIR_result);
// to prevent multiple calls within a second
sleep (1);
$import_running = $variables['return'];
}
catch (Exception $e)
PHP Example
{
$error_message = $e->getMessage();
echo $error_message;
}
}
?>