---
title: "The domains the account's key can reach"
method: POST
path: "/provider-accounts/{id}/zones"
tags: ["Provider accounts"]
---

# The domains the account's key can reach

`POST /provider-accounts/{id}/zones`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/provider-accounts/{id}/zones`
- Auth: HTTP bearer

Lists the provider's domains with the kept key. `listed` is false for a provider that cannot list them. A refused key flags the account `needs_reconnect`. A one time account past its hour answers `409`, and its key is deleted then if the hourly cleanup has not deleted it yet.

## Path parameters

- `id` string, required

## Response `200`

The domains

- object
  - `zones` string[]
  - `listed` boolean
  - `message` string

## Other responses

- `401`: Error envelope: {code, title, details}.
- `404`: Error envelope: {code, title, details}.
- `409`: Error envelope: {code, title, details}.
- `422`: The provider refused the key; the account is flagged `needs_reconnect`
- `503`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
