I don't know there's anything specific to flexgroups. I know I looked at this a few weeks ago and they are just volumes. Each flexgroup volume has a set of constituent volumes and they all share a common UUID. There is an 'style-extended' field that's returned as part of the volume-id-attributes. I have not tried allocating flexgroup vols via the API (yet), that's next!
--rdp