Legacy Dev Forum Posts

 View Only

Sign Up

Genesys Cloud Integration with Mulesoft (Web Service data intergration)

  • 1.  Genesys Cloud Integration with Mulesoft (Web Service data intergration)

    Posted 06-05-2025 19:04

    adesh.jadhav | 2024-04-11 21:24:27 UTC | #1

    Hi Team,

    I'm trying to create Web service data action integration for Mulesoft endpoint to fetch the customer information.

    I tried different ways to build the different authentication method , basic auth & user defined oAuth but nothing seems to work. I tried using postman & its work without any issue.

    Attaching the postman collection json below... could someone help me with right approach to build Genesys cloud data action & integration ?

    {
    	"info": {
    		"_postman_id": "b8efdf78-7607-4a44-b933-4a9ecc11de00",
    		"name": "DEV: Contacts-Genesys",
    		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    		"_exporter_id": "33285836"
    	},
    	"item": [
    		{
    			"name": "Generate token",
    			"event": [
    				{
    					"listen": "test",
    					"script": {
    						"exec": [
    							"var data = pm.response.json();\r",
    							"pm.collectionVariables.set(\"access_token\", data.access_token);"
    						],
    						"type": "text/javascript",
    						"packages": {}
    					}
    				}
    			],
    			"request": {
    				"auth": {
    					"type": "basic",
    					"basic": [
    						{
    							"key": "password",
    							"value": "xxxxxxxxxxxxxx",
    							"type": "string"
    						},
    						{
    							"key": "username",
    							"value": "xxxxxxxxxxxxx",
    							"type": "string"
    						}
    					]
    				},
    				"method": "POST",
    				"header": [],
    				"url": {
    					"raw": "https://xxxxxxxxxxxxxxx",
    					"protocol": "https",
    					"host": [
    						"dev-apint",
    						"bat",
    						"net"
    					],
    					"path": [
    						"bat-p-c4ev2-oauth2-t",
    						"v2",
    						"oauth2",
    						"token"
    					],
    					"query": [
    						{
    							"key": "grant_type",
    							"value": "client_credentials"
    						}
    					]
    				}
    			},
    			"response": []
    		},
    		{
    			"name": "Contacts_by_phoneNumber",
    			"request": {
    				"auth": {
    					"type": "bearer",
    					"bearer": [
    						{
    							"key": "token",
    							"value": "xxxxxxxxxxxxxxx",
    							"type": "string"
    						}
    					]
    				},
    				"method": "GET",
    				"header": [],
    				"url": {
    					"raw": "https:// xxxxxxxxxxxxxxxxxxxxxxxxxx",
    					"protocol": "https",
    					"host": [
    						"dev-apint",
    						"bat",
    						"net"
    					],
    					"path": [
    						"bat-e-md2b-sf-petra-d",
    						"v1",
    						"contacts"
    					],
    					"query": [
    						{
    							"key": "endMarketISO",
    							"value": "DE"
    						},
    						{
    							"key": "phoneNumber",
    							"value": "xxxxxxxxx"
    						},
    						{
    							"key": "",
    							"value": "",
    							"disabled": true
    						}
    					]
    				}
    			},
    			"response": []
    		}
    	],
    	"variable": [
    		{
    			"key": "access_token",
    			"value": ""
    		}
    	]
    }

    system | 2024-05-12 21:24:40 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 25678