Agent scripting api 400 on flow reference

looking for advice on agent scripting deployment. using gc cli v2.0.4. terraform apply fails with 400 bad request on genesyscloud_flow_resource. error says flow_id ‘f-123’ is invalid. verified flow exists in architect. id matches. region is us-east-1. script definition json parses fine locally. any ideas why the api rejects the valid flow ref during provisioning?

I’d suggest checking out at the flow status in Architect; it must be published before the API accepts the reference during provisioning. See support article KB-9921 for details on deployment prerequisites.