Build the Resource URL
Access all Reports and Dashboards REST API resources by using the URI for your Salesforce org, combined with version and Experience Cloud site information, and the URI for the resource.
When building a URL, start with your My Domain login URL. To get your My Domain name, use the getMyDomainName() Apex method. You can also find your full My Domain login URL on the My Domain page in Setup.
1https://MyDomainName---my.salesforce.com.rproxy.goskope.comThen add the version information:
1/services/data/vThen add the resource:
1/analytics/reportsPut together, the full URL is:
1https://MyDomainName.my.salesforce.com/services/data/v66.0/analytics/reportsSome resources, such as notifications, often require one or more URL parameters without which API requests return an error:
1https://MyDomainName.my.salesforce.com/services/data/v66.0/analytics/notifications?source=lightningReportSubscribe