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

# ListCustomDomainsAPI lists the caller org's custom page domains with live


> lifecycle status. Mirrors erdo\_list\_custom\_domains.




## OpenAPI

````yaml /api/openapi.json get /v1/custom-domains
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-28'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/custom-domains:
    get:
      summary: >
        ListCustomDomainsAPI lists the caller org's custom page domains with
        live
      description: |
        lifecycle status. Mirrors erdo\_list\_custom\_domains.
      operationId: GET:mcp.ListCustomDomainsAPI
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  domains:
                    items:
                      $ref: '#/components/schemas/mcp.CustomDomainInfo'
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    mcp.CustomDomainInfo:
      properties:
        created_at:
          title: |
            CreatedAt is when the domain was registered (RFC 3339).
          type: string
        dns_records:
          description: >
            provider — shown until (and after) the domain validates, so a stuck
            domain can be re-checked against what should exist.
          items:
            $ref: '#/components/schemas/mcp.CustomDomainDNSRecord'
          title: |
            DNSRecords is the set of records the customer must have at their DNS
          type: array
        domain:
          description: >
            "pages.acme.com". It is the identifier every other custom-domain
            endpoint takes.
          title: >
            Domain is the customer hostname, normalized (lowercase, punycode) —
            e.g.
          type: string
        error_reason:
          description: >
            disabled (e.g. a CAA record blocking certificate issuance); empty
            otherwise.
          title: |
            ErrorReason is the human-readable reason when status is failed or
          type: string
        last_checked_at:
          description: |
            (RFC 3339); empty if never checked yet.
          title: |
            LastCheckedAt is when the status was last reconciled against the CDN
          type: string
        status:
          description: >
            customer's DNS records), "pending\_cert" (ownership verified,
            certificate issuing), "active" (serving), "failed" (validation or
            issuance error — see error\_reason), or "disabled" (deregistered
            upstream). This is read from the same record the serving path
            consults, kept reconciled against the CDN by a monitoring job.
          title: >
            Status is the domain's lifecycle state: "pending_dns" (waiting for
            the
          type: string
        updated_at:
          title: |
            UpdatedAt is when the registration last changed (RFC 3339).
          type: string
      title: |
        CustomDomainInfo is one custom domain registration as seen from /v1.
      type: object
    mcp.CustomDomainDNSRecord:
      description: >
        DNS provider for a domain to validate and serve. Fields are spelled out
        (never embedded) so the OpenAPI spec carries them.
      properties:
        name:
          description: |
            "\_acme-challenge.pages.acme.com").
          title: |
            Name is the fully-qualified record name (e.g. "pages.acme.com" or
          type: string
        type:
          title: |
            Type is the record type to create: "CNAME" or "TXT".
          type: string
        value:
          title: |
            Value is the record's target/content.
          type: string
      title: >
        CustomDomainDNSRecord is one DNS record the customer must create at
        their
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````