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