---
title: "List domain identities already registered on a provider's side, for populating an \"import existing domain\" picker instead of requiring the operator to type the domain name (and, for Scaleway, its internal UUID) by hand."
method: GET
path: "/email-providers/{id}/discoverable-domains"
tags: ["Email Providers"]
---

# List domain identities already registered on a provider's side, for populating an "import existing domain" picker instead of requiring the operator to type the domain name (and, for Scaleway, its internal UUID) by hand.

`GET /email-providers/{id}/discoverable-domains`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/email-providers/{id}/discoverable-domains`
- Auth: HTTP bearer

Always returns `200`, even when the provider type has no domain-listing
API (SMTP) or the live fetch failed — `supported: false` or a non-null
`error` signal the caller to fall back to manual entry instead of
treating this as a hard failure. Only a genuine failure to resolve the
provider itself (not found, undecryptable credentials) returns an error
status.

## Path parameters

- `id` integer, required

## Response `200`

Discoverable domains (see `supported`/`error` for fallback state)

- ListProviderDomainsResponse: Domains discoverable on a provider's side for the "import existing domain" picker. `supported: false` means this provider type has no domain-listing API at all (SMTP) — the UI must fall back to manual domain entry rather than treat it as an error to retry. `error` is set when `supported` is `true` but the live fetch still failed (network, revoked credentials); the same manual-entry fallback applies, but it's worth surfacing as a warning.
  - `domains` ProviderDomainIdentityResponse[], required
    - `domain` string, required
    - `provider_identity_id` string, required
    - `status` string, required: The provider's current verification status for this domain ("verified", "pending", "failed", "not_started", "temporary_failure")
  - `error` string, nullable
  - `supported` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Provider not found
- `500`: Internal server error

## Changes

- **2026-09-07** `504478bfd788`: 1 info
  - endpoint added
- **2026-09-07** `7a3103561bd0`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `f17c19cdda17`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `804f633e47cf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/email-providers/:id/discoverable-domains/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)
