Get Genesys Cloud settings
curl --request GET \
--url http://localhost:8080/integrations/genesys/settings \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/integrations/genesys/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/integrations/genesys/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/integrations/genesys/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/integrations/genesys/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/integrations/genesys/settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/genesys/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"region": "mypurecloud.com",
"client_id": "<string>",
"genesys_org_id": "<string>",
"genesys_org_name": "<string>",
"auth_mode": "manual",
"enabled": true,
"live": true,
"current_ticketing_system": "<string>",
"needs_reconnect": true,
"open_messaging_integration_id": "<string>",
"default_queue_id": "<string>",
"handoff_target": "genesys_routing",
"handoff_agent_id": "<string>",
"on_conversation_end": "close",
"no_agents_policy": "handoff_anyway",
"default_wrapup_code_id": "<string>",
"workitem_mode": "never",
"workitem_worktype_id": "<string>",
"presence_sync": "off",
"native_email": {
"enabled": true,
"queue_id": "<string>",
"human_queue_id": "<string>",
"reply_mode": "agentless",
"from_address": "<string>"
},
"native_messaging": {
"enabled": true,
"connector_url": "<string>",
"secret_header": "<string>"
},
"smart_routing": true,
"resume_ai_after_wrapup": true,
"wrapup_suggestion_mode": "off"
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Genesys Cloud Integration
Get settings
Read the Genesys Cloud connection and handoff settings. The client secret is never returned.
GET
/
integrations
/
genesys
/
settings
Get Genesys Cloud settings
curl --request GET \
--url http://localhost:8080/integrations/genesys/settings \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/integrations/genesys/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/integrations/genesys/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/integrations/genesys/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/integrations/genesys/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/integrations/genesys/settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/genesys/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"region": "mypurecloud.com",
"client_id": "<string>",
"genesys_org_id": "<string>",
"genesys_org_name": "<string>",
"auth_mode": "manual",
"enabled": true,
"live": true,
"current_ticketing_system": "<string>",
"needs_reconnect": true,
"open_messaging_integration_id": "<string>",
"default_queue_id": "<string>",
"handoff_target": "genesys_routing",
"handoff_agent_id": "<string>",
"on_conversation_end": "close",
"no_agents_policy": "handoff_anyway",
"default_wrapup_code_id": "<string>",
"workitem_mode": "never",
"workitem_worktype_id": "<string>",
"presence_sync": "off",
"native_email": {
"enabled": true,
"queue_id": "<string>",
"human_queue_id": "<string>",
"reply_mode": "agentless",
"from_address": "<string>"
},
"native_messaging": {
"enabled": true,
"connector_url": "<string>",
"secret_header": "<string>"
},
"smart_routing": true,
"resume_ai_after_wrapup": true,
"wrapup_suggestion_mode": "off"
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Was this page helpful?