Hi @Jesus Garces
Here is a sample integration crendential you can look at. you can also follow this thread for more information .
PS: the expose_client_secret only works when you are creating a new auth client. For an existing auth client adding this attribute will not make any impact because the "read acuth client" will no longer return client secret. Client secret is only exposed during creation.
data "genesyscloud_auth_division" "New_Home" {
name = "New Home"
}
data "genesyscloud_auth_role" "Master_Admin" {
name = "Master Admin"
}
resource "genesyscloud_oauth_client" "hem_Client2" {
state = "active"
access_token_validity_seconds = 86400
authorized_grant_type = "CLIENT-CREDENTIALS"
name = "hem Client2"
roles {
division_id = "${data.genesyscloud_auth_division.New_Home.id}"
role_id = "${data.genesyscloud_auth_role.Master_Admin.id}"
}
integration_credential_name = "new credential"
expose_client_secret = true
}
resource "genesyscloud_integration_credential" "credentials_hem2" {
name = "credentials_hem7"
credential_type_name = "pureCloudOAuthClient"
fields = {
clientId = genesyscloud_oauth_client.hem_Client2.client_id
clientSecret = genesyscloud_oauth_client.hem_Client2.client_secret
}
}
------------------------------
Hemanth Dogiparthi
Manager, Software Engineering
------------------------------
Original Message:
Sent: 01-27-2026 14:28
From: Jesus Garces
Subject: How to configure credentials of a integration using terraform or API
I need to configure the credentials (client_id and client_secret) for an integration that has already been created in Genesys Cloud. I plan to automate this, so I need to use a tool such as Terraform or an API call.
#CXasCode
#Integrations
------------------------------
Jesus Garces
NA
------------------------------