Zuplo Custom Domains API

Manage account custom domains and their deployment mappings

Operations 4

GET /v1/accounts/{accountName}/custom-domains Get Custom Domains #
POST /v1/accounts/{accountName}/custom-domains Create Custom Domain #
PATCH /v1/accounts/{accountName}/custom-domains Update a Custom Domain #
DELETE /v1/accounts/{accountName}/custom-domains Delete a Custom Domain #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zuplo-custom-domains-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zuplo-custom-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zuplo Developer API Keys - Buckets Custom Domains API
  termsOfService: https://zuplo.com/legal/terms
  contact:
    name: Zuplo
    url: https://zuplo.com/
    email: support@zuplo.com
  description: The Zuplo Developer API (ZAPI) enables developers to programmatically manage API keys, consumers, buckets, tunnels, deployments, metering, audit logs, and more.
  version: 1.0.0
servers:
- url: https://dev.zuplo.com
  description: Zuplo Developer API
security:
- ApiKeyAuth: []
tags:
- name: Custom Domains
  description: Manage account custom domains and their deployment mappings
paths:
  /v1/accounts/{accountName}/custom-domains:
    get:
      operationId: CustomDomainsService_list
      summary: Get Custom Domains
      description: Gets the account custom domains
      parameters:
      - $ref: '#/components/parameters/Zuplo.Common.AccountParams'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainsList'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.BadRequestProblemResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.UnauthorizedProblemResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.InternalServerErrorProblemResponse'
      tags:
      - Custom Domains
    post:
      operationId: CustomDomainsService_create
      summary: Create Custom Domain
      description: Creates a custom domain
      parameters:
      - $ref: '#/components/parameters/Zuplo.Common.AccountParams'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainMutationResult'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.BadRequestProblemResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.UnauthorizedProblemResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.InternalServerErrorProblemResponse'
      tags:
      - Custom Domains
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainCreateBody'
    patch:
      operationId: CustomDomainsService_update
      summary: Update a Custom Domain
      description: Updates a custom domain
      parameters:
      - $ref: '#/components/parameters/Zuplo.Common.AccountParams'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainMutationResult'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.BadRequestProblemResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.UnauthorizedProblemResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.InternalServerErrorProblemResponse'
      tags:
      - Custom Domains
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainUpdateBody'
    delete:
      operationId: CustomDomainsService_delete
      summary: Delete a Custom Domain
      description: Delete a custom domain
      parameters:
      - $ref: '#/components/parameters/Zuplo.Common.AccountParams'
      - $ref: '#/components/parameters/Zuplo.CustomDomains.CustomDomainDeleteQuery.hostname'
      - $ref: '#/components/parameters/Zuplo.CustomDomains.CustomDomainDeleteQuery.deploymentName'
      responses:
        '200':
          description: The request has succeeded.
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.BadRequestProblemResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.UnauthorizedProblemResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zuplo.HttpProblemDetails.InternalServerErrorProblemResponse'
      tags:
      - Custom Domains
