---
title: "List deploy targets"
method: GET
path: "/projects/{projectId}/deploy-targets"
tags: ["Deploys"]
---

# List deploy targets

`GET /projects/{projectId}/deploy-targets`

## Request

- Base URL: `https://api.grapesjs.com/v1`
- URL: `https://api.grapesjs.com/v1/projects/{projectId}/deploy-targets`
- Auth: HTTP bearer

Lists the project's reusable deployment destinations. Each deploy target has an immutable subdomain and an optional primary custom domain.

## Query parameters

- `page` integer
- `pageSize` integer

## Response `200`

Deploy targets fetched successfully

- ListDeployTargetsResult
  - `items` DeployTarget[], required
    - `id` string, required: Deploy target ID.
    - `providerId` 'default', required: Deploy provider identifier. Omit this field to use the default provider.
    - `subdomain` string, required: Immutable subdomain for the deploy target.
    - `displayName` string, nullable, required: Optional human-readable target label.
    - `customDomain` string, nullable, required: Optional primary custom domain attached to the target.
    - `deployedUrl` string, nullable, required: Preferred deployed URL, using the custom domain when present.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `404`: Resource not found
- `500`: Server error

---

[API](https://skmtc.dev/grapesjs/apis/studio-platform-api.md) - [All operations](https://skmtc.dev/grapesjs/apis/studio-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grapesjs/apis/studio-platform-api/revisions/acc4ffe35e2d?raw)
