WebRTC softphone config 403 via Terraform provider

How do I correctly to deploy WebRTC softphone settings using the Genesys Cloud Terraform provider?

Background

Migrating manual softphone configs to IaC. Provider 1.79.0. Region APAC Sydney. Terraform 1.6.5.

Issue

Applying genesyscloud_webrtc resource fails with 403 Forbidden. API logs show POST /api/v2/organization/settings/webrtc returning unauthorized. Role has webrtc:write permission.

Troubleshooting

  • Verified token scope in CLI. Works manually.
  • Checked genesyscloud_user permissions. Correct.
  • Retry logic in TF config. No change.

Snippet:

resource "genesyscloud_webrtc" "main" {
 enabled = true
}