Retrieve a domain
Requires the partner:read scope. Returns one domain owned by the enrolled partner team and its DNS setup records. A missing or foreign domain returns HTTP 404. The seven day DNS cleanup applies only before the first certificate exists. Failed renewals keep an existing unexpired certificate in service; read last_error and not_after to distinguish renewal failure from expiry.
managementKeyAuthorizationBearer <zc_mgmt_>hostname*string^(?!.*\.zerocopy\.sh$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.){2,}[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$length <= 253The domain and its DNS records
application/json- response
Both dns_records have type CNAME. The sending record points to sol.zerocopy.sh or <metro>.sol.zerocopy.sh. The challenge record value is null while preparing, then contains the assigned name under acme.zerocopy.sh. See White label domains for setup.
hostname*string^(?!.*\.zerocopy\.sh$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.){2,}[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$length <= 253target*string"sol""fra""ams""lon""nyc""lax""tyo"products*array<string>status*string"pending""awaiting_dns""active""failed"acme_dns_fulldomain*|Assigned challenge target, or null while preparing
not_after*|Certificate expiry timestamp, or null before issuance
last_error*|Setup or renewal error, or null
created_at*stringRFC 3339 time
date-timeupdated_at*stringRFC 3339 time
date-timedns_records*array<never>2 <= items <= 2// src/bin/management_read_domain.rs
// Builds on the example project (/reference/json-rpc#example-project).
use swqos_examples::swqos::{Result, required};
#[tokio::main]
async fn main() -> Result<()> {
let hostname: String = required("DOMAIN_HOSTNAME")?;
let mut endpoint = reqwest::Url::parse("https://console.zerocopy.sh/api/v1/domains/")?;
endpoint.path_segments_mut().map_err(|_| "invalid base URL")?
.pop_if_empty().push(&hostname);
let request = reqwest::Client::new()
.get(endpoint)
.bearer_auth(required("MANAGEMENT_API_KEY")?);
let response = request.send().await?;
let status = response.status();
let request_id = response.headers().get("Request-Id")
.map(|value| value.to_str()).transpose()?.unwrap_or("<missing>").to_owned();
if let Some(etag) = response.headers().get("ETag") {
eprintln!("ETag: {}", etag.to_str()?);
}
let body = response.text().await?;
if !status.is_success() {
return Err(format!("HTTP {status}; Request-Id: {request_id}; {body}").into());
}
eprintln!("Request-Id: {request_id}");
println!("{body}");
Ok(())
}{
"hostname": "send.partner.example",
"target": "sol",
"products": [
"send"
],
"status": "active",
"acme_dns_fulldomain": "partner-example.acme.zerocopy.sh",
"not_after": "2027-02-10T09:00:00Z",
"last_error": null,
"created_at": "2026-11-12T09:00:00Z",
"updated_at": "2026-11-12T09:05:00Z",
"dns_records": [
{
"type": "CNAME",
"name": "send.partner.example",
"value": "sol.zerocopy.sh"
},
{
"type": "CNAME",
"name": "_acme-challenge.send.partner.example",
"value": "partner-example.acme.zerocopy.sh"
}
]
}