> ## 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.

# SetCustomDomainManagerDefaultAPI marks a registered domain as the one the


> caller's managed organizations serve their pages from — or clears it.

A separate endpoint rather than a field re-sent on registration because promoting a domain that is already live is the ordinary case: a manager registers the hostname, waits out DNS and the certificate, and only then points its clients at it. Folding this into registration would mean tearing down a working certificate to change one boolean.




## OpenAPI

````yaml /api/openapi.json patch /v1/custom-domains/{domain}/manager-default
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, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-09-09'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/custom-domains/{domain}/manager-default:
    patch:
      summary: >
        SetCustomDomainManagerDefaultAPI marks a registered domain as the one
        the
      description: >
        caller's managed organizations serve their pages from — or clears it.


        A separate endpoint rather than a field re-sent on registration because
        promoting a domain that is already live is the ordinary case: a manager
        registers the hostname, waits out DNS and the certificate, and only then
        points its clients at it. Folding this into registration would mean
        tearing down a working certificate to change one boolean.
      operationId: PATCH:mcp.SetCustomDomainManagerDefaultAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: domain
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                manager_default:
                  description: >
                    organizations serve their pages from; false clears it,
                    returning them to the platform pages host.
                  title: >
                    ManagerDefault true makes this the domain the caller's
                    managed
                  type: boolean
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                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
                  manager_default:
                    description: >
                      one manages serve their pages from when they have
                      registered none of their own. At most one of an
                      organization's domains carries it.
                    title: >
                      ManagerDefault reports whether this is the domain the
                      organizations this
                    type: boolean
                  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
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    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_...).

````