We currently initiate calls from the javascript api, OR make dialer Preview calls.
Some of these calls are to clients that we are not allowed to record conversations for. However some are.
How do we selectively record calls? Enabling recordings is a global setting, and I know you can turn it off in a FLOW, but our calls are not going through flows.
Have you tried using quality recording retention policies to delete the recordings you must not retain? You can create a policy to purge all recordings from specific queues, for example. This is an option if your non-recordable calls can be placed from a queue created for those calls.
Recording policies are general PureCloud configuration, which is more appropriate for the PureCloud Community Forum. This forum is specific to API use and customizations.
The API can't override the recording policies you've configured. You'll need to configure the recording and retention policies according to your needs. If you have questions about configuring those policies, please post on the community forum. Additionally, you can request new features here: https://purecloud.ideas.aha.io/ideas.