ReferenceManagement API
Retrieve metric history
GET
Requires the usage:read scope. Returns historical transaction metric buckets over up to 90 days, grouped by one dimension. Repeat filters to select several values.
managementKeyheader
AuthorizationBearer <zc_mgmt_>metric*stringValue in
"transactions""landed_rate""failed_rate""expired_rate""slots_to_land""edge_time""tips""priority_fees"group_by?stringValue in
"key""metro""outcome""path""source""kind"quantile?||Default
0.5range?stringDefault
"24h"Value in
"1h""24h""7d""30d"from?stringFormat
date-timeto?stringFormat
date-timekey_id?|array<>metro?|array<>outcome?|array<>Current transaction history, matching the console Metrics page
application/json- response
metric*stringValue in
"transactions""landed_rate""failed_rate""expired_rate""slots_to_land""edge_time""tips""priority_fees"unit*stringValue in
"transactions""percent""slots""microseconds""lamports"quantile?number|number|numberstep_seconds*integerRange
0 < value <= 9007199254740991from*stringRFC 3339 time
Format
date-timeto*stringRFC 3339 time
Format
date-timeseries*array<>// src/bin/management_metric_history.rs
use serde_json::Value;
use swqos_examples::swqos::{Result, required};
#[tokio::main]
async fn main() -> Result<()> {
let response = reqwest::Client::new()
.get("https://console.zerocopy.sh/api/v1/metrics/series?metric=transactions&range=24h&group_by=outcome")
.bearer_auth(required("MANAGEMENT_API_KEY")?)
.send()
.await?;
let status = response.status();
let body = response.text().await?;
let reply: Value = serde_json::from_str(&body)
.map_err(|error| format!("HTTP {status}: {error}; body: {body}"))?;
if !status.is_success() {
return Err(format!("HTTP {status}: {reply}").into());
}
println!("{}", serde_json::to_string_pretty(&reply)?);
Ok(())
}
{
"metric": "transactions",
"unit": "transactions",
"step_seconds": 60,
"from": "2026-11-13T02:11:00.000Z",
"to": "2026-11-13T02:14:00.000Z",
"series": [
{
"labels": {
"outcome": "landed"
},
"points": [
[
1794535860000,
17
],
[
1794535920000,
21
],
[
1794535980000,
19
]
]
},
{
"labels": {
"outcome": "failed"
},
"points": [
[
1794535860000,
1
],
[
1794535920000,
2
],
[
1794535980000,
1
]
]
},
{
"labels": {
"outcome": "expired"
},
"points": [
[
1794535860000,
2
],
[
1794535920000,
1
],
[
1794535980000,
1
]
]
}
]
}Retrieve Prometheus metrics GET
Returns one complete UTC minute of transaction and receiver gauges in Prometheus text format. Data is 3 minutes behind. Requires the usage:read scope.
Retrieve partner settings GET
Returns the enrolled partner team's products, revenue share, tip account counts and domain status counts.