Importing existing OAuth clients to Terraform state fails with 404

Problem

Trying to import our legacy clients into the Terraform state. We’ve got about 50 of these scattered around from before we started using the SDK for everything. The plan is to run a bulk import so we can start managing them in code.

Here’s the resource block:

resource "genesyscloud_oauth_client" "legacy_client" {
 name = "Legacy Web App"
 description = "Old portal client"
 app_type = "confidential"
 redirect_uris = ["https://old-app.example.com/callback"]
}

Running the import command with the internal ID:

terraform import genesyscloud_oauth_client.legacy_client 8a312345-6789-4abc-def0-123456789abc

Error output:

╷
│ Error: Error retrieving client: 404 Not Found
│ 
│ with genesyscloud_oauth_client.legacy_client,
│ on main.tf line 1, in resource "genesyscloud_oauth_client" "legacy_client":
│ 1: resource "genesyscloud_oauth_client" "legacy_client" {
╵

The ID is definitely correct. Pulled it straight from the Python SDK response using genesyscloud.rest._client_api.get_oauth_client(client_id). The JSON payload from the API returns that exact UUID. Also checked the UI settings page. The ID matches. Terraform keeps throwing the 404.

Maybe the provider expects a different identifier? Some resources use the name for import, but the docs don’t mention anything about a special format. It’s throwing the 404 every time. Tried passing the client_id string instead of the internal UUID, same result.

Is there a special format for the import ID on clients? Or does the Python SDK return a different ID than what the Terraform provider needs?

The state file is completely empty right now.