> ## 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.

# Obter domínio

> Retorna detalhes de domínio voltados ao cliente.

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


## OpenAPI

````yaml /openapi.pt-br.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: Obter domínio
      description: Retorna detalhes de domínio voltados ao cliente.
      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: Erro de validação
      security:
        - PublicBearerAuth: []
components:
  schemas:
    DomainDetailResponse:
      properties:
        auto_renew:
          default: false
          description: Se a renovação automática do domínio está habilitada
          title: automático Renew
          type: boolean
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Carimbo de data e hora de criação de domínio
          title: Criado em
        dedicated_ip_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Atribuído IP UUID dedicado, se houver
          title: Id do IP dedicado
        dns_records:
          description: Registros DNS para o domínio
          items:
            $ref: '#/components/schemas/DomainDnsRecordResponse'
          title: Registros DNS
          type: array
        id:
          description: Domínio UUID
          format: uuid
          title: ID
          type: string
        inbound_tenant_external_id:
          anyOf:
            - type: string
            - type: 'null'
          description: ID externo do provedor para o locatário de entrada
          title: Inbound Tenant External ID
        inbound_tenant_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Locatário de entrada UUID, se atribuído
          title: Inbound Tenant ID
        inbound_tenant_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Nome de exibição do locatário de entrada, se atribuído
          title: Inbound Tenant nome
        inbound_tenant_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Tipo de locatário de entrada, se atribuído
          title: Inbound Tenant tipo
        mailboxes:
          description: Caixas de correio no domínio
          items:
            $ref: '#/components/schemas/DomainMailboxSummary'
          title: Caixas de correio
          type: array
        name:
          description: Nome de domínio
          title: Nome
          type: string
        outbound_routing_ready:
          description: Se o roteamento de saída está pronto
          title: Roteamento de saída pronto
          type: boolean
        redirect_mode:
          anyOf:
            - enum:
                - '301'
                - '302'
                - iframe
              type: string
            - type: 'null'
          description: Modo de redirecionamento configurado, se houver
          title: Redirect modo
        redirect_url:
          anyOf:
            - type: string
            - type: 'null'
          description: URL de redirecionamento configurado, se houver
          title: Redirect URL
        status:
          description: Status do ciclo de vida do domínio
          title: Status
          type: string
        tags:
          description: Tags anexadas ao domínio
          items:
            $ref: '#/components/schemas/DomainTagResponse'
          title: Etiquetas
          type: array
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Data e hora da última atualização do domínio
          title: Atualizado em
        workspace_id:
          description: Espaço de trabalho UUID que contém o domínio
          format: uuid
          title: Id do workspace
          type: string
      required:
        - id
        - name
        - status
        - workspace_id
        - outbound_routing_ready
      title: DomainDetailResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detalhe
          type: array
      title: HTTPValidationError
      type: object
    DomainDnsRecordResponse:
      description: Registro DNS incorporado aos detalhes do domínio.
      properties:
        id:
          description: Identificador de registro DNS
          title: ID
          type: integer
        is_system_managed:
          default: false
          description: Se o registro é gerenciado por HybridBox
          title: É gerenciado pelo sistema
          type: boolean
        name:
          description: Nome do registro DNS
          title: Nome
          type: string
        priority:
          anyOf:
            - type: integer
            - type: 'null'
          description: Prioridade de registro DNS quando aplicável
          title: Prioridade
        ttl:
          description: Registro DNS TTL em segundos
          title: TTL
          type: integer
        type:
          description: Tipo de registro DNS
          title: Tipo
          type: string
        value:
          description: Valor do registro DNS
          title: Valor
          type: string
      required:
        - id
        - type
        - name
        - value
        - ttl
      title: DomainDnsRecordResponse
      type: object
    DomainMailboxSummary:
      description: Resumo da caixa de correio incorporado aos detalhes do domínio.
      properties:
        active:
          description: Se a caixa de correio está ativa
          title: Ativo
          type: boolean
        email:
          description: Endereço de e-mail da caixa de correio principal
          title: E-mail
          type: string
        first_name:
          description: Nome do usuário da caixa de correio
          title: Nome
          type: string
        id:
          description: Caixa postal UUID
          format: uuid
          title: ID
          type: string
        last_name:
          description: Sobrenome do usuário da caixa de correio
          title: Sobrenome
          type: string
      required:
        - id
        - email
        - first_name
        - last_name
        - active
      title: DomainMailboxSummary
      type: object
    DomainTagResponse:
      description: Tag anexada a um domínio.
      properties:
        id:
          description: Etiqueta UUID
          format: uuid
          title: ID
          type: string
        name:
          description: Nome de exibição da etiqueta
          title: Nome
          type: string
      required:
        - id
        - name
      title: DomainTagResponse
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Localização
          type: array
        msg:
          title: Mensagem
          type: string
        type:
          title: Tipo de erro
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      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

````