components:
  schemas:
    Zuplo.CustomDomains.CustomDomainUpdateBody:
      type: object
      required:
      - hostname
      properties:
        hostname:
          type: string
          description: The hostname to update.
          example: api.example.com
        deploymentName:
          type: string
          description: The deployment to associate with the hostname.
          example: todo-list-api-main-59eec11
        isDefault:
          type: boolean
          description: Whether this domain should be the default domain for the deployment.
          example: true
      description: Request body for updating a custom domain.
      example:
        hostname: api.example.com
        deploymentName: todo-list-api-main-59eec11
        isDefault: true
    Zuplo.CustomDomains.CustomDomainStage:
      type: string
      enum:
      - api
      - dev-portal
      description: The stage exposed by a custom domain.
    Zuplo.CustomDomains.CustomDomainsList:
      type: object
      required:
      - data
      - offset
      - limit
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomain'
          description: The custom domains returned for the account.
        offset:
          type: integer
          format: uint32
          description: The number of records skipped.
          example: 0
        limit:
          type: integer
          format: uint32
          description: The maximum number of records returned.
          example: 100
      description: Response containing a paginated list of custom domains.
      example:
        data:
        - id: cdm_01HZX8D7A1M9S0K4Y2N6P3Q8R5
          accountName: chocolate_great_buzzard
          projectName: todo-list-api
          deployments:
          - deploymentName: todo-list-api-main-59eec11
            branch: main
            environmentType: PRODUCTION
            isDefault: true
            stage: api
            cname: todo-list-api-main-59eec11.zuplo.app
          hostname: api.example.com
          provider: cloudflare
        offset: 0
        limit: 100
    Zuplo.CustomDomains.CustomDomainEnvironmentType:
      type: string
      enum:
      - PRODUCTION
      - PREVIEW
      - WORKING_COPY
      description: The environment type targeted by a custom domain deployment.
    Zuplo.CustomDomains.CustomDomain:
      type: object
      required:
      - id
      - accountName
      - projectName
      - deployments
      - hostname
      - provider
      properties:
        id:
          type: string
          description: The unique identifier for the custom domain.
          example: cdm_01HZX8D7A1M9S0K4Y2N6P3Q8R5
        accountName:
          type: string
          description: The account that owns the custom domain.
          example: chocolate_great_buzzard
        projectName:
          type: string
          description: The project associated with the custom domain.
          example: todo-list-api
        deployments:
          type: array
          items:
            $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainDeployment'
          description: The deployments currently mapped to this hostname.
        hostname:
          type: string
          description: The hostname assigned to the custom domain.
          example: api.example.com
        provider:
          allOf:
          - $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainProvider'
          description: The provider backing the custom domain.
          example: cloudflare
      description: A custom domain configured for an account.
      example:
        id: cdm_01HZX8D7A1M9S0K4Y2N6P3Q8R5
        accountName: chocolate_great_buzzard
        projectName: todo-list-api
        deployments:
        - deploymentName: todo-list-api-main-59eec11
          branch: main
          environmentType: PRODUCTION
          isDefault: true
          stage: api
          cname: todo-list-api-main-59eec11.zuplo.app
        hostname: api.example.com
        provider: cloudflare
    Zuplo.CustomDomains.CustomDomainCreateBody:
      type: object
      required:
      - hostname
      properties:
        hostname:
          type: string
          description: The hostname to configure as a custom domain.
          example: api.example.com
        deploymentName:
          type: string
          description: The deployment to associate with the hostname.
          example: todo-list-api-main-59eec11
        stage:
          allOf:
          - $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainStage'
          description: The stage to expose on the hostname.
          example: api
        isDefault:
          type: boolean
          description: Whether this domain should be the default domain for the deployment.
          example: true
        isAlias:
          type: boolean
          description: Whether the domain should be configured as an alias.
          example: false
      description: Request body for creating a custom domain.
      example:
        hostname: api.example.com
        deploymentName: todo-list-api-main-59eec11
        stage: api
        isDefault: true
        isAlias: false
    Zuplo.HttpProblemDetails.UnauthorizedProblemResponse:
      type: object
      required:
      - type
      - title
      properties:
        type:
          type: string
          enum:
          - https://httpproblems.com/http-status/401
        title:
          type: string
          enum:
          - Unauthorized
      allOf:
      - type: object
        required:
        - type
        - title
        properties:
          type:
            type: string
          title:
            type: string
          detail:
            type: string
          instance:
            type: string
      example:
        type: https://httpproblems.com/http-status/401
        title: Unauthorized
        status: 401
    Zuplo.HttpProblemDetails.BadRequestProblemResponse:
      type: object
      required:
      - type
      - title
      properties:
        type:
          type: string
          enum:
          - https://httpproblems.com/http-status/400
        title:
          type: string
          enum:
          - Bad Request
      allOf:
      - type: object
        required:
        - type
        - title
        properties:
          type:
            type: string
          title:
            type: string
          detail:
            type: string
          instance:
            type: string
      example:
        type: https://httpproblems.com/http-status/400
        title: Bad Request
        status: 400
    Zuplo.CustomDomains.CustomDomainDeployment:
      type: object
      required:
      - deploymentName
      - branch
      - environmentType
      - isDefault
      - stage
      - cname
      properties:
        deploymentName:
          type:
          - string
          - 'null'
          description: The deployment name associated with the custom domain.
          example: todo-list-api-main-59eec11
        branch:
          type:
          - string
          - 'null'
          description: The branch associated with the deployment.
          example: main
        environmentType:
          allOf:
          - $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainEnvironmentType'
          description: The environment type associated with the deployment.
          example: PRODUCTION
        isDefault:
          type: boolean
          description: Whether this deployment is the default for the hostname.
          example: true
        stage:
          allOf:
          - $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainStage'
          description: The stage exposed by this custom domain mapping.
          example: api
        cname:
          type:
          - string
          - 'null'
          description: The CNAME target for this deployment.
          example: todo-list-api-main-59eec11.zuplo.app
      description: A deployment bound to a custom domain.
      example:
        deploymentName: todo-list-api-main-59eec11
        branch: main
        environmentType: PRODUCTION
        isDefault: true
        stage: api
        cname: todo-list-api-main-59eec11.zuplo.app
    Zuplo.CustomDomains.OwnershipVerification:
      type: object
      required:
      - name
      - type
      - value
      properties:
        name:
          type: string
          description: The DNS record name to create.
          example: _zuplo.api.example.com
        type:
          type: string
          description: The DNS record type to create.
          example: TXT
        value:
          type: string
          description: The DNS record value to create.
          example: zuplo-verification-token
      description: DNS record details used to verify domain ownership.
      example:
        name: _zuplo.api.example.com
        type: TXT
        value: zuplo-verification-token
    Zuplo.CustomDomains.CustomDomainMutationResult:
      type: object
      required:
      - deploymentName
      - hostname
      - stage
      - ownershipVerification
      - cname
      properties:
        deploymentName:
          type:
          - string
          - 'null'
          description: The deployment associated with the hostname.
          example: todo-list-api-main-59eec11
        hostname:
          type: string
          description: The hostname that was created or updated.
          example: api.example.com
        stage:
          allOf:
          - $ref: '#/components/schemas/Zuplo.CustomDomains.CustomDomainStage'
          description: The stage exposed by the hostname.
          example: api
        ownershipVerification:
          type:
          - object
          - 'null'
          allOf:
          - $ref: '#/components/schemas/Zuplo.CustomDomains.OwnershipVerification'
          description: The DNS record required to verify domain ownership, if any.
        cname:
          type:
          - string
          - 'null'
          description: The CNAME target for the custom domain, if any.
          example: todo-list-api-main-59eec11.zuplo.app
      description: The result of creating or updating a custom domain.
      example:
        deploymentName: todo-list-api-main-59eec11
        hostname: api.example.com
        stage: api
        ownershipVerification:
          name: _zuplo.api.example.com
          type: TXT
          value: zuplo-verification-token
        cname: todo-list-api-main-59eec11.zuplo.app
    Zuplo.CustomDomains.CustomDomainProvider:
      type: string
      enum:
      - cloudflare
      - amazon
      - custom
      - alias
      description: The provider backing a custom domain.
    Zuplo.HttpProblemDetails.InternalServerErrorProblemResponse:
      type: object
      required:
      - type
      - title
      properties:
        type:
          type: string
          enum:
          - https://httpproblems.com/http-status/500
        title:
          type: string
          enum:
          - Internal Server Error
      allOf:
      - type: object
        required:
        - type
        - title
        properties:
          type:
            type: string
          title:
            type: string
          detail:
            type: string
          instance:
            type: string
      example:
        type: https://httpproblems.com/http-status/500
        title: Internal Server Error
        status: 500
  parameters:
    Zuplo.Common.AccountParams:
      name: accountName
      in: path
      required: true
      description: The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
      schema:
        type: string
    Zuplo.CustomDomains.CustomDomainDeleteQuery.deploymentName:
      name: deploymentName
      in: query
      required: false
      description: The deployment associated with the hostname, when deleting a deployment-specific mapping.
      schema:
        type: string
      explode: false
    Zuplo.CustomDomains.CustomDomainDeleteQuery.hostname:
      name: hostname
      in: query
      required: true
      description: The hostname of the custom domain to delete.
      schema:
        type: string
      explode: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'API key authentication. Format: Bearer {api-key}'