---
title: "Get custom domain"
url: https://hexelstudio.com/docs/api/titan/management/get-custom-domain
---

# Get custom domain

**GET** `/titan/management/deployments/{id}/domains/{hostname}`

## Path parameters

- `id: string`

- `hostname: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

## Returns

`200` Organization-scoped result. (`CustomDomain`)

- `activated_at: optional string`

- `certificate_status: string`

- `created_at: string`

- `deployment_id: string`

- `dns_records: array of object`

  - `name: string`

  - `purpose: string`

  - `type: string`

  - `value: string`

- `enforcement_deployment_id: string`

- `hostname: string`

- `hostname_status: string`

- `messages: array of string`

- `state: string`

- `updated_at: string`

## Errors

- `400` Invalid request, path, query, or idempotency key; on create, PROFILE_NOT_AVAILABLE when the region, hosting mode and exposure match no approved profile.
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch or denied IAM action.
- `404` Unknown or foreign organization resource, or plan not yet prepared.
- `405` HTTP method is not supported on this route.
- `503` Local storage or preparation service unavailable.

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/titan/management/deployments/{id}/domains/{hostname}' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "activated_at": "2026-01-01T00:00:00Z",
  "certificate_status": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "deployment_id": "string",
  "dns_records": [
    {
      "name": "string",
      "purpose": "string",
      "type": "string",
      "value": "string"
    }
  ],
  "enforcement_deployment_id": "string",
  "hostname": "string",
  "hostname_status": "string",
  "messages": [
    "string"
  ],
  "state": "string",
  "updated_at": "2026-01-01T00:00:00Z"
}
```

### Response (400)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (401)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (405)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (503)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```
