curl --request GET \
--url https://api.mixpeek.com/v1/organizations/infrastructure/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mixpeek.com/v1/organizations/infrastructure/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mixpeek.com/v1/organizations/infrastructure/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mixpeek.com/v1/organizations/infrastructure/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mixpeek.com/v1/organizations/infrastructure/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mixpeek.com/v1/organizations/infrastructure/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/organizations/infrastructure/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tenant_id": "<string>",
"cost_breakdown": {
"billing_month": "<string>",
"cloud_provider": "<string>",
"data_as_of": "<string>",
"data_delay_note": "<string>",
"cost_unavailable": false,
"attribution_scope": "dedicated_k8s_ns",
"total_cloud_cost_usd": 0,
"margin_pct": 0.2,
"total_margin_usd": 0,
"platform_fee_usd": 0,
"platform_fee_billed_externally": false,
"total_invoice_usd": 0,
"categories": [
{
"category": "<string>",
"category_label": "<string>",
"cloud_cost_usd": 123,
"margin_usd": 123,
"total_usd": 123,
"line_items": [
{
"service": "<string>",
"description": "<string>",
"category": "<string>",
"cloud_cost_usd": 123,
"margin_usd": 123,
"total_usd": 123,
"usage_amount": 123,
"usage_unit": "<string>",
"region": "<string>"
}
]
}
],
"all_line_items": [
{
"service": "<string>",
"description": "<string>",
"category": "<string>",
"cloud_cost_usd": 123,
"margin_usd": 123,
"total_usd": 123,
"usage_amount": 123,
"usage_unit": "<string>",
"region": "<string>"
}
]
},
"namespace": "<string>",
"region": "us-east1",
"billing_mode": "credits",
"extractors": [
{
"extractor_name": "<string>",
"version": "<string>",
"gke_profile": "<string>",
"workload_type": "<string>",
"head": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"cpu_workers": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"cpu_worker_scaling": {
"min_replicas": 123,
"max_replicas": 123
},
"gpu_workers": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"gpu_worker_scaling": {
"min_replicas": 123,
"max_replicas": 123
},
"cost_per_hour_usd": 123
}
],
"data_plane_components": [
{
"component": "<string>",
"component_label": "<string>",
"replicas": 123,
"resources": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"scaling": {
"min_replicas": 123,
"max_replicas": 123
}
}
],
"compute_costs": {
"cpu_hours": 0,
"gpu_hours": 0,
"base_cost_usd": 0,
"daily_breakdown": [
{}
]
},
"billing_period": {
"billing_month": "<string>",
"platform_fee_usd": 0,
"compute_base_cost_usd": 0,
"usage_cost_usd": 0,
"total_base_cost_usd": 0,
"note": "Base cost before margin"
}
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}Get Infrastructure
Get infrastructure summary for an enterprise single-tenant deployment.
Returns compute profiles for each extractor, cloud cost breakdown with transparent margin, and the billing period summary for the requested (default: current) month. Enterprise-only endpoint.
curl --request GET \
--url https://api.mixpeek.com/v1/organizations/infrastructure/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mixpeek.com/v1/organizations/infrastructure/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mixpeek.com/v1/organizations/infrastructure/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mixpeek.com/v1/organizations/infrastructure/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mixpeek.com/v1/organizations/infrastructure/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mixpeek.com/v1/organizations/infrastructure/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/organizations/infrastructure/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tenant_id": "<string>",
"cost_breakdown": {
"billing_month": "<string>",
"cloud_provider": "<string>",
"data_as_of": "<string>",
"data_delay_note": "<string>",
"cost_unavailable": false,
"attribution_scope": "dedicated_k8s_ns",
"total_cloud_cost_usd": 0,
"margin_pct": 0.2,
"total_margin_usd": 0,
"platform_fee_usd": 0,
"platform_fee_billed_externally": false,
"total_invoice_usd": 0,
"categories": [
{
"category": "<string>",
"category_label": "<string>",
"cloud_cost_usd": 123,
"margin_usd": 123,
"total_usd": 123,
"line_items": [
{
"service": "<string>",
"description": "<string>",
"category": "<string>",
"cloud_cost_usd": 123,
"margin_usd": 123,
"total_usd": 123,
"usage_amount": 123,
"usage_unit": "<string>",
"region": "<string>"
}
]
}
],
"all_line_items": [
{
"service": "<string>",
"description": "<string>",
"category": "<string>",
"cloud_cost_usd": 123,
"margin_usd": 123,
"total_usd": 123,
"usage_amount": 123,
"usage_unit": "<string>",
"region": "<string>"
}
]
},
"namespace": "<string>",
"region": "us-east1",
"billing_mode": "credits",
"extractors": [
{
"extractor_name": "<string>",
"version": "<string>",
"gke_profile": "<string>",
"workload_type": "<string>",
"head": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"cpu_workers": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"cpu_worker_scaling": {
"min_replicas": 123,
"max_replicas": 123
},
"gpu_workers": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"gpu_worker_scaling": {
"min_replicas": 123,
"max_replicas": 123
},
"cost_per_hour_usd": 123
}
],
"data_plane_components": [
{
"component": "<string>",
"component_label": "<string>",
"replicas": 123,
"resources": {
"cpu_request": "<string>",
"cpu_limit": "<string>",
"memory_request": "<string>",
"memory_limit": "<string>",
"gpu": 0
},
"scaling": {
"min_replicas": 123,
"max_replicas": 123
}
}
],
"compute_costs": {
"cpu_hours": 0,
"gpu_hours": 0,
"base_cost_usd": 0,
"daily_breakdown": [
{}
]
},
"billing_period": {
"billing_month": "<string>",
"platform_fee_usd": 0,
"compute_base_cost_usd": 0,
"usage_cost_usd": 0,
"total_base_cost_usd": 0,
"note": "Base cost before margin"
}
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}Authorizations
Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.
Query Parameters
Billing month to inspect (YYYY-MM). Defaults to the current month. Past months return the same category + line-item granularity as the current month.
"2026-06"
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?

