---
title: "List all custom domains for a project"
method: GET
path: "/projects/{project_id}/custom-domains"
tags: ["Custom Domains"]
---

# List all custom domains for a project

`GET /projects/{project_id}/custom-domains`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/custom-domains`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Response `200`

Custom domains retrieved successfully

- ListCustomDomainsResponse
  - `domains` CustomDomainResponse[], required
    - `branch` string, nullable
    - `created_at` string, date-time, required
    - `domain` string, required
    - `domain_id` integer, nullable
    - `environment` DomainEnvironmentResponse, nullable
      - `id` integer, required
      - `name` string, required
      - `slug` string, required
    - `expiration_time` string, date-time, nullable
    - `id` integer, required
    - `last_renewed` string, date-time, nullable
    - `message` string, nullable
    - `project_id` integer, required
    - `redirect_to` string, nullable
    - `service_name` string, nullable: Docker Compose service name this domain routes to
    - `status` string, required
    - `status_code` integer, nullable
    - `updated_at` string, date-time, required
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 4 breaking
  - the `domains/items/created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `domains/items/expiration_time` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `domains/items/last_renewed` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `domains/items/updated_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
- **2026-04-25** `774be20905f2`: 1 info
  - added the optional property `domains/items/service_name` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/custom-domains/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
