REST API for trial task