Is a M2M creation api available?

We are looking at a scenario to create M2M account on the fly but I am unable to find an API’s to deal with the creation. If no API then is there an automated alternative?

You can create an M2M app/client with the management API:

If this is not the exact answer you were looking for, it is still likely that you will find what you need in the management API.

Let me know if you cannot find what you need there.