Galon Cloud
Galon API v1

/deploy/production/domains/{domain}/verify

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

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

NameInTypeDescription
domainpathstring · required

Responses

StatusDescriptionBody
200DNS verification resultobject
401Key missing or invalidError

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>")