Messaging Integration - Terraform Apply Fails

genesys-cloud-sdk is throwing a 409 Conflict during terraform apply when creating a new genesys_cloud_messaging_integration resource. It looks like the validation is failing right after the resource is created - webhook_validation_status stays stuck on PENDING. We’re on API v2 and using provider v3.8.0.

resource "genesys_cloud_messaging_integration" "example" {
 name = "My Messaging Integration"
 type = "SMS"
 webhook_url = "https://example.com/webhook"
}

genesys_cloud_messaging_integration validation hangs - seen it. REST Proxy bypass.

{
 "action": "REST",
 "url": "/api/v2/messaging/integrations/{{integrationId}}/webhooks",
 "method": "POST",
 "body": {
 "validationUrl": "{{validationUrl}}"
 }
}

Hit that endpoint directly after terraform apply - substitute {{integrationId}} and {{validationUrl}} from the plan output. Validation usually clears in under 30 seconds. Not 100% sure but skipping the SDK seems to unstick it.

1 Like
{
 "action": "REST",
 "url": "/api/v2/messaging/integrations/{{integrationId}}/webhooks",
 "method": "POST",
 "body": {
 "validationUrl": "{{validationUrl}}"
 }
}

The earlier reply is correct - the REST Proxy bypass works. We had the same issue. Terraform apply creates the resource, but the validation gets stuck. I’ve tested hitting that endpoint directly with Postman after terraform apply - it’s necessary to manually trigger the webhook validation. sorry for the newbie question, but it’s not clear from the docs why the provider doesn’t do this automatically.

fwiw, the {{integrationId}} and {{validationUrl}} values are in the Terraform plan output. You can copy them from there. Also, it seems the validation takes a few minutes to finish after the POST request. It’s not instant. The status will go to ‘SUCCESS’ in the Admin UI.