---
title: "Add a domain you own"
method: POST
path: "/v1/instances/{id}/app/domains"
tags: ["public", "apps"]
---

# Add a domain you own

`POST /v1/instances/{id}/app/domains`

## Request

- Base URL: `https://api.vozora.io`
- URL: `https://api.vozora.io/v1/instances/{id}/app/domains`
- Auth: API key in header `Authorization`

Adds an exact customer-owned hostname as a host alias and mints its TXT ownership challenge. Wildcards are refused, as are names inside Vozora-operated zones. Nothing routes until the challenge is proven and the name resolves only to this app's addresses; the automatic Vozora hostname keeps working throughout.

## Path parameters

- `id` string, required

## Request body

- EndpointsPublicDeclareDomainRequest
  - `hostname` string

## Response `201`

Created

- EndpointsPublicDomain
  - `applied` boolean
  - `challenge_expires_at` string
  - `dns` EndpointsPublicDNSGuidance
    - `a` EndpointsPublicDNSRecord[]
      - `name` string
      - `type` string
      - `value` string
    - `aaaa` EndpointsPublicDNSRecord[]
      - `name` string
      - `type` string
      - `value` string
    - `addresses_known` boolean
    - `challenge` EndpointsPublicDNSRecord
      - `name` string
      - `type` string
      - `value` string
    - `cname` EndpointsPublicDNSRecord
      - `name` string
      - `type` string
      - `value` string
  - `hostname` string
  - `id` string
  - `last_ownership_check` string
  - `last_route_check` string
  - `ownership_verified` boolean
  - `ownership_verified_at` string
  - `removal_requested` boolean
  - `role` string
  - `service_instance_id` string
  - `state` string

## Other responses

- `400`: invalid_request or invalid_hostname
- `401`: invalid or missing API key
- `403`: the key lacks apps:write
- `404`: no such instance
- `409`: the hostname is already claimed
- `422`: custom_domains_unavailable or canonical_domain_unsupported

---

[API](https://skmtc.dev/vozora/apis/vozora-api.md) · [All operations](https://skmtc.dev/vozora/apis/vozora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vozora/apis/vozora-api/revisions/56f15734fc5a?raw)
