get https://{hostname}/rest/api/consent/v4/datasubjects/ds-profiles
Use this API to retrieve a data subject’s purpose details for all purposes. The response will include all purposes that the data subject interacted with along with details such as status, last transaction date, consent date, and purpose preferences.