Create flow over API

It is absolutely possible to create flows but all flows must be valid with fe devices and a trigger. (In Homey fw 1.x it was not verified)
But I guess your authorization is the issue.
What did you use for authentication?
Have you tried the web playground on the developers page?
Maybe look into the community backup and restore i created.