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

# Get a custom domain's setup

> The custom domain's status, its two DNS records and, while the routing record is wrong, what is wrong.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/portals/{portal_id}/domains/{hostname}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/portals/{portal_id}/domains/{hostname}:
    get:
      tags:
        - portals
      summary: Get a custom domain's setup
      description: >-
        The custom domain's status, its two DNS records and, while the routing
        record is wrong, what is wrong.
      operationId: portals_get_custom_domain
      parameters:
        - description: >-
            The portal's id, as GET /v1/portals (or the portal_list MCP tool)
            returns it
          in: path
          name: portal_id
          required: true
          schema:
            format: uuid
            type: string
        - description: The full hostname, such as help.acme.com or acme-x1y2.statisfy.app
          in: path
          name: hostname
          required: true
          schema:
            maxLength: 253
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDomain'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    CustomDomain:
      properties:
        hostname:
          description: The full hostname, such as help.acme.com or acme-x1y2.statisfy.app
          title: Hostname
          type: string
        proof_record:
          $ref: '#/components/schemas/PortalDnsRecord'
          description: >-
            Add this record at your DNS provider first: it proves the domain is
            yours
        routing_record:
          $ref: '#/components/schemas/PortalDnsRecord'
          description: 'Then this one: it sends the domain''s visitors to the portal'
        routing_warning:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            What is wrong with the routing record, while it is wrong. Null when
            it is right
          title: Routing Warning
        status:
          description: >-
            pending_verification, provisioning_certificate, active, failed or
            disabled
          title: Status
          type: string
        step:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Verify only: records_not_found, issuing, active or failed'
          title: Step
      required:
        - hostname
        - status
        - proof_record
        - routing_record
      title: CustomDomain
      type: object
    PortalDnsRecord:
      properties:
        name:
          title: Name
          type: string
        type:
          default: CNAME
          title: Type
          type: string
        value:
          title: Value
          type: string
      required:
        - name
        - value
      title: PortalDnsRecord
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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