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

# Retrieve domain



## OpenAPI

````yaml /openapi.json get /domains/{id}
openapi: 3.1.0
info:
  title: Runnage API
  description: Developer-first email and SMS API for African startups and teams.
  license:
    name: MIT
    identifier: MIT
  version: 0.1.0
servers:
  - url: https://api.runnage.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Emails
    description: Queue, list, and retrieve email messages.
  - name: SMS
    description: Queue, list, and retrieve SMS messages.
  - name: Domains
    description: Manage sending domains and DNS verification records.
  - name: Sender IDs
    description: Manage SMS sender IDs for country-specific sending.
paths:
  /domains/{id}:
    get:
      tags:
        - Domains
      summary: Retrieve domain
      operationId: getDomainsId
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainEnvelope'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    DomainEnvelope:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/Domain'
    Error:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
        message:
          type: string
      additionalProperties: true
    Domain:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
            - pending
            - verified
            - failed
            - disabled
        records:
          type: array
          items:
            $ref: '#/components/schemas/DNSRecord'
        verified_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    DNSRecord:
      type: object
      properties:
        id:
          type: string
          format: uuid
        record:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - TXT
            - CNAME
            - MX
        value:
          type: string
        priority:
          type: integer
        ttl:
          type: string
        status:
          type: string
          enum:
            - pending
            - verified
            - failed
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Runnage team access token

````