---
schema_version: "1"
id: 7c2b1db3549a56945dcbef9f304897d8e66e24740b55c05f8a0c3783397c0d38
title: Build the Resource URL
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/api_analytics/guides/intro/intro-build-reports-dashboards-url.md
canonical_url: https://developer.salesforce.com/docs/analytics/salesforce-analytics-rest-api/guide/intro-build-reports-dashboards-url.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7d62af1a413d8dbc200e6654b77c216695333b23359f4fb786e0ec99c4c03743
products:
  - Salesforce Reports and Dashboards REST API Developer Guide
  - analytics
---

# 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.

```nolang
https://MyDomainName.my.salesforce.com
```

Then add the version information:

```nolang
/services/data/v
```

Then add the resource:

```nolang
/analytics/reports
```

Put together, the full URL is:

```nolang
https://MyDomainName.my.salesforce.com/services/data/v66.0/analytics/reports
```

Some resources, such as `notifications`, often require one or more URL parameters without which API requests return an error:

```nolang
https://MyDomainName.my.salesforce.com/services/data/v66.0/analytics/notifications?source=lightningReportSubscribe
```

