OctoPrint rest call

I see there are api’s to receive the sensor states ( like print status etc.) but is it possible to call OctoPrint API to execute print ? do we have similar example?

If there is an API then you could use the command_line switch with curl or a REST switch.