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

# Get domains 1



## OpenAPI

````yaml /api/openapi.json get /domains/{domain}
openapi: 3.1.2
info:
  title: API KENN HOSTING
  version: 1.0.0
  description: >-
    API REST de KENN HOSTING : gérez vos VPS, hébergements, domaines,
    applications, commandes et tickets. Authentification par clé API (en-tête
    `Authorization: Bearer kh_live_...`). Les opérations qui débitent votre
    solde exigent un en-tête `Idempotency-Key`.
servers:
  - url: https://kennhosting.com/api/v1
    description: Production
security:
  - cleApi: []
paths:
  /domains/{domain}:
    get:
      tags:
        - Domains
      operationId: v1.domains.show
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      domain:
                        type:
                          - string
                          - 'null'
                      service_id:
                        type:
                          - string
                          - 'null'
                      status:
                        type: string
                        enum:
                          - pending
                          - active
                          - suspended
                          - cancelled
                      expires_at:
                        type:
                          - string
                          - 'null'
                      registrar:
                        type:
                          - object
                          - 'null'
                        properties:
                          locked:
                            type: boolean
                          auto_renew:
                            type: boolean
                          privacy:
                            type: boolean
                          nameservers:
                            type: array
                            items: {}
                          expires:
                            type:
                              - string
                              - 'null'
                        required:
                          - locked
                          - auto_renew
                          - privacy
                          - nameservers
                          - expires
                      dns_zone:
                        type: string
                        enum:
                          - hosting
                          - registrar
                      transfer:
                        type:
                          - object
                          - 'null'
                        properties:
                          success:
                            type: boolean
                          date:
                            type: string
                          status:
                            type: string
                          message:
                            type: string
                          error:
                            type: string
                        required:
                          - success
                    required:
                      - domain
                      - service_id
                      - status
                      - expires_at
                      - registrar
                      - dns_zone
                      - transfer
                  meta:
                    type: string
                required:
                  - success
                  - data
                  - meta
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error overview.
                required:
                  - message
components:
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  securitySchemes:
    cleApi:
      type: http
      description: Clé API créée dans votre espace client (kh_live_... ou kh_test_...).
      scheme: bearer

````

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