Find the documentation in the Activities repo here: https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md