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

# Get Domain

> Status and DNS records of one domain

Guide: [Senders and domains](https://docs.minimo.it/embedded/senders-and-sending.md). Errors: [Errors and limits](https://docs.minimo.it/embedded/errors.md).


## OpenAPI

````yaml get /public/v1/domains/{id}
openapi: 3.1.0
info:
  title: API Documentation
  description: Documentation for transactional and subscribe APIs
  version: 1.0.0
servers:
  - url: https://app.minimo.it
security:
  - bearerAuth: []
paths:
  /public/v1/domains/{id}:
    servers:
      - url: https://api.minimo.it
    get:
      summary: Get domain
      description: Status and DNS records of one domain, from the last check.
      operationId: getDomain
      parameters:
        - name: id
          in: path
          required: true
          description: The domain `id` from List Domains or Add Domain.
          schema:
            type: integer
            example: 812
      responses:
        '200':
          description: The domain
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Domain'
              example:
                data:
                  id: 812
                  domain: pizzeria-mario.example
                  role: transactional
                  status: pending
                  readyToSend: false
                  sesStatus: pending
                  lastCheckedAt: null
                  records:
                    - type: TXT
                      host: pizzeria-mario.example
                      value: mn-…
                      status: missing
                    - type: CNAME
                      host: abc123._domainkey.pizzeria-mario.example
                      value: abc123.dkim.amazonses.com
                      status: missing
                    - type: TXT
                      host: _dmarc.pizzeria-mario.example
                      value: v=DMARC1; p=none;
                      status: missing
                    - type: MX
                      host: bounce.pizzeria-mario.example
                      value: feedback-smtp.eu-central-1.amazonses.com
                      priority: 10
                      status: missing
        '401':
          description: >-
            `INVALID_TOKEN`: missing or wrong key, or a key without the
            **Domains** permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No such domain in your workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
      x-codeSamples:
        - label: cURL
          lang: bash
          source: |-
            curl --request GET \
              --url 'https://api.minimo.it/public/v1/domains/812' \
              --header 'Authorization: Bearer YOUR_MINIMO_KEY'
        - lang: JavaScript
          source: >-
            const res = await
            fetch('https://api.minimo.it/public/v1/domains/812', {
              method: 'GET',
              headers: {
                Authorization: 'Bearer YOUR_MINIMO_KEY',
              },
            });

            const { data } = await res.json();

            console.log(data);
        - lang: Python
          source: |-
            import requests

            res = requests.get(
                'https://api.minimo.it/public/v1/domains/812',
                headers={'Authorization': 'Bearer YOUR_MINIMO_KEY'},
            )
            print(res.status_code, res.text)
components:
  schemas:
    Domain:
      type: object
      properties:
        id:
          type: integer
          example: 812
        domain:
          type: string
          example: pizzeria-mario.example
        role:
          type: string
          enum:
            - transactional
            - marketing
          description: >-
            `transactional`: the main domain (default sender `info@`).
            `marketing`: a subdomain for campaigns such as `news.` (default
            sender `hello@`).
        status:
          type: string
          enum:
            - verified
            - pending
            - failed
          description: >-
            `verified`: the domain can send. `pending`: waiting for the DNS
            records. `failed`: the records were missing for about 72 hours: fix
            them and call Verify Domain again.
        readyToSend:
          type: boolean
          description: '`true` when emails can go out from this domain now.'
        sesStatus:
          type: string
          nullable: true
          description: Raw status from the email provider, for debugging.
          example: pending
        lastCheckedAt:
          type: string
          nullable: true
          format: date-time
          description: Last check.
        records:
          type: array
          items:
            $ref: '#/components/schemas/DnsRecord'
          description: The DNS records to publish.
      required:
        - id
        - domain
        - role
        - status
        - readyToSend
        - sesStatus
        - lastCheckedAt
        - records
    ApiError:
      type: object
      properties:
        status:
          type: string
          example: FAIL
        message:
          type: string
          description: The error code to test in your code.
          example: INVALID_PARAMETERS
        userMessage:
          type: string
          description: >-
            When present, a sentence that says what to fix. You can show or log
            it.
          example: Set the origins allowed to embed the widgets first.
      description: >-
        Every error has this shape. See [Errors and limits](/embedded/errors)
        for every code.
    DnsRecord:
      type: object
      properties:
        type:
          type: string
          enum:
            - TXT
            - CNAME
            - MX
        host:
          type: string
          example: abc123._domainkey.pizzeria-mario.example
        value:
          type: string
          example: abc123.dkim.amazonses.com
        priority:
          type: integer
          description: MX only.
          example: 10
        status:
          type: string
          enum:
            - verified
            - missing
            - unknown
          description: >-
            `verified`: found with the right value. `missing`: not found or a
            different value. `unknown`: not checked yet.
      required:
        - type
        - host
        - value
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: mn-API_CLIENT_ID-API_KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.