How to create secrets via the machine API?

unfortunately this isn’t possible at the moment, Machines API secrets endpoints are only for Fly KMS (not yet GA).