---
title: "The organization's domains, each with the TXT record that proves it."
method: GET
path: "/v1/organizations/current/domains"
tags: ["organizations"]
---

# The organization's domains, each with the TXT record that proves it.

`GET /v1/organizations/current/domains`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/organizations/current/domains`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `organization:read`)

Organization admins only. Removed domains are not listed.

## Response `200`

OK

- OrganizationDomainsResponse
  - `domains` object[], required
    - `id` string, required
    - `domain` string, required: Lower case, internationalised names in their ASCII (xn--) form. Subdomains are separate domains.
    - `state` 'pending' | 'verified' | 'warning' | 'failed' | 'revoked', required
    - `challenge` object, required
      - `recordName` string, required: `_50heads-challenge.<domain>`.
      - `recordType` 'TXT', required
      - `value` string, required: The whole TXT value, `50heads-domain-verification=` and the token.
    - `createdAt` string, required
    - `verifiedAt` string, nullable, required
    - `checkedAt` string, nullable, required
    - `lastError` string, nullable, required
    - `warningSince` string, nullable, required
    - `graceEndsAt` string, nullable, required

## Other responses

- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
