{"openapi":"3.1.0","info":{"title":"ZeroCopy management API","version":"1","description":"Authenticate with a management key: `Authorization: Bearer zc_mgmt_…`. A 401 carries `WWW-Authenticate`; a key that lists allowed addresses refuses others with 403 `forbidden_ip`. Each key may make 600 GET and 60 other requests a minute. Each team may run two management-key analytics requests concurrently; excess requests return 429 `analytics_busy`. Authenticated responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a rate-limit refusal also carries `Retry-After`. Invalid credentials do not consume a shared application failure budget. Every response carries `Request-Id`. POST and PATCH bodies are capped at 64 KiB. A POST may carry `Idempotency-Key`: its successful response is saved for 24 hours and a repeat of the same request gets it again with `Idempotent-Replayed: true`; another request under the same key gets 409 `idempotency_key_reused`, and a repeat while the first runs gets 409 `idempotency_in_progress`. Refusals are not saved."},"servers":[{"url":"/api/v1"}],"security":[{"managementKey":[]}],"components":{"securitySchemes":{"managementKey":{"type":"http","scheme":"bearer","bearerFormat":"zc_mgmt_"}},"schemas":{"KeyCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"products":{"default":["send"],"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["send","jsonrpc","ws","grpc","deshred","das","history"]}},"expires_in_days":{"default":0,"anyOf":[{"type":"number","const":0},{"type":"number","const":7},{"type":"number","const":30},{"type":"number","const":90},{"type":"number","const":365}],"description":"Days from now until the key stops working; 0 never"},"rules":{"$ref":"#/components/schemas/KeyRulesInput"}},"required":["name"],"additionalProperties":false},"KeyPatch":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"products":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["send","jsonrpc","ws","grpc","deshred","das","history"]}},"expires_in_days":{"anyOf":[{"type":"number","const":0},{"type":"number","const":7},{"type":"number","const":30},{"type":"number","const":90},{"type":"number","const":365}],"description":"Days from now until the key stops working; 0 never"},"rules":{"type":"object","properties":{"endpoints":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"all"}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","const":"only"},"ids":{"maxItems":256,"type":"array","items":{"type":"string"}}},"required":["mode","ids"]}]},"ips":{"maxItems":256,"type":"array","items":{"type":"string"}},"origins":{"maxItems":256,"type":"array","items":{"type":"string"}},"methods":{"type":"object","properties":{"mode":{"type":"string","enum":["all","allow","deny"]},"list":{"maxItems":256,"type":"array","items":{"type":"string"}}}}},"additionalProperties":false}},"additionalProperties":false,"description":"The fields to change; omitted fields keep their value"},"KeyRulesInput":{"type":"object","properties":{"endpoints":{"default":{"mode":"all"},"description":"Endpoints the key reads through: every one, or only those listed","oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"all"}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","const":"only"},"ids":{"maxItems":256,"type":"array","items":{"type":"string"}}},"required":["mode","ids"]}]},"ips":{"default":[],"description":"IPv4 addresses or CIDR ranges requests may come from; empty allows any","maxItems":256,"type":"array","items":{"type":"string"}},"origins":{"default":[],"description":"Web origins requests may carry; empty allows any","maxItems":256,"type":"array","items":{"type":"string"}},"methods":{"default":{"mode":"all","list":[]},"description":"JSON-RPC methods allowed or refused","type":"object","properties":{"mode":{"type":"string","enum":["all","allow","deny"]},"list":{"default":[],"maxItems":256,"type":"array","items":{"type":"string"}}},"required":["mode"]}},"description":"Rules for a key's read products; a request must also pass the endpoint's own"},"DomainCreate":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?!.*\\.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])?$"},"target":{"type":"string","enum":["sol","fra","ams","lon","nyc","lax","tyo"]}},"required":["hostname","target"],"additionalProperties":false},"CustomerKeyCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"customer_ref":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"CustomerKeyPatch":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"customer_ref":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]}},"additionalProperties":false},"ApiKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"created_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"paused_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}],"description":"When the key was paused; null when not paused","readOnly":true},"revoked":{"type":"boolean"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"rules":{"$ref":"#/components/schemas/KeyRules"},"send":{"anyOf":[{"type":"object","properties":{"rate_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"min_tip_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rate_per_second","min_tip_lamports"],"additionalProperties":false},{"type":"null"}],"description":"The key's sending settings; null without the `send` product"}},"required":["id","name","products","created_at","expires_at","paused_at","revoked","revoked_at","rules","send"],"additionalProperties":false},"KeyCreated":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/ApiKey"},"secret":{"type":"string","description":"The key's secret, returned once and never again"}},"required":["key","secret"],"additionalProperties":false},"KeyPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"additionalProperties":false},"CustomerKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"created_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"paused_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}],"description":"When the key was paused; null when not paused","readOnly":true},"revoked":{"type":"boolean"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"rules":{"$ref":"#/components/schemas/KeyRules"},"send":{"anyOf":[{"type":"object","properties":{"rate_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"min_tip_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rate_per_second","min_tip_lamports"],"additionalProperties":false},{"type":"null"}],"description":"The key's sending settings; null without the `send` product"},"customer_ref":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]}},"required":["id","name","products","created_at","expires_at","paused_at","revoked","revoked_at","rules","send","customer_ref"],"additionalProperties":false},"CustomerKeyCreated":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomerKey"},"secret":{"type":"string","description":"The key's secret, returned once and never again"}},"required":["key","secret"],"additionalProperties":false},"CustomerKeyPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerKey"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"additionalProperties":false},"CustomerKeyStats":{"type":"object","properties":{"key_id":{"type":"string"},"window":{"type":"string","enum":["24h","7d","30d"]},"transactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed_rate":{"type":["number","null"]},"p50_slots_to_land":{"type":["number","null"]},"tips_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tips of successfully executed transactions as a SOL value: lamports plus token tips at their SOL value when sent"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]}},"required":["key_id","window","transactions","landed_rate","p50_slots_to_land","tips_lamports","last_seen_at"],"additionalProperties":false},"CustomerUsagePage":{"type":"object","properties":{"window":{"type":"string","enum":["24h","7d","30d"]},"data":{"type":"array","items":{"type":"object","properties":{"transactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed_rate":{"type":["number","null"]},"p50_slots_to_land":{"type":["number","null"]},"tips_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tips of successfully executed transactions as a SOL value: lamports plus token tips at their SOL value when sent"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"customer_ref":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"live_keys":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["transactions","landed_rate","p50_slots_to_land","tips_lamports","last_seen_at","customer_ref","live_keys"],"additionalProperties":false}}},"required":["window","data"],"additionalProperties":false},"KeyRules":{"type":"object","properties":{"endpoints":{"default":{"mode":"all"},"description":"Endpoints the key reads through: every one, or only those listed","oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"all"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"only"},"ids":{"maxItems":256,"type":"array","items":{"type":"string"}}},"required":["mode","ids"],"additionalProperties":false}]},"ips":{"default":[],"description":"IPv4 addresses or CIDR ranges requests may come from; empty allows any","maxItems":256,"type":"array","items":{"type":"string"}},"origins":{"default":[],"description":"Web origins requests may carry; empty allows any","maxItems":256,"type":"array","items":{"type":"string"}},"methods":{"default":{"mode":"all","list":[]},"description":"JSON-RPC methods allowed or refused","type":"object","properties":{"mode":{"type":"string","enum":["all","allow","deny"]},"list":{"default":[],"maxItems":256,"type":"array","items":{"type":"string"}}},"required":["mode","list"],"additionalProperties":false}},"required":["endpoints","ips","origins","methods"],"additionalProperties":false,"description":"Rules for a key's read products; a request must also pass the endpoint's own"},"KeyStats":{"type":"object","properties":{"key_id":{"type":"string"},"window":{"type":"string","const":"24h"},"transactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed_rate":{"type":["number","null"]},"p50_slots_to_land":{"type":["number","null"]},"tips_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tips of successfully executed transactions as a SOL value: lamports plus token tips at their SOL value when sent"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]}},"required":["key_id","window","transactions","landed_rate","p50_slots_to_land","tips_lamports","last_seen_at"],"additionalProperties":false},"Me":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/Scope"}},"expires_at":{"type":"string","format":"date-time","description":"RFC 3339 time"}},"required":["id","name","scopes","expires_at"],"additionalProperties":false},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"required":["key","team"],"additionalProperties":false},"MetricsText":{"type":"string","description":"Prometheus text exposition 0.0.4; every metric is a gauge with an explicit minute-end millisecond timestamp"},"MetricsSeries":{"type":"object","properties":{"metric":{"type":"string","enum":["transactions","landed_rate","failed_rate","expired_rate","slots_to_land","edge_time","tips","priority_fees"]},"unit":{"type":"string","enum":["transactions","percent","slots","microseconds","lamports"]},"quantile":{"anyOf":[{"type":"number","const":0.5},{"type":"number","const":0.9},{"type":"number","const":0.99}]},"step_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"from":{"type":"string","format":"date-time","description":"RFC 3339 time"},"to":{"type":"string","format":"date-time","description":"RFC 3339 time"},"series":{"type":"array","items":{"type":"object","properties":{"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"points":{"type":"array","items":{"type":"array","prefixItems":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":["number","null"]}],"items":false,"minItems":2,"maxItems":2}}},"required":["labels","points"],"additionalProperties":false}}},"required":["metric","unit","step_seconds","from","to","series"],"additionalProperties":false},"Partner":{"type":"object","properties":{"products":{"type":"array","items":{"type":"string"}},"share_bps":{"type":"integer","minimum":0,"maximum":10000},"tip_account_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"live_tip_account_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"domain_counts":{"type":"object","properties":{"pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"awaiting_dns":{"type":"integer","minimum":0,"maximum":9007199254740991},"active":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["pending","awaiting_dns","active","failed"],"additionalProperties":false}},"required":["products","share_bps","tip_account_count","live_tip_account_count","domain_counts"],"additionalProperties":false},"PartnerDomain":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?!.*\\.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])?$"},"target":{"type":"string","enum":["sol","fra","ams","lon","nyc","lax","tyo"]},"products":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pending","awaiting_dns","active","failed"]},"acme_dns_fulldomain":{"type":["string","null"]},"not_after":{"anyOf":[{"type":"string","format":"date-time","description":"RFC 3339 time"},{"type":"null"}]},"last_error":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","description":"RFC 3339 time"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339 time"},"dns_records":{"type":"array","prefixItems":[{"type":"object","properties":{"type":{"type":"string","const":"CNAME"},"name":{"type":"string"},"value":{"type":["string","null"]}},"required":["type","name","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"CNAME"},"name":{"type":"string"},"value":{"type":["string","null"]}},"required":["type","name","value"],"additionalProperties":false}],"items":false,"minItems":2,"maxItems":2}},"required":["hostname","target","products","status","acme_dns_fulldomain","not_after","last_error","created_at","updated_at","dns_records"],"additionalProperties":false},"PartnerDomainList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerDomain"}}},"required":["data"],"additionalProperties":false},"PartnerTipAccounts":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"A base58 tip-account address"},"status":{"type":"string","enum":["live","pending"],"description":"Use only live tip accounts"}},"required":["address","status"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"Problem":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string","description":"Stable, for programs to branch on"},"detail":{"type":"string"},"request_id":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["title","status","code","detail","request_id"],"additionalProperties":false},"Product":{"type":"string","enum":["send","jsonrpc","ws","grpc","deshred","das","history"],"description":"A product an API key may use. Only `send` is available today."},"Scope":{"type":"string","enum":["keys:read","keys:write","endpoints:read","endpoints:write","usage:read","alerts:read","alerts:write","billing:read","billing:write","team:read","team:write","partner:read","partner:write"]},"Transaction":{"type":"object","properties":{"signature":{"type":"string"},"received_at":{"type":"string","format":"date-time","description":"RFC 3339 time"},"key_id":{"type":"string"},"metro":{"type":"string"},"kind":{"type":"string","enum":["tx","bundle_tx"]},"bundle_id":{"type":["string","null"]},"paths":{"type":"array","items":{"type":"string","enum":["quic","jito","harmonic","dbi","everstake","gbx"]}},"outcome":{"type":"string","enum":["landed","failed","expired"]},"error":{"type":["string","null"]},"sent_slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed_slot":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"slots_to_land":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"tip_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Lamports transferred to tip accounts; token tips are in `token_tips`"},"token_tips":{"type":"array","items":{"type":"object","properties":{"mint":{"type":"string","description":"The base58 token mint"},"symbol":{"type":"string","description":"USDC, USDT or WSOL"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"In the token's base units"}},"required":["mint","symbol","amount"],"additionalProperties":false},"description":"Token transfers to tip accounts' token accounts"},"token_tip_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The token tips' SOL value when sent, in lamports"},"priority_fee_lamports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["signature","received_at","key_id","metro","kind","bundle_id","paths","outcome","error","sent_slot","landed_slot","slots_to_land","tip_lamports","token_tips","token_tip_lamports","priority_fee_lamports"],"additionalProperties":false},"TransactionPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"additionalProperties":false}}},"paths":{"/me":{"get":{"summary":"The key, its team and its scopes","responses":{"200":{"description":"The key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/keys":{"get":{"summary":"The team's API keys","description":"Needs the `keys:read` scope.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page","type":"string","maxLength":512}}],"responses":{"200":{"description":"A page of keys","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyPage"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create an API key","description":"Needs the `keys:write` scope.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Makes a retry return the first response instead of creating another key","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}}},"responses":{"201":{"description":"The key and its secret, shown once","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreated"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/keys/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}],"get":{"summary":"One API key","description":"Needs the `keys:read` scope.","responses":{"200":{"description":"The key","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Change a key's name, products, rules or expiry","description":"Needs the `keys:write` scope.","parameters":[{"name":"If-Match","in":"header","required":false,"description":"Change only the key version last read; a stale validator returns 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyPatch"}}}},"responses":{"200":{"description":"The key as changed","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Revoke an API key","description":"Needs the `keys:write` scope.","parameters":[{"name":"If-Match","in":"header","required":false,"description":"Change only the key version last read; a stale validator returns 412","schema":{"type":"string"}}],"responses":{"200":{"description":"The revoked key","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/keys/{id}/stats":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}],"get":{"summary":"A key's last 24 hours","description":"Needs the `usage:read` scope.","responses":{"200":{"description":"Its figures","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyStats"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/customer-keys":{"get":{"summary":"The partner's customer keys","description":"Needs the `partner:read` scope.","tags":["White label"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page","type":"string","maxLength":512}},{"name":"customer_ref","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"A page of customer keys","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKeyPage"},"example":{"data":[{"id":"key_012345abcdef","name":"Acme production","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":null,"revoked":false,"revoked_at":null,"rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}}],"next_cursor":null}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a customer key","description":"Needs the `partner:write` scope.","tags":["White label"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Makes a retry return the first successful response","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKeyCreate"},"example":{"name":"Acme production","customer_ref":"acme"}}}},"responses":{"201":{"description":"The customer key and its secret, shown once","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKeyCreated"},"example":{"key":{"id":"key_012345abcdef","name":"Acme production","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":null,"revoked":false,"revoked_at":null,"rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}},"secret":"zc_live_example_returned_once"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Tip accounts are not live (`tip_accounts_not_live`), or an idempotency conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/customer-keys/usage":{"get":{"summary":"Customer usage","description":"Needs the `partner:read` scope.","tags":["White label"],"parameters":[{"name":"range","in":"query","required":false,"schema":{"default":"24h","type":"string","enum":["24h","7d","30d"]}},{"name":"customer_ref","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Usage grouped by current customer reference, matching the console","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUsagePage"},"example":{"window":"24h","data":[{"customer_ref":"acme","live_keys":2,"transactions":120,"landed_rate":95,"p50_slots_to_land":1,"tips_lamports":114000000,"last_seen_at":"2026-11-13T12:00:00Z"}]}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/customer-keys/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}],"get":{"summary":"One customer key","description":"Needs the `partner:read` scope.","tags":["White label"],"responses":{"200":{"description":"The customer key","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKey"},"example":{"id":"key_012345abcdef","name":"Acme production","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":null,"revoked":false,"revoked_at":null,"rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Change a customer key's name or customer reference","description":"Needs the `partner:write` scope.","tags":["White label"],"parameters":[{"name":"If-Match","in":"header","required":false,"description":"Change only the key version last read; a stale validator returns 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKeyPatch"},"example":{"name":"Acme sender"}}}},"responses":{"200":{"description":"The customer key as changed","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKey"},"example":{"id":"key_012345abcdef","name":"Acme sender","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":null,"revoked":false,"revoked_at":null,"rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Revoke a customer key","description":"Needs the `partner:write` scope.","tags":["White label"],"parameters":[{"name":"If-Match","in":"header","required":false,"description":"Change only the key version last read; a stale validator returns 412","schema":{"type":"string"}}],"responses":{"200":{"description":"The revoked customer key","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKey"},"example":{"id":"key_012345abcdef","name":"Acme production","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":null,"revoked":true,"revoked_at":"2026-11-13T12:10:00Z","rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/customer-keys/{id}/pause":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}],"post":{"summary":"Pause a customer key","description":"Needs the `partner:write` scope.","tags":["White label"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Makes a retry return the first successful response","schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"If-Match","in":"header","required":false,"description":"Change only the key version last read; a stale validator returns 412","schema":{"type":"string"}}],"responses":{"200":{"description":"The paused customer key","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKey"},"example":{"id":"key_012345abcdef","name":"Acme production","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":"2026-11-13T12:05:00Z","revoked":false,"revoked_at":null,"rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/customer-keys/{id}/resume":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}],"post":{"summary":"Resume a customer key","description":"Needs the `partner:write` scope.","tags":["White label"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Makes a retry return the first successful response","schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"If-Match","in":"header","required":false,"description":"Change only the key version last read; a stale validator returns 412","schema":{"type":"string"}}],"responses":{"200":{"description":"The resumed customer key","headers":{"ETag":{"description":"Strong validator of the returned key state","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKey"},"example":{"id":"key_012345abcdef","name":"Acme production","customer_ref":"acme","products":["send"],"created_at":"2026-11-13T12:00:00Z","expires_at":null,"paused_at":null,"revoked":false,"revoked_at":null,"rules":{"endpoints":{"mode":"all"},"ips":[],"origins":[],"methods":{"mode":"all","list":[]}},"send":{"rate_per_second":15,"min_tip_lamports":1000000}}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/customer-keys/{id}/stats":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}],"get":{"summary":"A customer key's usage","description":"Needs the `partner:read` scope.","tags":["White label"],"parameters":[{"name":"range","in":"query","required":false,"schema":{"default":"24h","type":"string","enum":["24h","7d","30d"]}}],"responses":{"200":{"description":"Usage over 24 hours, 7 days or 30 days","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerKeyStats"},"example":{"key_id":"key_012345abcdef","window":"24h","transactions":120,"landed_rate":95,"p50_slots_to_land":1,"tips_lamports":114000000,"last_seen_at":"2026-11-13T12:00:00Z"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/transactions":{"get":{"summary":"The team's transactions, newest first","description":"Needs the `usage:read` scope.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page","type":"string","maxLength":512}},{"name":"from","in":"query","required":false,"schema":{"description":"RFC 3339; defaults to 24 hours before `to`","type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"description":"RFC 3339; defaults to now","type":"string","format":"date-time"}},{"name":"key_id","in":"query","required":false,"schema":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","enum":["landed","failed","expired"]}}],"responses":{"200":{"description":"A page of transactions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionPage"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/metrics":{"get":{"summary":"Prometheus metrics","description":"Needs `usage:read`. Values cover the minute that ended three minutes ago; late records appear in JSON history. Traffic is best-effort.","responses":{"200":{"description":"Minute gauges with explicit millisecond timestamps; cache hits take no analytics slot","content":{"text/plain; version=0.0.4; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MetricsText"}}},"headers":{"X-Metrics-Cache":{"description":"hit or miss for the team and minute cache","schema":{"enum":["hit","miss"],"type":"string"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/metrics/series":{"get":{"summary":"Metric history","description":"Needs `usage:read`. Read console metric history over up to 90 days, grouped by one dimension; repeat filters to select several values.","parameters":[{"name":"metric","in":"query","required":true,"schema":{"type":"string","enum":["transactions","landed_rate","failed_rate","expired_rate","slots_to_land","edge_time","tips","priority_fees"]}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","enum":["key","metro","outcome","path","source","kind"]}},{"name":"quantile","in":"query","required":false,"schema":{"default":0.5,"anyOf":[{"type":"number","const":0.5},{"type":"number","const":0.9},{"type":"number","const":0.99}]}},{"name":"range","in":"query","required":false,"schema":{"default":"24h","type":"string","enum":["1h","24h","7d","30d"]}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{12}$"},{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^key_[0-9a-f]{12}$"}}]}},{"name":"metro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z]{3}$"},{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z]{3}$"}}]}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["landed","failed","expired"]},{"maxItems":3,"type":"array","items":{"type":"string","enum":["landed","failed","expired"]}}]}}],"responses":{"200":{"description":"Current transaction history, matching the console Metrics page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsSeries"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/partner":{"get":{"summary":"The team's partner settings","description":"Needs the `partner:read` scope.","responses":{"200":{"description":"Products, share, total and live tip-account counts, and domain counts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partner"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/partner/tip-accounts":{"get":{"summary":"The partner's tip accounts","description":"Needs the `partner:read` scope.","responses":{"200":{"description":"Vanity tip accounts with live or pending status; use only live accounts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerTipAccounts"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/domains":{"get":{"summary":"The partner's domains","description":"Needs the `partner:read` scope.","responses":{"200":{"description":"Domains and the DNS records to create","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomainList"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Add a partner domain","description":"Needs the `partner:write` scope.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Makes a retry return the first successful response instead of adding another domain","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCreate"}}}},"responses":{"201":{"description":"The domain and its DNS records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomain"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The team already has this hostname (`hostname_taken`), its 20-domain limit is reached (`domain_limit`), or an idempotency conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/domains/{hostname}":{"parameters":[{"name":"hostname","in":"path","required":true,"schema":{"type":"string","maxLength":253,"pattern":"^(?!.*\\.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])?$"}}],"get":{"summary":"One partner domain","description":"Needs the `partner:read` scope.","responses":{"200":{"description":"The domain and its DNS records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomain"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Remove a partner domain","description":"Needs the `partner:write` scope.","responses":{"200":{"description":"The removed domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomain"}}}},"400":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"A refusal; `code` is stable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}}}