---
title: "Get a custom domain."
method: GET
path: "/v1/domains/{id}"
tags: ["Domains"]
---

# Get a custom domain.

`GET /v1/domains/{id}`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/domains/{id}`
- Auth: HTTP bearer

Returns a single custom domain by id, scoped to the caller's project.

## Path parameters

- `id` string, required

## Response `200`

The domain

- DomainJson: A custom domain attached to a project, with verification + SSL state.
  - `id` string, required
  - `project_id` string, required
  - `domain` string, required
  - `domain_type` string, required
  - `status` string, required
  - `verification_token` string, required
  - `ssl_status` string, required
  - `ssl_expires_at` string, required
  - `ssl_issued_at` string, required
  - `ssl_error` string, nullable: Last cert-issuance failure reason (absent = none). Lets the console show "DNS doesn't point to our edge" instead of a silent stuck 'none'/'failed'.
  - `primary_domain` boolean, required
  - `created_at` string, required
  - `updated_at` string, required
  - `cname_target` string, nullable
  - `run_service` string, nullable: Run service this domain serves (absent = the project's API surface).
  - `storage_bucket` string, nullable
  - `function_name` string, nullable: Function this domain serves (absent = not a function target).
  - `edge_ip` string, nullable: Gateway IP for apex A-record setup (absent if not configured).

## Other responses

- `401`: Missing or invalid credentials
- `404`: Domain not found
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
