---
type: api
title: Verify domain claim
description: Verify domain claim challenge.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-domain-claim-verify-domain
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-domain-claim-verify-domain
products:
  - Elastic Cloud Enterprise
---

# Verify domain claim

## Paths

- `POST` `/organizations/{organization_id}/domains/_verify`

#### Path parameters

- `organization_id` (string) — required
  Identifier for the Organization

## Description

Verify domain claim challenge.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Request body

The verification code request

`application/json`

- `domain_claim_request` (string) — required
  The domain claim request

## Responses

#### `200`

With status 200 ok to signal the domain has been claimed

`application/json`

Type: `object`

#### `400`

Domain claim already exists. (code: `org.domain_claim.already_exists`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

#### `404`

Organization not found. (code: `organization.not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

#### `409`

Concurrent organization modification. (code: `org.domain_claim.concurrent_organization_modification`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

#### `449`

The challenge can not be verified at the moment, please retry later

`application/json`

Type: `object`

## Code examples

#### curl

```curl
curl -X POST "${API_URL}/organizations/${ORGANIZATION_ID}/domains/_verify" \
  -u "${USERNAME}:${PASSWORD}" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_claim_request": "string"
  }'
```

