Regarding API-based event-driven workflows, check this post:
If you are just getting started with Prefect, check this topic:
https://discourse.prefect.io/t/should-i-start-with-prefect-2-0-orion-skipping-prefect-1-0/544
You would need to install Prefect via pip, write Python code to create your flow, then register to schedule it.
I highly encourage you to try this Prefect 2.0 getting started guide:
https://orion-docs.prefect.io/getting-started/overview/