Goals should work in a similar way to standard ones assuming that the goals mapping is done through the UI. You can get the UUID directly from the URL (the part right after /goals/) or via the “view api call definition” of a report showing goals data: