Struggling to figure out why the recording export job is failing for our digital channel streams. The standard voice recordings export fine to the S3 bucket, but the digital channel data (WhatsApp, Web Chat) triggers a validation error on the metadata payload.
We are using the Recording API v3.5.2 in the London region. The chain of custody metadata is required for legal discovery, so we cannot skip the custom fields. The job status returns FAILED with the message: Invalid metadata structure for digital channel type.
Here is the JSON payload we are sending in the bulk export request body:
{
"export_job_id": "exp_job_998877",
"destination": {
"type": "S3",
"bucket": "legal-discovery-eu-west-2",
"prefix": "digital_channels/2023-10/"
},
"filters": {
"media_type": ["DIGITAL_CHANNEL"],
"start_time": "2023-10-01T00:00:00Z"
},
"metadata_inclusion": {
"chain_of_custody": true,
"custom_architect_variables": true,
"participant_ids": true
}
}
The S3 integration is verified and working. Is there a specific schema requirement for digital channel metadata that differs from voice? The documentation is vague on this point. Any insight on the correct structure would be appreciated.