---
schema_version: "1"
id: 672cf6a9e2ad719b80dd32f2e35af1d38f597d5ed27c288490e8c8e7d037e4ed
title: DomainSite
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_domainsite.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_domainsite.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 11aacf673b12ed7b53126242f2804c9d6ec0f8571b8c20ddb2c8a670e7c93968
description: Read-only junction object that joins the Site and Domain objects. This object is available in API version 26.0 and later.
---
# DomainSite

Read-only junction object that joins the Site and Domain objects. This object is available in API version 26.0 and later.

To access this object, Salesforce Sites, Digital Experiences, or Site.com must be enabled. DomainSite contains records for domains that serve your Experience Cloud sites only when enhanced domains are deployed. The system-managed site hostnames for those Experience Cloud sites end in .my.site.com. This object doesn’t contain records for legacy domains that serve Experience Cloud sites with hostnames that end in .force.com.

## Supported Calls

describeSObjects(), query(), retrieve()

## Special Access Rules

- Customer Portal users can’t access this object.
- To view this object, you must have either the View Setup and Configuration or Manage Custom Domains permission.
- Site.com Publisher users have read-only API access to the [Domain](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_domain.htm "Read-only object that represents a custom Web address assigned to a site in your organization. This object is available in API version 26.0 and later.") and DomainSite objects.

## Fields

| Field | Description |
| --- | --- |
| DomainId | 
Type

reference

Properties

Filter, Group, Sort

Description

The ID of the associated Domain.

This is a relationship field.

Relationship Name

Domain

Relationship Type

Lookup

Refers To

Domain



 |
| PathPrefix | 

Type

string

Properties

Filter, Group, Sort

Description

Shows where a site’s root exists on a domain. Can only be set for custom Web addresses. Always begins with a /.



 |
| SiteId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the associated Site.

This is a relationship field.

Relationship Name

Site

Relationship Type

Lookup

Refers To

Site



 |

## Usage

Use this read-only object to query or retrieve information about your sites.