Does this server serve a domain?
GET
/api/v1/domains/check
const url = 'http://localhost:3000/api/v1/domains/check';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/domains/check200 for a verified domain, an organization’s or a portal’s, or a portal’s subdomain of PORTAL_DOMAIN, 404 otherwise. For a reverse proxy issuing TLS certificates on demand, e.g. Caddy’s on_demand_tls { ask }.
No key needed.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”domain
string
A host name, e.g. press.example.com
Responses
Section titled “Responses”Served
Media typeapplication/json
object
data
required
object
domain
required
string
served
required
boolean
Example
{ "data": { "served": true }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}