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

# Get Domain

> Get a single domain owned by the authenticated user, including its DNS records.



## OpenAPI

````yaml get /domains/{domain}
openapi: 3.1.0
info:
  title: APIFiddle Sample Definition
  version: 0.0.0
  description: Example workspace
servers:
  - url: https://rdp.sh/api/v1
    description: Default production endpoint.
security: []
paths:
  /domains/{domain}:
    get:
      summary: Get domain
      description: >-
        Get a single domain owned by the authenticated user, including its DNS
        records.
      operationId: getDomain
      parameters:
        - $ref: '#/components/parameters/domain'
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/domain'
                  - type: object
                    properties:
                      dns_records:
                        type: array
                        items:
                          $ref: '#/components/schemas/dnsRecord'
          description: Domain details including its DNS records.
        '403':
          description: User does not own the domain.
        '404':
          description: Domain not found.
      security:
        - Authorization: []
components:
  parameters:
    domain:
      in: path
      name: domain
      schema:
        type: integer
      required: true
      description: Domain ID
  schemas:
    domain:
      type: object
      required: []
      properties:
        id:
          type: integer
          examples:
            - 1
        domain_name:
          type: string
          examples:
            - example.com
        status:
          type: string
          description: Domain lifecycle status.
          examples:
            - active
            - suspended
            - transferring
            - expired
        provider:
          type: string
          description: Registrar backing the domain.
          examples:
            - internetbs
            - netim
        auto_renew:
          type: boolean
        whois_privacy:
          type: boolean
        lock_status:
          type: boolean
          description: Whether the registrar transfer lock is enabled.
        use_rdp_nameservers:
          type: boolean
          description: Whether the domain uses RDP.sh-managed nameservers.
        nameservers:
          type: array
          items:
            type: string
          examples:
            - ns1.rdp.sh
            - ns2.rdp.rs
        registration_date:
          type: string
          nullable: true
          examples:
            - '2025-01-01T00:00:00.000000Z'
        expiry_date:
          type: string
          nullable: true
          examples:
            - '2027-01-01T00:00:00.000000Z'
        days_until_expiry:
          type: integer
          nullable: true
          examples:
            - 180
        is_expiring_soon:
          type: boolean
          description: True when the domain expires within 30 days.
        dns_records_count:
          type: integer
          examples:
            - 2
        created_at:
          type: string
          examples:
            - '2025-01-01T00:00:00.000000Z'
      description: Domain object.
    dnsRecord:
      type: object
      required: []
      properties:
        id:
          type: integer
          examples:
            - 42
        type:
          type: string
          enum:
            - A
            - AAAA
            - CNAME
            - MX
            - TXT
            - NS
            - SRV
            - CAA
          examples:
            - A
        name:
          type: string
          description: Record name. Use `@` for the apex/root.
          examples:
            - '@'
            - www
        value:
          type: string
          examples:
            - 185.241.208.160
        ttl:
          type: integer
          examples:
            - 3600
        priority:
          type: integer
          nullable: true
          description: Priority, used by MX and SRV records.
          examples:
            - 10
        created_at:
          type: string
          examples:
            - '2025-01-01T00:00:00.000000Z'
      description: DNS record object.
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey

````