Active pharmaceutical ingredients (APIs) and intermediates