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

# List Domains

> List all domains belonging to the authenticated user.



## OpenAPI

````yaml get /domains
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:
    get:
      summary: List domains
      description: List all domains belonging to the authenticated user.
      operationId: listDomains
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                title: ListDomainsOk
                items:
                  $ref: '#/components/schemas/domain'
          description: The authenticated user's domains.
      security:
        - Authorization: []
components:
  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.
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey

````