---
title: "Get the ownership state of a DNS record"
method: GET
path: "/dns-records/ownership"
tags: ["DNS Records"]
---

# Get the ownership state of a DNS record

`GET /dns-records/ownership`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/dns-records/ownership`
- Auth: HTTP bearer

## Query parameters

- `domain` string, required
- `name` string, required
- `record_type` 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'MX' | 'NS' | 'SRV' | 'CAA' | 'PTR', required: DNS record types

## Response `200`

Ownership state

- RecordOwnershipResponse: Ownership state of one record, for the conflict/import UI
  - `environment_id` integer, nullable: Environment stamped in the ownership marker, when owned
  - `owner_instance` string, nullable: Owning install's instance ID when owned by a different temps install
  - `project_id` integer, nullable: Project stamped in the ownership marker, when owned
  - `record` DnsRecord, nullable: A DNS record
    - `content` union, required: Record content
      - object: A record - IPv4 address (as string, e.g., "192.0.2.1")
        - `type` 'A', required
        - `value` object, required: A record - IPv4 address (as string, e.g., "192.0.2.1")
          - `address` string, required
      - object: AAAA record - IPv6 address (as string, e.g., "2001:db8::1")
        - `type` 'AAAA', required
        - `value` object, required: AAAA record - IPv6 address (as string, e.g., "2001:db8::1")
          - `address` string, required
      - object: CNAME record - canonical name
        - `type` 'CNAME', required
        - `value` object, required: CNAME record - canonical name
          - `target` string, required
      - object: TXT record - text content
        - `type` 'TXT', required
        - `value` object, required: TXT record - text content
          - `content` string, required
      - object: MX record - mail exchange
        - `type` 'MX', required
        - `value` object, required: MX record - mail exchange
          - `priority` integer, required
          - `target` string, required
      - object: NS record - nameserver
        - `type` 'NS', required
        - `value` object, required: NS record - nameserver
          - `nameserver` string, required
      - object: SRV record - service
        - `type` 'SRV', required
        - `value` object, required: SRV record - service
          - `port` integer, required
          - `priority` integer, required
          - `target` string, required
          - `weight` integer, required
      - object: CAA record - certification authority authorization
        - `type` 'CAA', required
        - `value` object, required: CAA record - certification authority authorization
          - `flags` integer, required
          - `tag` string, required
          - `value` string, required
      - object: PTR record - pointer
        - `type` 'PTR', required
        - `value` object, required: PTR record - pointer
          - `target` string, required
    - `fqdn` string, required: Fully qualified domain name
    - `id` string, nullable: Provider-specific record ID (if exists)
    - `metadata` object: Provider-specific metadata
    - `name` string, required: Record name (without zone, e.g., "www" or "@" for root)
    - `proxied` boolean: Whether this record is proxied (Cloudflare-specific)
    - `ttl` integer, required: Time to live in seconds
    - `zone` string, required: Zone/domain this record belongs to
  - `status` string, required: One of: not_found | unmanaged | owned | owned_by_other | orphaned | blocked_by_other | registry_conflict
  - `writable` boolean, required: Whether this temps install may modify the record

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Domain not managed by any DNS provider

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-10-03** `de8387218c0b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/dns-records/ownership/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
