ZeroCopyZeroCopy
ReferenceManagement API

List tip accounts

GET
/partner/tip-accounts

Requires the partner:read scope. Returns the enrolled partner team's vanity tip accounts and their activation status. The list can be empty while addresses are being generated. Each request generates exactly eight accounts. Use only accounts with status: live. ZeroCopy approves the accounts before activation; all eight accounts become live together. Until then, your own keys keep using company tip accounts and customer-key creation is refused. Before sending, discover the accounts accepted for the sending key with getTipAccounts.

Authorization

managementKey
headerAuthorizationBearer <zc_mgmt_>

Response Body

Vanity tip accounts with live or pending status; use only live accounts

application/json
  1. response
data*array<>
Example request
// src/bin/management_partner_tip_accounts.rs
// Builds on the example project (/reference/json-rpc#example-project).
use swqos_examples::swqos::{Result, required};

#[tokio::main]
async fn main() -> Result<()> {
    let endpoint = reqwest::Url::parse("https://console.zerocopy.sh/api/v1/partner/tip-accounts")?;
    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
{
  "data": [
    {
      "address": "ZC11111111111111111111111111111111111111111",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111112",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111113",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111114",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111115",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111116",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111117",
      "status": "live"
    },
    {
      "address": "ZC11111111111111111111111111111111111111118",
      "status": "live"
    }
  ]
}