---
title: "Get domain"
method: GET
path: "/api/domains/{id}"
tags: ["Domains"]
---

# Get domain

`GET /api/domains/{id}`

Get domain details by ID, by calling this API, the domain status will be synced from remote provider.

## Path parameters

- `id` string, required

## Response `200`

Details of the domain.

- object
  - `id` string, required
  - `domain` string, required
  - `status` 'PendingVerification' | 'PendingSsl' | 'Active' | 'Error', required
  - `errorMessage` string, nullable, required
  - `dnsRecords` object[], required
    - `name` string, required
    - `type` string, required
    - `value` string, required
  - `createdAt` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The domain with the specified ID was not found.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
