What is the correct way to... ensure recording metadata integrity in Predictive Routing exports?

What is the standard approach to guarantee that the recordingId in the bulk export JSON matches the actual media file when using Predictive Routing with digital channels?

We are processing legal discovery requests for chat and voice interactions. The bulk export job completes with status SUCCEEDED, but the chain of custody audit reveals a mismatch. The metadata timestamp in the export payload is UTC, but the S3 object key includes a timezone offset that does not align with the London timezone (Europe/London). This causes issues when correlating the transcript with the voice recording for compliance.

The configuration for the export job is below:

export_job:
 source: digital_channels
 format: json
 destination:
 type: s3
 bucket: legal-hold-eu-west-2
 region: eu-west-2
 filters:
 date_range:
 start: "2023-10-01T00:00:00Z"
 end: "2023-10-31T23:59:59Z"
 include_metadata: true

The API response from /api/v2/recordings/exports shows the job finished, but the recordingStatus for some items is ERROR with code 1004. Is there a specific header or setting required to force UTC alignment in the generated object keys? The current behavior breaks our automated ingestion pipeline.

The documentation actually says…

Verify the recordingId against the media URI in the Analytics API response before trusting the bulk export payload. The mismatch usually stems from using the legacy export format which embeds relative paths, whereas the modern JSON structure provides the absolute S3 key with the correct timezone normalization for legal audit trails.

To fix this easily, this is pinning the export schema. The legacy format causes those path mismatches. Use the analytics query builder in Terraform to enforce strict UTC normalization.

resource "genesyscloud_analytics_query" "legal_export" {
 name = "Audit Trail"
 query_type = "recordings"
 view {
 name = "utc_normalized"
 type = "summary"
 }
}