Unable to understand ExApp python API calls

I’m trying to develop an ExApp in Python, but the responses I get to my API calls have me confused. I haven’t been able to find an example app that does the same to help resolve the issues.

In short: I want my ExApp to receive events when files are uploaded to my Nextcloud instance.

    result = await nc.ocs(
        "POST",
        "/ocs/v1.php/apps/app_api/api/v1/events_listener",
        json={
            "eventType": "node_event",
            "actionHandler": "/handle_file_event",
            "eventSubtypes": \["NodeCreatedEvent"\],  # Only listen to file creation events
        },
    )

If I do the above I get an Error 996 back due to ‘Class “OCA\AppAPI\Controller\EventsListenerController” does not exist’

If I drop “/ocs/v1.php” from the URL I get a 404 Not Found instead.

The ExApp seems to initialize fine, I have working heartbeats etc and the nc.log call copied from the example apps work and I get the output in the logs.

I believe nc_py_api switched to only supporting using Nextcloud’s webhooks_listener:

app_api itself retains support for the Events Listener.

Thanks, I’ll try webhooks through the python lib as well - but I was expecting to be able to use app_api with the nc.ocs() method too?