# blog.pckt.domain.set

> Published by [pckt.blog](https://lexicon.garden/identity/did:plc:revjuqmkvrw6fnkxppqtszpv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:revjuqmkvrw6fnkxppqtszpv/blog.pckt.domain.set)
- [Documentation](https://lexicon.garden/lexicon/did:plc:revjuqmkvrw6fnkxppqtszpv/blog.pckt.domain.set/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:revjuqmkvrw6fnkxppqtszpv/blog.pckt.domain.set/examples)

## Definitions

### `blog.pckt.domain.set`

**Type**: `procedure`

Set or update the custom domain for a publication. Returns a verification token that must be installed as a TXT record before calling verify.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `domain` | `string` | Yes | Fully-qualified domain name (lowercase). |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `domain` | `string` | Yes |  |
| `verified` | `boolean` | Yes |  |
| `verificationToken` | `string` | No | Token to install as a TXT record at _pckt-verify.<domain>. |

#### Errors

- **BlogNotFound**
- **PlanLimitReached**
- **InvalidDomain**

## Raw Schema

```json
{
  "id": "blog.pckt.domain.set",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "domain"
          ],
          "properties": {
            "domain": {
              "type": "string",
              "maxLength": 253,
              "description": "Fully-qualified domain name (lowercase)."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "BlogNotFound"
        },
        {
          "name": "PlanLimitReached"
        },
        {
          "name": "InvalidDomain"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "domain",
            "verified"
          ],
          "properties": {
            "domain": {
              "type": "string"
            },
            "verified": {
              "type": "boolean"
            },
            "verificationToken": {
              "type": "string",
              "description": "Token to install as a TXT record at _pckt-verify.<domain>."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "blog"
        ],
        "properties": {
          "blog": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the publication record (site.standard.publication). Authority MUST match the caller's DID."
          }
        }
      },
      "description": "Set or update the custom domain for a publication. Returns a verification token that must be installed as a TXT record before calling verify."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
