I'm currently trying to hit our Insights Profile endpoint with Postman to retrieve a single profile but am only receiving a 403. In the Swagger documentation there is a Epi-User-Name header that is required which I can't see documented anywhere in the documentation on EPi world (https://world.episerver.com/documentation/developer-guides/profile-store/profile-store-api/profiles/querying-profiles/), not sure what actual username I should be using for this. I have used the CMS admin login but am having no luck.
Any help would be appreciated.
After debugging the reuqest sent from Episerver using Fiddler, it turns out there is an additional header required called Epi-User-Roles (this is documentated in Swagger but not as a required field). I've used the following value which was used, not sure how we were supposed to know to use this value: "ProfilesViewers|ProfilesCampaignViewers|ProfilesSegmentViewers|ProfilesProfileViewers|ProfilesReportViewers|ProfilesAdministrators"
You shouldn't use Insight API, you should instead use the Profile Store API.