Yes, you can manage funnels via the Matomo HTTP Reporting API.

Previous FAQ: What does it mean when a step was backfilled?