# place.wisp.v2.domain.claim

> Published by [wisp.place](https://lexicon.garden/identity/did:plc:7puq73yz2hkvbcpdhnsze2qw)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.domain.claim)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.domain.claim/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.domain.claim/examples)

## Definitions

### `place.wisp.v2.domain.claim`

**Type**: `procedure`

Claim a custom domain for the authenticated DID. Returns DNS setup instructions.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `domain` | `string` | Yes | Custom domain FQDN to claim (for example, example.com). |
| `siteRkey` | `string` (record-key) | No | Optional place.wisp.fs rkey to map immediately after claim. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kind` | `string` | No |  |
| `domain` | `string` | Yes |  |
| `status` | `string` | Yes |  |
| `txtName` | `string` | No | TXT hostname to set for ownership proof (custom domains). |
| `siteRkey` | `string` (record-key) | No |  |
| `txtValue` | `string` (did) | No | TXT value to set for ownership proof (custom domains). |
| `challengeId` | `string` | No | Identifier used to construct DNS challenge targets for custom domains. |
| `cnameTarget` | `string` | No | Advisory CNAME target (custom domains). |

#### Errors

- **AuthenticationRequired**
- **InvalidDomain**
- **AlreadyClaimed**
- **DomainLimitReached**
- **RateLimitExceeded**

## Raw Schema

```json
{
  "id": "place.wisp.v2.domain.claim",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "domain"
          ],
          "properties": {
            "domain": {
              "type": "string",
              "maxLength": 253,
              "minLength": 3,
              "description": "Custom domain FQDN to claim (for example, example.com)."
            },
            "siteRkey": {
              "type": "string",
              "format": "record-key",
              "description": "Optional place.wisp.fs rkey to map immediately after claim."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidDomain"
        },
        {
          "name": "AlreadyClaimed"
        },
        {
          "name": "DomainLimitReached"
        },
        {
          "name": "RateLimitExceeded"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "domain",
            "status"
          ],
          "properties": {
            "kind": {
              "enum": [
                "custom"
              ],
              "type": "string"
            },
            "domain": {
              "type": "string"
            },
            "status": {
              "enum": [
                "alreadyClaimed",
                "pendingVerification",
                "verified"
              ],
              "type": "string"
            },
            "txtName": {
              "type": "string",
              "maxLength": 253,
              "minLength": 3,
              "description": "TXT hostname to set for ownership proof (custom domains)."
            },
            "siteRkey": {
              "type": "string",
              "format": "record-key"
            },
            "txtValue": {
              "type": "string",
              "format": "did",
              "description": "TXT value to set for ownership proof (custom domains)."
            },
            "challengeId": {
              "type": "string",
              "maxLength": 64,
              "minLength": 8,
              "description": "Identifier used to construct DNS challenge targets for custom domains."
            },
            "cnameTarget": {
              "type": "string",
              "maxLength": 253,
              "minLength": 3,
              "description": "Advisory CNAME target (custom domains)."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Claim a custom domain for the authenticated DID. Returns DNS setup instructions."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
