> This page is for API Reference.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://contentful.com/developers/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://contentful.com/developers/docs/_mcp/server.

# Get a published Destination by ID

GET https://xdn.contentful.com/spaces/{spaceId}/destinations/{destinationId}

This route is declared by the service contract but is currently unimplemented. Use [Get the sitemap for a published Destination](/developers/docs/references/experience-delivery-api/destinations-delivery/get-destination-sitemap) to retrieve the published sitemap.

Reference: https://contentful.com/developers/docs/references/experience-delivery-api/destinations-delivery/get-published-destination

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `spaceId` (string, required) — ID of the space.
- `destinationId` (string, required) — ID of the published Destination.

### Query parameters

- `limit` (integer, optional) — Maximum number of paths to return. Defaults to `100`, maximum `1000`.
- `pageNext` (string, optional) — Cursor returned as `paths.pages.next` by a previous request. Treat the value as opaque and do not combine it with `pagePrev`.
- `pagePrev` (string, optional) — Cursor returned as `paths.pages.prev` by a previous request. Treat the value as opaque and do not combine it with `pageNext`.

## Response

### 200

OK - Request successful

- `property` (DestinationSitemapProperty, required) — The Destination the sitemap belongs to.
- `paths` (DestinationSitemapPaths, required) — Flattened, paginated list of every routable path in the Destination.

## Errors

### 400 Bad Request Error

Bad Request - The request could not be parsed

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

### 401 Unauthorized Error

Unauthorized - Authentication is missing or invalid

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

### 403 Forbidden Error

Forbidden - The token cannot access this resource

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

### 404 Not Found Error

Not Found - The Destination, path, or Destination Node could not be resolved

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

### 409 Conflict Error

Conflict - The request conflicts with the current resource state

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

### 422 Unprocessable Entity Error

Unprocessable Entity - The request failed validation

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

### 500 Internal Server Error

Internal Server Error - The request could not be completed

- `sys` (ErrorSys, required)
- `message` (string, optional)
- `requestId` (string, optional)
- `details` (any, optional) — Additional error-specific details.
- `i18nContext` (ErrorI18NContext, optional)

## Types

### DestinationSitemapProperty

The Destination the sitemap belongs to.

- `sys` (DestinationSitemapPropertySys, required)

### DestinationSitemapPaths

Flattened, paginated list of every routable path in the Destination.

- `sys` (DestinationSitemapPathsSys, required)
- `limit` (integer, required)
- `items` (list of SitemapPath, required)
- `pages` (DestinationSitemapPathsPages, required) — Cursor tokens for paging. Treat the values as opaque.

### ErrorSys

- `id` (string, required) — Machine-readable error identifier.
- `type` (enum, required)
  - Allowed values: `Error`

### ErrorI18NContext

- `code` (string, required)
- `pluralCount` (double, optional)
- `parameters` (map from string to any, optional)

### DestinationSitemapPropertySys

- `type` (enum, required)
  - Allowed values: `Destination`

### DestinationSitemapPathsSys

- `type` (enum, required)
  - Allowed values: `Array`

### SitemapPath

One routable path in the published Destination.

- `sys` (SitemapPathSys, required)
- `path` (string, required) — Path this entry routes.
- `experienceUrn` (string, required) — Contentful Resource Name of the experience served at this path.

### DestinationSitemapPathsPages

Cursor tokens for paging. Treat the values as opaque.

- `next` (string, optional)
- `prev` (string, optional)

### SitemapPathSys

- `type` (string, required) — Type of the Destination Node that claims this path.

## Examples

**Response**

```json
{
  "property": {
    "sys": {
      "type": "Destination"
    }
  },
  "paths": {
    "sys": {
      "type": "Array"
    },
    "limit": 1,
    "items": [
      {
        "sys": {
          "type": "DestinationExperienceNode"
        },
        "path": "/products",
        "experienceUrn": "crn:contentful:::experience:spaces/$self/environments/$self/experiences/homepage"
      }
    ],
    "pages": {
      "next": "string",
      "prev": "string"
    }
  }
}
```