How to hit the internal API to create a VM using packer

Hello Community members,
We have some APIs which is used to create a VM using OVF file. now we want to integrate these APIs into packer then we can use the Provisioners to installed software after VM creation.
can someone help or guild in this ?

Thank you :slight_smile: