ZeroCopyZeroCopy
ReferenceManagement API

Retrieve a domain

GET
/domains/{hostname}

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.

Authorization

managementKey
headerAuthorizationBearer <zc_mgmt_>

Path Parameters

hostname*string
Match^(?!.*\.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])?$
Lengthlength <= 253

Response Body

The domain and its DNS records

application/json
  1. 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
Match^(?!.*\.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])?$
Lengthlength <= 253
target*string
Value in"sol""fra""ams""lon""nyc""lax""tyo"
products*array<string>
status*string
Value in"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*string

RFC 3339 time

Formatdate-time
updated_at*string

RFC 3339 time

Formatdate-time
dns_records*array<never>
Items2 <= items <= 2
Example request
// 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(())
}
Example response
{
  "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"
    }
  ]
}