> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Получить домен

> Возвращает клиентские сведения о домене.

<script src="/locale-bridge.js" />


## OpenAPI

````yaml /openapi.ru.json GET /v1/public/accounts/{account_id}/domains/{domain}
openapi: 3.1.0
info:
  title: Code API (Public)
  version: 1.0.0
servers:
  - url: https://api.hybridbox.io
security: []
paths:
  /v1/public/accounts/{account_id}/domains/{domain}:
    get:
      tags:
        - public-accounts
        - public-domains
      summary: Получить домен
      description: Возвращает клиентские сведения о домене.
      operationId: get_public_domain_v1_public_accounts__account_id__domains__domain__get
      parameters:
        - in: path
          name: account_id
          required: true
          schema:
            format: uuid
            title: Account Id
            type: string
        - in: path
          name: domain
          required: true
          schema:
            title: Domain
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainDetailResponse'
          description: ''
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Ошибка валидации
      security:
        - PublicBearerAuth: []
components:
  schemas:
    DomainDetailResponse:
      properties:
        auto_renew:
          default: false
          description: Включено ли автоматическое продление домена
          title: Автопродление
          type: boolean
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Временная метка создания домена
          title: Создано в
        dedicated_ip_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Назначенный выделенный IP UUID, если таковой имеется.
          title: Id выделенного IP
        dns_records:
          description: DNS записи для домена
          items:
            $ref: '#/components/schemas/DomainDnsRecordResponse'
          title: DNS-записи
          type: array
        id:
          description: Домен UUID
          format: uuid
          title: ID
          type: string
        inbound_tenant_external_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Внешний идентификатор поставщика для входящего клиента
          title: Внешний ID входящего тенанта
        inbound_tenant_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Входящий клиент UUID, если назначен
          title: ID входящего тенанта
        inbound_tenant_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Отображаемое имя входящего клиента, если назначено
          title: Имя входящего тенанта
        inbound_tenant_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Тип входящего клиента, если назначен
          title: Тип входящего тенанта
        mailboxes:
          description: Почтовые ящики на домене
          items:
            $ref: '#/components/schemas/DomainMailboxSummary'
          title: Почтовые ящики
          type: array
        name:
          description: Доменное имя
          title: Имя
          type: string
        outbound_routing_ready:
          description: Готова ли исходящая маршрутизация
          title: Исходящая маршрутизация готова
          type: boolean
        redirect_mode:
          anyOf:
            - enum:
                - '301'
                - '302'
                - iframe
              type: string
            - type: 'null'
          description: Настроенный режим перенаправления, если есть
          title: Режим перенаправления
        redirect_url:
          anyOf:
            - type: string
            - type: 'null'
          description: Настроен URL-адрес перенаправления, если таковой имеется.
          title: URL перенаправления
        status:
          description: Статус жизненного цикла домена
          title: Статус
          type: string
        tags:
          description: Теги, прикрепленные к домену
          items:
            $ref: '#/components/schemas/DomainTagResponse'
          title: Теги
          type: array
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Временная метка последнего обновления домена
          title: Обновлено в
        workspace_id:
          description: Рабочая область UUID, содержащая домен.
          format: uuid
          title: Id рабочей области
          type: string
      required:
        - id
        - name
        - status
        - workspace_id
        - outbound_routing_ready
      title: DomainDetailResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Сведения
          type: array
      title: HTTPОшибка проверки
      type: object
    DomainDnsRecordResponse:
      description: DNS-запись, встроенная в сведения о домене.
      properties:
        id:
          description: Идентификатор записи DNS
          title: ID
          type: integer
        is_system_managed:
          default: false
          description: Управляется ли запись HybridBox
          title: Управляется системой
          type: boolean
        name:
          description: Имя записи DNS
          title: Имя
          type: string
        priority:
          anyOf:
            - type: integer
            - type: 'null'
          description: Приоритет записи DNS, если применимо
          title: Приоритет
        ttl:
          description: DNS запись TTL в секундах
          title: TTL
          type: integer
        type:
          description: Тип записи DNS
          title: Тип
          type: string
        value:
          description: Значение записи DNS
          title: Значение
          type: string
      required:
        - id
        - type
        - name
        - value
        - ttl
      title: DomainDnsRecordResponse
      type: object
    DomainMailboxSummary:
      description: Сводка почтового ящика, встроенная в сведения о домене.
      properties:
        active:
          description: Активен ли почтовый ящик
          title: Активен
          type: boolean
        email:
          description: Адрес электронной почты основного почтового ящика
          title: Электронная почта
          type: string
        first_name:
          description: Имя пользователя почтового ящика
          title: Имя
          type: string
        id:
          description: Почтовый ящик UUID
          format: uuid
          title: ID
          type: string
        last_name:
          description: Фамилия пользователя почтового ящика
          title: Фамилия
          type: string
      required:
        - id
        - email
        - first_name
        - last_name
        - active
      title: DomainMailboxSummary
      type: object
    DomainTagResponse:
      description: Тег, прикрепленный к домену.
      properties:
        id:
          description: Тег UUID
          format: uuid
          title: ID
          type: string
        name:
          description: Отображаемое имя тега
          title: Имя
          type: string
      required:
        - id
        - name
      title: DomainTagResponse
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Расположение
          type: array
        msg:
          title: Сообщение
          type: string
        type:
          title: Тип ошибки
          type: string
      required:
        - loc
        - msg
        - type
      title: Ошибка проверки
      type: object
  securitySchemes:
    PublicBearerAuth:
      bearerFormat: JWT or Hybridbox Service account token
      description: >-
        Public API bearer credential sent as `Authorization: Bearer <token>`.
        Use either an OAuth access token or a Hybridbox Service account token.
      scheme: bearer
      type: http

````