> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Claim Domain

> Initiate ownership claim for a domain registered by another account.

If you try to add a domain that is currently registered to another account or team, use this endpoint to initiate an automated DNS verification challenge to claim it via the Mailofly API.

### Body Parameters

**domain** `string` *required*

The fully qualified domain name you wish to claim (e.g. `example.com`).

### Response

**data** `object`

**id** `string`

The claim ID.

**domain** `string`

Domain being claimed.

**status** `string`

Status (`pending_verification`).

**txtRecord** `object`

**type** `string`

DNS record type (`TXT`).

**name** `string`

DNS record host / name.

**value** `string`

Verification token value.

**createdAt** `string`

Creation timestamp.

```bash cURL theme={null}
curl -X POST https://api.mailofly.com/domains/claim \
  -H "Authorization: Bearer mf_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "example.com"
  }'
```

```json 201 Created theme={null}
{
  "data": {
    "id": "clm_123456",
    "domain": "example.com",
    "status": "pending_verification",
    "txtRecord": {
      "type": "TXT",
      "name": "_mailofly-challenge.example.com",
      "value": "mailofly-verify=8f7e9a2b3c4d5e6f"
    },
    "createdAt": "2026-09-11T14:00:00Z"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.