---
schema_version: "1"
id: 75aa78d7d6398dea95bb9bc6c36a52a7fb19f4b06e50a8b71ad7e9a50be3d279
title: getCallCenterSettings() for Salesforce Classic
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/api-cti/guides/sforce-api-cti-getcallcentersettings.md
canonical_url: https://developer.salesforce.com/docs/service/api-cti/guide/sforce-api-cti-getcallcentersettings.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2d10cd835d7bf2cc9dcce9669fa89911197078d69f58b899f6984036f395f2fe
products:
  - Open CTI Developer Guide
  - Service Cloud Developer Content
---

# getCallCenterSettings() for Salesforce Classic

## Usage

Returns the call center settings in the call center definition file as a JSON string. For more information, see [Call Center Definition Files](https://developer.salesforce.com/docs/service/api-cti/guide/sforce-api-cti-call-def-file.md).

## Syntax

```javascript
sforce.interaction.cti.getCallCenterSettings(callback:function)
```

## Arguments

|Name|Type|Description|
|------|------|-------------|
|`callback`|function|JavaScript method executed when the API method call is completed.|


## Sample Code–JavaScript

<!-- javascript set_clipboard -->
```javascript
<html>
<head>
   <script type="text/javascript" src="http://domain:port/support/api/25.0/interaction.js"></script>
   <script type="text/javascript">
       var callback = function (response) {
       alert(response.result);
   } 

   //Calls getCallCenterSettings
   sforce.interaction.cti.getCallCenterSettings(callback);
   </script>
</head> 
<body></body>
</html>
```

## Response

This method is asynchronous. The response is returned in an object passed to a callback method. The response object contains the following fields.

|Name|Type|Description|
|------|------|-------------|
|`result`|string|If the API call was successful, the call center settings definition is returned as a JSON string. If the API call failed, null is returned.|
|`error`|string|If the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message.|


