POST /deploy/production/domains/{domain}/verify
Verify a custom domain
Scope deploy:create. Write: live key required (403 deploy_production_live_key_required with a test key). Served only when Galon Deploy is open to the account (404 otherwise). Errors {"detail": {"code"}}. The TLS certificate is issued on demand once the domain is verified.
API key (Bearer), on the public API endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
domain | path | string · required |
Responses
| Status | Description | Body |
|---|---|---|
200 | DNS verification result | object |
401 | Key missing or invalid | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/deploy/production/domains/<domain>/verify" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.production.verifyDomain("<id>");Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.production.verify_domain("<id>")