---
title: "Check a hostname's DNS and certificate, and activate it"
description: "Check a hostname's status and advance it one step."
canonical: "https://grid82.com/docs/builder-api/domains/verify"
updated: "2026-11-13"
---

# Check a hostname's DNS and certificate, and activate it

`POST https://studio.grid82.app/v1/suites/{suiteId}/domains/{hostname}/verify`

Check a hostname's status and advance it one step.

`pending`: look up the TXT record requested by `domains.attach`; when it appears, the hostname becomes `provisioning` while Cloudflare validates it and issues a certificate. This takes minutes and requires the CNAME to point here. `certificate` includes both states and any Cloudflare complaints. `active`: the hostname serves and starts routing to this suite. Safe to call repeatedly while DNS propagates.

Requires the `schema:write` scope. Operation `domains.verify`. MCP tool `domains_verify`. CLI: `grid82 domains verify` (`npx grid82`).

## Path parameters

| Name       | Type   | Required | Description |
| ---------- | ------ | -------- | ----------- |
| `suiteId`  | string | yes      |             |
| `hostname` | string | yes      |             |

## Headers

| Name              | Type   | Required | Description                                                                                                                                                                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Idempotency-Key` | string | no       | Any unique string. Sending the same key with the same request again returns the first response (marked `Idempotency-Replayed: true`) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |

**Authorizations**

- `Authorization` (bearer, in header, required)

## Response

**200**: Success

- `data` (`object`, required)
- `data.hostname` (`string`, required)
- `data.status` (`enum<string>`, required, one of: `active, pending, provisioning`)
- `data.verification` (`object`)
- `data.verification.type` (`string`, required)
- `data.verification.name` (`string`, required)
- `data.verification.value` (`string`, required)
- `data.dns` (`object`)
- `data.dns.type` (`string`, required)
- `data.dns.name` (`string`, required)
- `data.dns.value` (`string`, required)
- `data.certificate` (`object`)
- `data.certificate.host` (`string`, required)
- `data.certificate.ssl` (`string`, required)
- `data.certificate.errors` (`string[]`, required)

```json
{
  "data": {
    "hostname": "<string>",
    "status": "active",
    "verification": {
      "type": "<string>",
      "name": "<string>",
      "value": "<string>"
    },
    "dns": {
      "type": "<string>",
      "name": "<string>",
      "value": "<string>"
    },
    "certificate": {
      "host": "<string>",
      "ssl": "<string>",
      "errors": [
        "<string>"
      ]
    }
  }
}
```

**4XX**: Refused

- `error` (`object`, required)
- `error.code` (`enum<string>`, required, one of: `not_found, forbidden, unauthenticated, validation_failed, conflict, rate_limited, payment_required, not_implemented, internal`)
- `error.message` (`string`, required)
- `error.details` (`Record<string, unknown>`)

```json
{
  "error": {
    "code": "not_found",
    "message": "<string>",
    "details": {}
  }
}
```

**Example request**

```bash
curl --request POST \
  --url 'https://studio.grid82.app/v1/suites/<suiteId>/domains/<hostname>/verify' \
  --header 'Authorization: Bearer <token>'
```
