{"openapi":"3.0.1","info":{"title":"API V0","version":"v0","description":"Quicknode Admin API V0","contact":{"name":"Quicknode"}},"paths":{"/v0/account/info":{"get":{"summary":"Retrieves account info for the authenticated API key","tags":["Account"],"description":"返回 API 金鑰所屬帳戶的非敏感性識別資訊","operationId":"accountInfo","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"billing_version":{"type":"string"},"subscription":{"type":"object","properties":{"plan_name":{"type":"string","nullable":true},"status":{"type":"string"},"interval":{"type":"string"}}}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/activity_logs":{"get":{"summary":"List activity log entries","tags":["Activity Logs"],"security":[{"bearerAuth":[]}],"description":"誰對該帳戶進行了哪些變更，按最新至最舊的順序排列。執行者與類型的篩選條件取自 /v0/activity_logs/filters。","operationId":"listActivityLogs","parameters":[{"name":"q","in":"query","required":false,"description":"搜尋描述、endpoint 子網域以及equipe 名稱","schema":{"type":"string"}},{"name":"actor","in":"query","required":false,"description":"使用者 UUID 或 API 金鑰 UUID，如 /v0/activity_logs/filters 所列","schema":{"type":"string"}},{"name":"endpoint_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["endpoint","team","member","role","billing","add_on","api_key"]}},{"name":"from","in":"query","required":false,"schema":{"type":"string"},"description":"ISO 8601 日期或日期時間；若僅標示日期，則指該日的開始時間（UTC）"},{"name":"to","in":"query","required":false,"schema":{"type":"string"},"description":"ISO 8601 日期或日期時間；若僅標示日期，則表示該日結束時（UTC）"},{"name":"limit","in":"query","required":false,"description":"頁面大小，最大 100。預設值為 20。","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"要跳過的條目數量。行走時，新條目會導致頁面跳轉，因此在匯出時，請將 `to` 設定為您開始行走的時間。","schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/activity_log_entry"}},"pagination":{"type":"object","properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["total","limit","offset"]},"error":{"type":"string","nullable":true}},"required":["data","pagination","error"]}}}}}}},"/v0/activity_logs/filters":{"get":{"summary":"List activity log filter values","tags":["Activity Logs"],"security":[{"bearerAuth":[]}],"description":"清單篩選器所接受的行為者與目標類型","operationId":"listActivityLogFilters","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"actors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"type":{"type":"string","enum":["user","api_key"]}}}},"types":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}}}}},"required":["actors","types"]},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/activity_logs/{id}":{"parameters":[{"name":"id","in":"path","schema":{"type":"string","format":"uuid"},"required":true}],"get":{"summary":"Get an activity log entry","tags":["Activity Logs"],"security":[{"bearerAuth":[]}],"operationId":"getActivityLog","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/activity_log_entry"},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/api-credits/{chain}":{"get":{"summary":"Fetch API credits for a chain","tags":["Chains"],"description":"擷取鏈上每個可用方法的 API 信用點數成本，該成本依據呼叫帳戶的計費設定進行定價。此方法接受由 /v0/chains 回傳的鏈代號。","operationId":"apiCredits","parameters":[{"name":"chain","in":"path","description":"由 /v0/chains 回傳的鏈節標記","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/api_credit"}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"404":{"description":"找不到鏈結","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"nullable":true},"error":{"type":"string"}}}}}}}}},"/v0/billing/invoices":{"get":{"summary":"Retrieves list of invoices","tags":["Billing"],"description":"擷取發票清單","operationId":"invoices","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/invoice"}}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/billing/payments":{"get":{"summary":"Retrieves list of payments","tags":["Billing"],"description":"擷取付款清單","operationId":"payments","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"payments":{"type":"array","items":{"$ref":"#/components/schemas/payment"}}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/chains":{"get":{"summary":"Fetch list of chains","tags":["Chains"],"description":"取得一組鏈的清單","operationId":"chains","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/chain"}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/endpoints/{id}/logs":{"get":{"summary":"Gets endpoint logs","tags":["Endpoint Logs"],"description":"擷取特定項目的日誌endpoint","operationId":"getEndpointLogs","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_details","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"next_at","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已成功擷取日誌","content":{"application/json":{"examples":{"logs_response":{"value":{"data":[{"timestamp":"2025-04-29T12:39:25.543Z","method":"eth_sendRawTransaction","network":"xdai","http_method":"POST","status":200,"error_code":null,"url":"/zh-tw","request_id":"fbecafc8-24f6-11f0-b300-484b1a416a3f","details":{"request":"{\"jsonrpc\": \"2.0\", \"method\": \"eth_sendRawTransaction\", \"params\": [\"0x02f9051364824553843b9aca0084ee6b2800839896809469c0669f3b5df0f2e2644f01098b4465f565210180b904a46a761202000000000000000000000000a238cbeb142c10ef7ad8442c6d1f9e89e07e776100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000001e48d80ff0a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000019200552cea7bc33cbbeb9f1d90c1d11d2c6daeffd053000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c44954bbf142be1354a90d0ca1804fa5a595bd660dcee74cd6544b21759a1f5f0f8937efc20000000000000000000000000000000000000000000000000000000000000080000000000000000000000000998defafd094817ef329f6dc79c703f1cf18bc9000000000000000000000000000000000000000000000000000000000000003cf000000000000000000000000000000000000000000000000000000000000002034d4c8c2a0dd1cf3a4e0f93ccf8bd133a5551858eb631c2ffdb498a21b064d3c00694e62bdf7ff510a4ee66662cf4866a961a31653000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000245b34eba00e61d8e891e53169dd53017bf27e85e0e72418fa8bc0198eeb31990dc5d155ec00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001047f3797395663a7e45089db42caf92bb87fc5667dba0720559eb436fb90f946ce55632dbc31613ff37e376\"]","response":"{\"jsonrpc\":\"2.0\",\"result\":\"0x346465fe1518d3a2dc0a45fe51ca3052097397708f242c063c256c13182cf214\",\"id\":0}"}},{"timestamp":"2025-04-29T12:39:15.627Z","method":"eth_call","network":"xdai","http_method":"POST","status":200,"error_code":-32015,"url":"/zh-tw","request_id":"f6038dca-24f6-11f0-b2d8-484b1a416a3f","details":{"request":"{\"jsonrpc\": \"2.0\", \"method\": \"eth_call\", \"params\": [{\"to\": \"0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA\", \"data\": \"0x02a8ca100000000000000000000000000000000000000000000000000000000000000000\"}, \"latest\"], \"id\": 1}","response":"{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32015,\"message\":\"VM execution error.\",\"data\":\"\\u000E\\u0797Y\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\"},\"id\":1}"}}],"next_at":"MTc0NTkzMDM1NTYwOTAwMDAwMHxmNjAwZDgxZS0yNGY2LTExZjAtYjJkNy03OTQwZmE2MDc2NWM="}}}}}},"400":{"description":"參數無效"},"404":{"description":"endpoint 未找到"}}}},"/v0/endpoints/{id}/log_details":{"get":{"summary":"Gets log details","tags":["Endpoint Logs"],"description":"擷取特定日誌條目的詳細資訊","operationId":"getLogDetails","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"request_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已成功擷取日誌詳細資訊","content":{"application/json":{"examples":{"log_details_response":{"value":{"data":{"request":"{\"jsonrpc\": \"2.0\", \"method\": \"eth_call\", \"params\": [{\"to\": \"0x62cCf8eE8756a7c6022C10Cb6Ee167F420d87A25\", \"from\": \"0xcb2434A1732Ed962E0c4232953c13eEe6719fff3\", \"value\": \"0x0\", \"data\": \"0x6a761202000000000000000000000000a238cbeb142c10ef7ad8442c6d1f9e89e07e7761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000c48d80ff0a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007900694e62bdf7ff510a4ee66662cf4866a961a31653000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000245b34eba0fcdeea0990fd076f3cca9061bfebc302e4febc1a6aeb9cc7e10b735424c8bcb50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010426a6e1e913784ae25ea661d0dcb4ce13bbd990693c3ebadb0a8e866afb8b1dd52152d784372b9320a76fa6fdb50f6101072f1f05a788eb4ce71bc90a712552e41ce1b52eb77fb8b95efbeb2511299534e92bd891f9694dc41d669be446411294fd72d8c2056c4f71065d9d9abc0f613eae8f5c36e3df73f1a8d838fb917bd5d39d1b5b2330dd098dd48b43df57dbdb1a8cb4228274062e91e6d4efc51ed2d5d26aaf1f00872cfc79b630ec5adb943fe34491a67bc88b41baf1e7667cc8a49a0acc1d1c97394f2ac9bc249d35e093111f3906f229e57937ce21a4be147f5fe39f2964e05d6d0de3294c642d459cd9aa2cd8e54fe81ae396aaa9c4222c83d6545877c7271c00000000000000000000000000000000000000000000000000000000\"}, \"0x25f68d6\"], \"id\": 321}","response":"{\"jsonrpc\":\"2.0\",\"id\":321,\"error\":{\"code\":3,\"message\":\"execution reverted: GS026\",\"data\":\"0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000054753303236000000000000000000000000000000000000000000000000000000\"}}\\n"}}}}}}},"400":{"description":"Hermes 拒絕非基於時間的 UUID"},"404":{"description":"endpoint 未找到"}}}},"/v0/endpoints/{id}/method-rate-limits":{"get":{"summary":"Gets method rate limits","tags":["Endpoint Rate Limits"],"description":"取得方法的速率限制","operationId":"getMethodRateLimits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已取得端點","content":{"application/json":{"examples":{"rate_limiters_list":{"value":{"data":{"rate_limiters":[{"id":"a1b2c3d4-e5f6-4a5b-9c8d-7e6f5a4b3c2d","interval":"second","methods":["example_method"],"limit_by_ip":false,"rate":10,"status":"enabled","created":"2024-01-01T12:00:00.000000Z"}]},"error":null}}}}}},"404":{"description":"當 `endpoint ` 不存在時，會返回空值"}}},"post":{"summary":"Creates a method rate limit","tags":["Endpoint Rate Limits"],"description":"建立方法速率限制","operationId":"createMethodRateLimit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已建立方法速率限制","content":{"application/json":{"examples":{"example_key":{"value":{"data":{"created":"2024-01-01T12:00:00.000000Z","id":"a1b2c3d4-e5f6-4a5b-9c8d-7e6f5a4b3c2d","interval":"second","methods":["example_method"],"limit_by_ip":true,"rate":10,"status":"enabled"},"error":null}}}}}},"400":{"description":"參數無效"},"404":{"description":"endpoint 未找到"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","enum":["second","minute","day"]},"methods":{"type":"array","items":{"type":"string"}},"rate":{"type":"integer"},"limit_by_ip":{"type":"boolean","description":"將流量限制套用至每個客戶端 IP，而非將整個endpoint 作為整體處理。預設值為 false。"}},"required":["interval","methods","rate"]}}}}}},"/v0/endpoints/{id}/method-rate-limits/{method_rate_limit_id}":{"patch":{"summary":"Updates a method rate limit","tags":["Endpoint Rate Limits"],"description":"更新方法的速率限制","operationId":"updateMethodRateLimit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"method_rate_limit_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"方法速率限制已更新","content":{"application/json":{"examples":{"single_rate_limiter":{"value":{"data":{"created":"2024-01-01T12:00:00.000000Z","id":"a1b2c3d4-e5f6-4a5b-9c8d-7e6f5a4b3c2d","interval":"day","methods":["example_method_1","example_method_2"],"limit_by_ip":false,"rate":30,"status":"enabled"},"error":null}}}}}},"400":{"description":"無效的請求"},"404":{"description":"未找到速率限制"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"methods":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["enabled","disabled"]},"rate":{"type":"integer"},"limit_by_ip":{"type":"boolean","description":"將流量限制套用至每個客戶端 IP，而非將endpoint 視為一個整體"}}}}}}},"delete":{"summary":"Deletes a method rate limit","tags":["Endpoint Rate Limits"],"description":"刪除方法的速率限制","operationId":"deleteMethodRateLimit","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"method_rate_limit_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"方法速率限制已刪除","content":{"application/json":{"examples":{"rate_limiter_deletion":{"value":{"data":"Rate limit deleted successfully","error":null}}}}}},"404":{"description":"找不到方法的速率限制"}}}},"/v0/endpoints/{id}/metrics":{"get":{"summary":"Fetch single metric","tags":["Endpoint Metrics"],"description":"擷取某個endpoint","operationId":"fetchEndpointMetric","parameters":[{"name":"id","in":"path","required":true,"description":"Endpoint ID","schema":{"type":"string"}},{"name":"period","in":"query","schema":{"type":"string","enum":["hour","day","week","month"]},"required":true,"description":"小時、天、週、月"},{"name":"metric","in":"query","schema":{"type":"string","enum":["method_calls_over_time","metered_endpoint_data_over_time","metered_endpoint_credits_over_time","credits_over_time","response_status_over_time","response_status_breakdown","response_time_over_time","method_response_time_max","request_errors_over_time","total_request_errors_over_time"]},"required":true,"description":"method_calls_over_time、metered_endpoint_data_over_time、metered_endpoint_credits_over_time、credits_over_time、response_status_over_time、response_status_breakdown、response_time_over_time、method_response_time_max、request_errors_over_time、total_request_errors_over_time"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_metric"}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/endpoints/{id}/rate-limits":{"get":{"summary":"List endpoint rate limits","tags":["Endpoint Rate Limits"],"description":"回傳目前對endpoint 所實施的速率限制，並附上每個數值的來源。","operationId":"getRateLimits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"傳回的速率限制"},"404":{"description":"Endpoint 未找到"}}},"patch":{"summary":"Update endpoint rate limits (partial)","tags":["Endpoint Rate Limits"],"description":"endpoint 的部分更新——層級速率限制覆寫 (RPS/RPM/RPD)。僅會修改請求正文中包含的桶位，未列出的桶位則維持不變。此操作不具備「透過省略進行清除」的行為。PUT 亦作為此操作的舊版別名而被接受。","operationId":"updateRateLimits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"更新了速率限制"},"400":{"description":"請求錯誤"},"404":{"description":"Endpoint 未找到"},"500":{"description":"伺服器內部錯誤"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","minProperties":1,"properties":{"limit_by_ip":{"type":"boolean","description":"將endpoint 的流量限制套用至每個客戶端 IP，而非整個endpoint 網站。若要維持現狀，請省略此設定。"},"rate_limits":{"type":"object","properties":{"rps":{"type":"integer","minimum":1,"description":"每秒最大請求數。受帳戶方案層級限制。"},"rpm":{"type":"integer","minimum":1,"description":"每分鐘的最大請求數。受帳戶方案層級的限制。"},"rpd":{"type":"integer","minimum":1,"description":"每日最大請求次數。受帳戶方案等級限制。"}},"minProperties":1}}}}}}},"put":{"summary":"Update endpoint rate limits (legacy PUT alias)","tags":["Endpoint Rate Limits"],"description":"已廢棄 — 為維持與現有 API 客戶端的向後相容性而保留。請改用 PATCH /v0/endpoints/{id}/rate-limits。","operationId":"updateRateLimitsLegacyPut","deprecated":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"更新了速率限制"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","minProperties":1,"properties":{"limit_by_ip":{"type":"boolean","description":"將endpoint 的流量限制套用至每個客戶端 IP，而非整個endpoint 網站。若要維持現狀，請省略此設定。"},"rate_limits":{"type":"object","properties":{"rps":{"type":"integer","minimum":1,"description":"每秒最大請求數。受帳戶方案層級限制。"},"rpm":{"type":"integer","minimum":1,"description":"每分鐘的最大請求數。受帳戶方案層級的限制。"},"rpd":{"type":"integer","minimum":1,"description":"每日最大請求次數。受帳戶方案等級限制。"}},"minProperties":1}}}}}}}},"/v0/endpoints/{id}/rate-limits/{override_id}":{"delete":{"summary":"Delete a user-set rate-limit override","tags":["Endpoint Rate Limits"],"description":"刪除由其 UUID 識別的用戶設定速率限制覆寫。該覆寫 ID 會顯示在 GET rate-limits 回應中的 user_override 資料列中。若該 ID 與此endpoint 上的用戶設定覆寫不符，則返回 404 錯誤 — 預設值無法刪除。","operationId":"deleteRateLimitOverride","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"override_id","in":"path","description":"由 GET rate-limits 回應所回傳的、使用者設定的速率限制覆寫項目的 UUID。","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"未找到覆寫函式"}}}},"/v0/endpoints/{id}/security_options":{"get":{"summary":"Gets security options","tags":["Endpoint Security"],"description":"取得某個的保安選項endpoint","operationId":"getSecurityOptions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已取得安全性選項","content":{"application/json":{"examples":{"security_options_list":{"value":{"data":[{"option":"tokens","status":"enabled"},{"option":"referrers","status":"enabled"},{"option":"jwts","status":"enabled"},{"option":"ips","status":"enabled"},{"option":"domainMasks","status":"enabled"},{"option":"hsts","status":"enabled"},{"option":"cors","status":"enabled"},{"option":"requestFilters","status":"enabled"},{"option":"ipCustomHeader","status":"enabled","value":"CF-Connecting-IP"}],"error":null}}}}}},"404":{"description":"endpoint 未找到"}}},"patch":{"summary":"Updates security options","tags":["Endpoint Security"],"description":"更新某項的保安選項endpoint","operationId":"updateSecurityOptions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已更新安全性選項","content":{"application/json":{"examples":{"updated_security_options":{"value":{"data":[{"option":"tokens","status":"enabled"},{"option":"referrers","status":"enabled"},{"option":"jwts","status":"enabled"},{"option":"ips","status":"enabled"},{"option":"domainMasks","status":"enabled"},{"option":"hsts","status":"enabled"},{"option":"cors","status":"enabled"},{"option":"requestFilters","status":"enabled"},{"option":"ipCustomHeader","status":"enabled","value":"CF-Connecting-IP"}],"error":null}}}}}},"400":{"description":"無效的請求"},"404":{"description":"endpoint 未找到"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"options":{"type":"object","properties":{"tokens":{"type":"string","enum":["enabled","disabled"]},"referrers":{"type":"string","enum":["enabled","disabled"]},"jwts":{"type":"string","enum":["enabled","disabled"]},"ips":{"type":"string","enum":["enabled","disabled"]},"domainMasks":{"type":"string","enum":["enabled","disabled"]},"hsts":{"type":"string","enum":["enabled","disabled"]},"cors":{"type":"string","enum":["enabled","disabled"]},"requestFilters":{"type":"string","enum":["enabled","disabled"]},"ipCustomHeader":{"type":"string","enum":["enabled","disabled"]}},"additionalProperties":false}},"required":["options"]}}}}}},"/v0/endpoints/{id}/security/referrers":{"post":{"summary":"Creates a new endpoint referrer","description":"建立一個endpoint 來源網址","operationId":"createReferrer","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已建立引薦來源"},"400":{"description":"缺少引薦來源"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"referrer":{"type":"string"}}}}},"required":true}}},"/v0/endpoints/{id}/security/request_filters":{"get":{"summary":"Lists the request filters for an endpoint","description":"列出方法白名單以及任何自訂的 Quamina 請求過濾器。若請求符合其中至少一項，則該請求將被允許。","operationId":"listRequestFilters","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"pattern":{"type":"object","additionalProperties":true},"method_whitelist":{"type":"boolean"}},"required":["id","pattern","method_whitelist"]}},"error":{"type":"string","nullable":true}}}}}}}},"post":{"summary":"Creates a new endpoint request filter","description":"建立一個endpoint 請求篩選器","operationId":"createRequestFilter","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"缺少方法","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"array","items":{"type":"string"},"description":"用於白名單的的方法名稱陣列"},"pattern":{"type":"object","additionalProperties":true,"description":"用於自訂請求過濾器的 Quamina 模式，用於比對 JSON-RPC 請求正文。請傳送此參數或 method，但請勿同時傳送兩者。"}}}}},"required":true}}},"/v0/endpoints/{id}/security/request_filters/{request_filter_id}":{"put":{"summary":"Updates an existing endpoint request filter","description":"更新endpoint 的請求篩選器","operationId":"updateRequestFilter","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"request_filter_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"成功 - 無內容"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"array","items":{"type":"string"},"description":"用於白名單的的方法名稱陣列"},"pattern":{"type":"object","additionalProperties":true,"description":"用於自訂請求過濾器的 Quamina 模式，用於比對 JSON-RPC 請求正文。請傳送此參數或 method，但請勿同時傳送兩者。"}}}}},"required":true}},"delete":{"summary":"Deletes an existing endpoint request filter","description":"刪除現有的endpoint 請求篩選器","operationId":"deleteRequestFilter","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"request_filter_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"成功 - 無內容"}}}},"/v0/endpoints/{id}/security/tokens":{"post":{"summary":"Creates a new endpoint authentication token","description":"建立一個endpoint 驗證憑證","operationId":"createAuthenticationToken","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/security/ips":{"post":{"summary":"Creates a new endpoint ip","description":"建立一個endpoint IP","operationId":"createIp","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"},"400":{"description":"缺少 IP 位址"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ip":{"type":"string"}}}}},"required":true}}},"/v0/endpoints/{id}/security/domain_masks":{"post":{"summary":"Creates a new endpoint domain_mask","description":"建立一個endpoint 的 domain_mask","operationId":"createDomainMask","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"domain_mask":{"type":"string"}}}}},"required":true}}},"/v0/endpoints/{id}/security/jwts":{"post":{"summary":"Creates a new endpoint jwt","description":"建立一個endpoint JWT","operationId":"createJwt","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"},"400":{"description":"缺少名稱"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"public_key":{"type":"string"},"kid":{"type":"string"},"name":{"type":"string"}}}}},"required":true}}},"/v0/endpoints/{id}/security/jwts/{jwt_id}":{"delete":{"summary":"Deletes an existing endpoint jwt","description":"刪除現有的endpoint JWT","operationId":"deleteJwt","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"jwt_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/security/domain_masks/{domain_mask_id}":{"delete":{"summary":"Deletes an existing endpoint domain_mask","description":"刪除現有的endpoint 網域遮罩","operationId":"deleteDomainMask","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"domain_mask_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/security/referrers/{referrer_id}":{"delete":{"summary":"Deletes an existing endpoint referrer","description":"刪除現有的endpoint 來源連結","operationId":"deleteReferrer","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"referrer_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean"},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/{id}/security/ips/{ip_id}":{"delete":{"summary":"Deletes an existing endpoint ip","description":"刪除現有的endpoint IP 位址","operationId":"deleteIp","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"ip_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean"},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/{id}/security/tokens/{token_id}":{"delete":{"summary":"Deletes an existing endpoint token","description":"刪除現有的endpoint 憑證","operationId":"deleteToken","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"token_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean"},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/{id}/enable_multichain":{"post":{"summary":"Enable multichain for endpoint","description":"啟用多鏈功能","operationId":"enableMultichain","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/disable_multichain":{"post":{"summary":"Disable multichain for endpoint","description":"停用多鏈功能","operationId":"disableMultichain","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/ip_custom_header":{"patch":{"summary":"Updates or creates an IP custom header","description":"建立或更新 IP 自訂標頭","operationId":"createOrUpdateIpCustomHeader","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"header_name":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"header_name":{"type":"string","description":"IP 自訂標頭名稱"}},"required":["header_name"]}}},"required":true}},"delete":{"summary":"Deletes the IP custom header","description":"刪除 IP 自訂標頭","operationId":"deleteIpCustomHeader","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean"},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/{id}/security/client_certs":{"get":{"summary":"Lists the mTLS client certificates for an endpoint","description":"列出endpoint 所接受的客戶端憑證，以及 mTLS 是否已啟用。僅限企業版。","operationId":"listClientCerts","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"certs":{"type":"array","items":{"type":"object","properties":{"fingerprint":{"type":"string"},"subject":{"type":"string"},"issuer":{"type":"string"},"expires_at":{"type":"string"}},"required":["fingerprint","subject","issuer","expires_at"]}}},"required":["enabled","certs"]},"error":{"type":"string","nullable":true}}}}}},"403":{"description":"非企業帳戶","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","nullable":true},"error":{"type":"string"}}}}}}}},"post":{"summary":"Adds an mTLS client certificate to an endpoint","description":"將一個以 PEM 格式編碼的 X.509 憑證新增至endpoint 所接受的清單中。僅限企業版。","operationId":"createClientCert","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"certs":{"type":"array","items":{"type":"object","properties":{"fingerprint":{"type":"string"},"subject":{"type":"string"},"issuer":{"type":"string"},"expires_at":{"type":"string"}},"required":["fingerprint","subject","issuer","expires_at"]}}},"required":["enabled","certs"]},"error":{"type":"string","nullable":true}}}}}},"422":{"description":"憑證無效","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","nullable":true},"error":{"type":"string"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"以 PEM 格式編碼的 X.509 憑證"}},"required":["certificate"]}}},"required":true}},"patch":{"summary":"Enables or disables mTLS for an endpoint","description":"啟用或停用 mTLS。啟用此功能需至少有一份客戶端憑證。僅限企業版。","operationId":"updateClientCerts","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"certs":{"type":"array","items":{"type":"object","properties":{"fingerprint":{"type":"string"},"subject":{"type":"string"},"issuer":{"type":"string"},"expires_at":{"type":"string"}},"required":["fingerprint","subject","issuer","expires_at"]}}},"required":["enabled","certs"]},"error":{"type":"string","nullable":true}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}},"required":true}}},"/v0/endpoints/{id}/security/client_certs/{fingerprint}":{"delete":{"summary":"Removes an mTLS client certificate from an endpoint","description":"移除具有指定 SHA-256 指紋的憑證。移除最後一個憑證將停用 mTLS。僅限企業版。","operationId":"deleteClientCert","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"fingerprint","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"certs":{"type":"array","items":{"type":"object"}}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/{id}/security/method_blacklist":{"get":{"summary":"Lists the blocked methods for an endpoint","description":"列出此endpoint 會拒絕的 RPC 方法。即使某個方法已列入方法白名單，若被封鎖，仍會被拒絕。","operationId":"listMethodBlacklist","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"methods":{"type":"array","items":{"type":"string"}}},"required":["methods"]},"error":{"type":"string","nullable":true}}}}}}}},"put":{"summary":"Replaces the blocked methods for an endpoint","description":"取代被封鎖方法的完整清單。傳送一個空清單即可清除該清單。","operationId":"updateMethodBlacklist","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"methods":{"type":"array","items":{"type":"string"}}},"required":["methods"]},"error":{"type":"string","nullable":true}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"methods":{"type":"array","items":{"type":"string"}}},"required":["methods"]}}},"required":true}}},"/v0/endpoints/{id}/security/range_limits":{"get":{"summary":"Lists the per-method block range limits for an endpoint","description":"列出各方法的最大區塊範圍（例如 eth_getLogs 等方法），以及在該鏈上可設定此限制的方法。設定限制僅會降低執行計畫的預設範圍；絕不會提高該範圍。","operationId":"listRangeLimits","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"limits":{"type":"object","additionalProperties":{"type":"integer"}},"supported_methods":{"type":"array","items":{"type":"string"},"description":"可接受此endpoint 鏈上範圍限制的方法。若鏈上無範圍限制，則此參數為空。"}},"required":["limits","supported_methods"]},"error":{"type":"string","nullable":true}}}}}}}},"put":{"summary":"Replaces the per-method block range limits for an endpoint","description":"將方法名稱與最大區塊範圍的完整映射進行替換。傳送一個空映射即可清除該映射。","operationId":"updateRangeLimits","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"limits":{"type":"object","additionalProperties":{"type":"integer"}},"supported_methods":{"type":"array","items":{"type":"string"},"description":"可接受此endpoint 鏈上範圍限制的方法。若鏈上無範圍限制，則此參數為空。"}},"required":["limits","supported_methods"]},"error":{"type":"string","nullable":true}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"limits":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["limits"]}}},"required":true}}},"/v0/endpoints/{id}/security/blocked_ips":{"get":{"summary":"Lists the blocked IPs and CIDR ranges for an endpoint","description":"列出此endpoint 會拒絕的 IP 位址和 CIDR 範圍，即使它們已列入 IP 白名單亦然。當「ips security」選項啟用時，此阻擋機制將生效。","operationId":"listBlockedIps","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"ip":{"type":"string"}},"required":["id","ip"]}},"error":{"type":"string","nullable":true}}}}}}}},"post":{"summary":"Blocks an IP address or CIDR range","description":"在endpoint 上封鎖某個 IP 位址或 CIDR 範圍。","operationId":"createBlockedIp","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"ip":{"type":"string"}},"required":["id","ip"]},"error":{"type":"string","nullable":true}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ip":{"type":"string","description":"IP 位址或 CIDR 範圍"}},"required":["ip"]}}},"required":true}}},"/v0/endpoints/{id}/security/blocked_ips/{ip_id}":{"delete":{"summary":"Unblocks an IP address or CIDR range","description":"從被封鎖的 IP 清單中移除一項條目。","operationId":"deleteBlockedIp","tags":["Endpoint Security"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"ip_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/tags":{"post":{"summary":"Creates endpoint tag","tags":["Endpoint Tags"],"description":"在一個上建立標籤endpoint","operationId":"createTag","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已建立標籤"},"400":{"description":"請求錯誤"},"404":{"description":"Endpoint 未找到"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"}}}}},"required":true}}},"/v0/endpoints/{id}/tags/{tag_id}":{"delete":{"summary":"Deletes endpoint tag","tags":["Endpoint Tags"],"description":"從一個中刪除標籤endpoint","operationId":"deleteTag","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"標籤已刪除"},"404":{"description":"Endpoint 未找到"}}}},"/v0/endpoints":{"post":{"summary":"Creates a new endpoint","tags":["Endpoints"],"parameters":[],"description":"建立一個endpoint","operationId":"createEndpoint","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/single_endpoint"},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"network":{"type":"string"}}}}},"required":true}},"get":{"summary":"Retrieves endpoints list","tags":["Endpoints"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer"}},{"name":"search","in":"query","required":false,"description":"依子網域或標籤搜尋","schema":{"type":"string"}},{"name":"sort_by","in":"query","required":false,"description":"排序欄位","schema":{"type":"string","enum":["name","status","network","label","tags","usage","created_at"]}},{"name":"sort_direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"networks","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}},"description":"依網路名稱篩選"},{"name":"statuses","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["active","paused"]}},"description":"依狀態篩選"},{"name":"labels","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}},"description":"依標籤篩選"},{"name":"dedicated","in":"query","required":false,"description":"篩選專用終端點","schema":{"type":"boolean"}},{"name":"is_flat_rate","in":"query","required":false,"description":"篩選固定費率終點","schema":{"type":"boolean"}},{"name":"tag_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"tag_labels","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"description":"擷取端點清單。tag_ids 與 tag_labels 互斥。","operationId":"listEndpoints","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/endpoint"},"nullable":true},"pagination":{"type":"object","properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["total","limit","offset"]},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/endpoints/bulk/status":{"post":{"summary":"Bulk update endpoint status","tags":["Endpoints"],"description":"在單次呼叫中暫停或恢復多個終點的狀態。僅限管理員使用。","operationId":"bulkUpdateEndpointStatus","parameters":[],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total":{"type":"integer"},"updated_count":{"type":"integer"},"failed_count":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"success":{"type":"boolean"}},"required":["id","success"]}}},"required":["total","updated_count","failed_count","results"]}},"required":["data"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"Endpoint ID"},"status":{"type":"string","enum":["active","paused"]}},"required":["ids","status"]}}}}}},"/v0/endpoints/bulk/tags":{"post":{"summary":"Bulk add tag to endpoints","tags":["Endpoints"],"description":"透過單一呼叫為多個端點新增標籤。僅限管理員使用。","operationId":"bulkAddTag","parameters":[],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total":{"type":"integer"},"updated_count":{"type":"integer"},"failed_count":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"success":{"type":"boolean"}},"required":["id","success"]}},"tag":{"type":"object","properties":{"tag_id":{"type":"integer"},"label":{"type":"string"}}}},"required":["total","updated_count","failed_count","results","tag"]}},"required":["data"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"Endpoint ID"},"label":{"type":"string","description":"要新增的標籤"}},"required":["ids","label"]}}}}},"delete":{"summary":"Bulk remove tag from endpoints","tags":["Endpoints"],"description":"透過單一呼叫從多個終端點移除標籤。僅限管理員使用。","operationId":"bulkRemoveTag","parameters":[],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total":{"type":"integer"},"updated_count":{"type":"integer"},"failed_count":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"success":{"type":"boolean"}},"required":["id","success"]}}},"required":["total","updated_count","failed_count","results"]}},"required":["data"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"Endpoint ID"},"tag_id":{"type":"integer","description":"要移除的標籤 ID"}},"required":["ids","tag_id"]}}}}}},"/v0/endpoints/{id}/security":{"get":{"summary":"Get endpoint security state","tags":["Endpoints"],"description":"返回完整的安全狀態（憑證、JWT、IP 位址、來源網址、網域遮罩、請求篩選器、選項），而無需擷取完整的endpoint 。","operationId":"getEndpointSecurity","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/endpoint_security"},"error":{"type":"string","nullable":true}}}}}},"404":{"description":"endpoint 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"nullable":true},"error":{"type":"string"}}}}}}}}},"/v0/endpoints/{id}":{"get":{"summary":"Show single endpoint","tags":["Endpoints"],"description":"返回一個endpoint","operationId":"showEndpoint","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/single_endpoint"},"error":{"type":"string","nullable":true}}}}}}}},"patch":{"summary":"Update endpoint","tags":["Endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"description":"更新單曲的標籤endpoint","operationId":"UpdateEndpoint","responses":{"200":{"description":"成功"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"}}}}}}},"delete":{"summary":"Delete endpoint","tags":["Endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"description":"刪除一項endpoint","operationId":"archiveEndpoint","responses":{"200":{"description":"成功"}}}},"/v0/endpoints/{id}/status":{"patch":{"summary":"Update endpoint status","tags":["Endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"description":"暫停或啟用一個endpoint","operationId":"UpdateEndpointStatus","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"驗證錯誤","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"]}},"required":["status"]}}}}}},"/v0/endpoints/{id}/urls":{"get":{"summary":"Get endpoint URLs","tags":["Endpoints"],"description":"回傳endpoint 的 HTTP/WSS URL，以及多鏈端點的 multichain_urls。","operationId":"showEndpointUrls","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/endpoint_urls"},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/metrics":{"get":{"summary":"Fetch account-level metrics","tags":["Account Metrics"],"description":"擷取某個帳戶所有端點的彙總指標","operationId":"fetchAccountMetrics","parameters":[{"name":"period","in":"query","schema":{"type":"string","enum":["hour","day","week","month"]},"required":true,"description":"小時、天、週、月"},{"name":"metric","in":"query","schema":{"type":"string","enum":["method_calls_over_time","metered_endpoint_data_over_time","metered_endpoint_credits_over_time","credits_over_time"]},"required":true,"description":"method_calls_over_time、metered_endpoint_data_over_time、metered_endpoint_credits_over_time、credits_over_time"},{"name":"percentile","in":"query","required":false,"description":"響應時間指標的百分位數","schema":{"type":"string"}}],"responses":{"200":{"description":"credits_over_time 指標","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_metric"}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/usage/credits/summary":{"get":{"summary":"Retrieves usage/credits summary","tags":["Observability"],"operationId":"usage_creditsSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["credits"],"properties":{"credits":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["credits"],"properties":{"credits":{"type":"number"}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/usage/rpc/summary":{"get":{"summary":"Retrieves usage/rpc summary","tags":["Observability"],"operationId":"usage_rpcSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false},{"name":"group_by[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["method","endpoint","chain","network"]}}},{"name":"endpoint_names[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"chains[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"networks[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"methods[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"tag_ids[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"addon_ids[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["requests","bytes","rpc_credits","data_credits","credits"],"properties":{"requests":{"type":"number","description":"透過儀表板的「流量計費規則」統計請求次數。不包含不適用請求計費的使用情形。"},"bytes":{"type":"number"},"rpc_credits":{"type":"number"},"data_credits":{"type":"number"},"credits":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["requests","bytes","rpc_credits","data_credits","credits"],"properties":{"requests":{"type":"number","nullable":true,"description":"請求次數；若此群組無適用之請求次數（包含僅傳輸資料的使用量），則顯示為 null。"},"bytes":{"type":"number"},"rpc_credits":{"type":"number"},"data_credits":{"type":"number"},"credits":{"type":"number"},"method":{"type":"string","nullable":true},"endpoint":{"type":"integer","nullable":true},"chain":{"type":"string","nullable":true},"network":{"type":"string","nullable":true}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/usage/streams/summary":{"get":{"summary":"Retrieves usage/streams summary","tags":["Observability"],"operationId":"usage_streamsSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false},{"name":"group_by[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["stream"]}}},{"name":"stream_id","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["blocks","bytes","block_credits"],"properties":{"blocks":{"type":"number"},"bytes":{"type":"number"},"block_credits":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["blocks","bytes","block_credits"],"properties":{"blocks":{"type":"number"},"bytes":{"type":"number"},"block_credits":{"type":"number"},"stream":{"type":"string","nullable":true}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/usage/webhooks/summary":{"get":{"summary":"Retrieves usage/webhooks summary","tags":["Observability"],"operationId":"usage_webhooksSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false},{"name":"group_by[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["webhook"]}}},{"name":"webhook_id","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["deliveries","credits"],"properties":{"deliveries":{"type":"number"},"credits":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["deliveries","credits"],"properties":{"deliveries":{"type":"number"},"credits":{"type":"number"},"webhook":{"type":"string","nullable":true}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/metrics/traffic/summary":{"get":{"summary":"Retrieves metrics/traffic summary","tags":["Observability"],"operationId":"metrics_trafficSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false},{"name":"group_by[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["method","endpoint"]}}},{"name":"endpoint_names[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"chains[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"networks[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"methods[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"tag_ids[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"addon_ids[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["successful_requests","bytes","request_credits","bytes_credits","credits","active_methods"],"properties":{"successful_requests":{"type":"number","description":"透過儀表板的「流量計費規則」統計請求次數。不包含不適用請求計費的使用情形。"},"bytes":{"type":"number"},"request_credits":{"type":"number"},"bytes_credits":{"type":"number"},"credits":{"type":"number"},"active_methods":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["successful_requests","bytes","request_credits","bytes_credits","credits","active_methods"],"properties":{"successful_requests":{"type":"number","nullable":true,"description":"請求次數；若此群組無適用之請求次數（包含僅傳輸資料的使用量），則顯示為 null。"},"bytes":{"type":"number"},"request_credits":{"type":"number"},"bytes_credits":{"type":"number"},"credits":{"type":"number"},"active_methods":{"type":"number"},"method":{"type":"string","nullable":true},"endpoint":{"type":"integer","nullable":true}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/metrics/errors/summary":{"get":{"summary":"Retrieves metrics/errors summary","tags":["Observability"],"operationId":"metrics_errorsSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false},{"name":"group_by[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["code","endpoint","network","method"]}}},{"name":"endpoints[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"networks[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"methods[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"codes[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"status_codes[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["rpc_errors","http_errors"],"properties":{"rpc_errors":{"type":"number"},"http_errors":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["kind","count"],"properties":{"kind":{"type":"string","enum":["rpc","http"]},"count":{"type":"number"},"code":{"type":"string","nullable":true},"endpoint":{"type":"integer","nullable":true},"network":{"type":"string","nullable":true},"method":{"type":"string","nullable":true}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/endpoints/{id}/metrics/errors/summary":{"get":{"summary":"Retrieves endpoints/{id}/metrics/errors summary","tags":["Observability"],"operationId":"endpoints__id__metrics_errorsSummary","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。請提供 90 天保留期間內的「起始」或「結束」時間（格式為姓氏或 ISO 8601 格式）。細項分項採用聯合群組與游標分頁；總計涵蓋整個保留期間。錯誤訊息會分別以數字形式顯示 RPC 與 HTTP 的計數，這些數字可能包含小數。 方法錯誤需設定 kind=rpc。摘要從/到報告會顯示擴展的計費區間：分鐘（上限 61 分鐘）、小時（上限 25 小時），以及天（針對更長的請求時長）。信用額度會保留起始時間並四捨五入至下一整小時。若輸入明確的未來時間，或擴展的起始時間超出保留期間，將返回 400 錯誤。四捨五入後的結束時間可能位於未來；當前區間尚不完整且可能變動。","parameters":[{"name":"last","in":"query","schema":{"type":"string","example":"1h"},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","default":100,"maximum":1000},"required":false},{"name":"group_by[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["code","network","method"]}}},{"name":"networks[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"methods[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"codes[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"status_codes[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"摘要","content":{"application/json":{"schema":{"type":"object","required":["data","error"],"properties":{"data":{"type":"object","required":["from","to","totals"],"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","required":["rpc_errors","http_errors"],"properties":{"rpc_errors":{"type":"number"},"http_errors":{"type":"number"}}},"breakdown":{"type":"array","items":{"type":"object","required":["kind","count"],"properties":{"kind":{"type":"string","enum":["rpc","http"]},"count":{"type":"number"},"code":{"type":"string","nullable":true},"network":{"type":"string","nullable":true},"method":{"type":"string","nullable":true}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"範圍、分組、篩選條件或游標無效"}}}},"/v0/transactions":{"get":{"summary":"Lists retained transactions","tags":["Observability"],"operationId":"observabilityTransactions","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。交易依最新至最舊的順序排列。游標會保留已解析的視窗。","parameters":[{"name":"last","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"network","in":"query","required":false,"schema":{"type":"string"}},{"name":"method","in":"query","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"transaction_hash","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"endpoints[]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"maximum":1000}}],"responses":{"200":{"description":"交易","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"transactions":{"type":"array","items":{"type":"object","required":["network","transaction_hash","first_submitted_at","last_submitted_at","attempt_count","endpoint_ids","methods","archive","height","state"],"properties":{"network":{"type":"string"},"transaction_hash":{"type":"string"},"first_submitted_at":{"type":"string","format":"date-time"},"last_submitted_at":{"type":"string","format":"date-time"},"attempt_count":{"type":"integer","minimum":0},"endpoint_ids":{"type":"array","items":{"type":"integer","nullable":true}},"methods":{"type":"array","items":{"type":"string"}},"archive":{"type":"boolean"},"height":{"type":"string","nullable":true,"pattern":"^-?[0-9]+$","description":"需保留精度的十進位字串"},"state":{"type":"string","enum":["submitted","succeeded","failed"]}}}},"next_cursor":{"type":"string"}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/transactions/{network}/{hash}":{"get":{"summary":"Retrieves retained transaction attempts","tags":["Observability"],"operationId":"observabilityTransaction","description":"需具備企業帳戶，或擁有有效的「企業版」或「企業版 PoC」訂閱。系統僅會回傳處於 90 天保留期內的嘗試紀錄及可選載荷。","parameters":[{"name":"network","in":"path","required":true,"schema":{"type":"string"}},{"name":"hash","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_payloads","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"交易明細（若無則 `exists=false`）","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["exists","data"],"properties":{"exists":{"type":"boolean"},"data":{"type":"object","nullable":true,"required":["network","transaction_hash","first_submitted_at","last_submitted_at","state","attempts"],"properties":{"network":{"type":"string"},"transaction_hash":{"type":"string"},"first_submitted_at":{"type":"string","format":"date-time"},"last_submitted_at":{"type":"string","format":"date-time"},"attempt_count":{"type":"integer","minimum":0},"endpoint_ids":{"type":"array","items":{"type":"integer","nullable":true}},"methods":{"type":"array","items":{"type":"string"}},"archive":{"type":"boolean"},"height":{"type":"string","nullable":true,"pattern":"^-?[0-9]+$","description":"需保留精度的十進位字串"},"state":{"type":"string","enum":["submitted","succeeded","failed"]},"attempts":{"type":"array","items":{"type":"object","required":["submitted_at","endpoint_id","method","request_id"],"properties":{"submitted_at":{"type":"string","format":"date-time"},"endpoint_id":{"type":"integer"},"method":{"type":"string"},"request_id":{"type":"string","format":"uuid"},"payloads":{"type":"object","description":"僅在 include_payloads=true 且有可用載荷時顯示","properties":{"request":{"type":"string","nullable":true},"response":{"type":"string","nullable":true}}}}}}}}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/tags":{"get":{"summary":"List account tags","tags":["Tags"],"description":"返回所有帳戶層級的標籤，包括那些端點數為零的標籤。此功能僅限 Build/Growth+ 級別以上使用。","operationId":"listTags","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"usage_count":{"type":"integer","description":"使用此標籤的終點數量"}},"required":["id","label","usage_count"]}}}},"error":{"type":"string","nullable":true}}}}}}}}},"/v0/endpoints/tags/{id}":{"patch":{"summary":"Rename a tag","tags":["Tags"],"description":"重新命名帳戶標籤。由於該標籤在各端點間共享，所有相關聯的端點將立即反映新的標籤。僅限管理員操作。","operationId":"renameTag","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"usage_count":{"type":"integer"}}},"error":{"type":"string","nullable":true}}}}}},"404":{"description":"找不到該標籤","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"nullable":true},"error":{"type":"string"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"]}}}}},"delete":{"summary":"Delete a tag","tags":["Tags"],"description":"刪除一個帳戶標籤。若該標籤仍指派給任何端點，則會發生嚴重錯誤——請先將其從所有端點中移除。僅限管理員操作。","operationId":"deleteTag","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"該標籤仍在使用中","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"nullable":true},"error":{"type":"string"}}}}}},"404":{"description":"找不到該標籤","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"nullable":true},"error":{"type":"string"}}}}}}}}},"/v0/teams/{id}/endpoints":{"parameters":[{"name":"id","in":"path","description":"equipe ID","required":true,"schema":{"type":"integer"}}],"get":{"summary":"List endpoints accessible to this team","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"擷取已指派給此equipe 的端點，以及未指派的端點（所有人都可存取）","operationId":"listTeamEndpoints","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"subdomain":{"type":"string"},"chain":{"type":"string","nullable":true},"network":{"type":"string","nullable":true}}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"404":{"description":"equipe 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}}},"patch":{"summary":"Update endpoints assigned to a team","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"更新哪些端點已指派給此項目equipe","operationId":"updateTeamEndpoints","parameters":[],"responses":{"200":{"description":"作業已成功更新","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"404":{"description":"equipe 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint_ids":{"type":"array","items":{"type":"string"}}},"required":["endpoint_ids"]}}}}}},"/v0/teams/{id}/members":{"parameters":[{"name":"id","in":"path","description":"equipe ID","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Invite a user to a team","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"邀請新使用者或將現有使用者新增至equipe 。對於新使用者，必須填寫 full_name 和 role；對於現有使用者，則只需填寫 email 即可。","operationId":"inviteTeamMember","parameters":[],"responses":{"200":{"description":"將現有使用者新增至equipe","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"full_name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","nullable":true},"status":{"type":"string"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"已達到最大使用者數","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}},"404":{"description":"equipe 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"full_name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","viewer","billing"]}},"required":["email"]}}}}}},"/v0/teams/{id}/members/{user_id}":{"parameters":[{"name":"id","in":"path","description":"equipe ID","required":true,"schema":{"type":"integer"}},{"name":"user_id","in":"path","description":"使用者 ID","required":true,"schema":{"type":"integer"}}],"delete":{"summary":"Remove a user from a team","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"將使用者從「equipe 」中移除，或從該帳戶中刪除該使用者","operationId":"removeTeamMember","parameters":[],"responses":{"200":{"description":"已成功移除該使用者","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"message":{"type":"string"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"無法移除主要使用者","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}},"404":{"description":"找不到該使用者","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"destroy_user":{"type":"boolean","default":false}}}}}}}},"/v0/teams/{id}/members/{user_id}/resend_invite":{"parameters":[{"name":"id","in":"path","description":"equipe ID","required":true,"schema":{"type":"integer"}},{"name":"user_id","in":"path","description":"使用者 ID","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Resend invitation to a pending user","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"重新寄送邀請電子郵件給狀態為「待處理」的用戶","operationId":"resendTeamInvite","responses":{"200":{"description":"邀請已成功重新發送","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"message":{"type":"string"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"使用者未處於待處理狀態equipe","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}},"404":{"description":"equipe 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}}}},"/v0/teams":{"get":{"summary":"List all teams","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"擷取該帳戶的所有團隊清單","operationId":"listTeams","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"members_count":{"type":"integer"},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"full_name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","nullable":true},"created_at":{"type":"string"},"status":{"type":"string"},"photo_url":{"type":"string"}}}}}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}},"post":{"summary":"Create a new team","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"為該帳戶建立一個新的「equipe 」","operationId":"createTeam","parameters":[],"responses":{"200":{"description":"equipe 已成功建立","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"default_role":{"type":"string"},"members_count":{"type":"integer"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"請求錯誤 -equipe 名稱無效","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":4}},"required":["name"]}}}}}},"/v0/teams/{id}":{"parameters":[{"name":"id","in":"path","description":"equipe ID","required":true,"schema":{"type":"integer"}}],"get":{"summary":"Show team details","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"檢索有關特定項目的詳細資訊equipe","operationId":"getTeam","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"default_role":{"type":"string"},"members_count":{"type":"integer"},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"full_name":{"type":"string"},"email":{"type":"string"},"created_at":{"type":"string"},"role":{"type":"string","nullable":true},"status":{"type":"string"},"photo_url":{"type":"string"},"account_primary_user":{"type":"boolean"}}}},"pending_invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"full_name":{"type":"string"},"email":{"type":"string"},"created_at":{"type":"string"},"role":{"type":"string","nullable":true},"status":{"type":"string"},"photo_url":{"type":"string"},"account_primary_user":{"type":"boolean"}}}}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"404":{"description":"equipe 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}}},"delete":{"summary":"Delete an empty team","tags":["Teams"],"security":[{"bearerAuth":[]}],"description":"刪除一個沒有成員的equipe","operationId":"deleteTeam","responses":{"200":{"description":"equipe 已成功刪除","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"message":{"type":"string"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"equipe 有成員","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}},"404":{"description":"equipe 未找到","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","nullable":true},"error":{"type":"string"}},"required":["data","error"]}}}}}}},"/v0/tooling-access":{"get":{"summary":"Fetch Tooling Access status","tags":["Tooling Access"],"description":"回傳該帳戶是否已啟用「工具存取權限」。","operationId":"toolingAccessShow","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"endpoint_id":{"type":"integer","nullable":true},"endpoint_url":{"type":"string","nullable":true},"enabled_at":{"type":"string","nullable":true}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}},"patch":{"summary":"Enable or disable Tooling Access","tags":["Tooling Access"],"description":"啟用（配置／重新啟用）或停用該帳戶的工具存取權限。","operationId":"toolingAccessUpdate","parameters":[],"responses":{"200":{"description":"已啟用","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"endpoint_url":{"type":"string","nullable":true}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v0/tooling-access/token":{"post":{"summary":"Mint a short-lived session JWT","tags":["Tooling Access"],"description":"產生一個短效期的 ES256 JWT，用於驗證資料層 RPC 呼叫的身份。","operationId":"toolingAccessToken","responses":{"200":{"description":"代幣已鑄造","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"endpoint_url":{"type":"string"},"token":{"type":"string"},"expires_at":{"type":"string"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}}}}},"/v0/usage/rpc":{"get":{"summary":"Retrieves usage total for specified time range","tags":["Usage"],"description":"若未提供 start_time 或 end_time，則採用當前計費週期，並回傳該週期剩餘的額度。若遺漏其中一個時間點，則以提供的時間點為準：若未提供 start_time，則預設為當前週期的起始時間；若未提供 end_time，則預設為當前時間。","operationId":"usage","parameters":[{"name":"start_time","in":"query","description":"開始時間","required":false,"schema":{"type":"integer"}},{"name":"end_time","in":"query","description":"結束時間","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"credits_used":{"type":"integer"},"credits_remaining":{"type":"integer","nullable":true},"limit":{"type":"integer","nullable":true},"overages":{"type":"integer","nullable":true},"start_time":{"type":"integer","format":"timestamp"},"end_time":{"type":"integer","format":"timestamp"}},"required":["credits_used","start_time","end_time"]},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"時間範圍無效"}}}},"/v0/usage/rpc/by-tag":{"get":{"summary":"Retrieves usage data grouped by tag","tags":["Usage"],"description":"按每個帳戶標籤彙總計費項目與請求。其中包含一個「未標籤」類別，用於沒有標籤的端點。","operationId":"usageByTag","parameters":[{"name":"start_time","in":"query","description":"開始時間（Unix 時間戳記）","required":false,"schema":{"type":"integer"}},{"name":"end_time","in":"query","description":"結束時間（Unix 時間戳記）","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"tag_id":{"type":"integer","nullable":true,"description":"未標記的桶為 null"},"label":{"type":"string"},"credits_used":{"type":"integer"},"rpc_credits":{"type":"integer"},"data_credits":{"type":"integer"},"bytes":{"type":"integer"},"requests":{"type":"integer"}},"required":["tag_id","label","credits_used","requests"]}},"start_time":{"type":"integer","format":"timestamp"},"end_time":{"type":"integer","format":"timestamp"}},"required":["tags","start_time","end_time"]},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"時間範圍無效"}}}},"/v0/usage/rpc/by-endpoint":{"get":{"summary":"Retrieves usage data by endpoint","tags":["Usage"],"description":"透過以下方式擷取使用情況資料：endpoint","operationId":"usageByEndpoint","parameters":[{"name":"start_time","in":"query","description":"開始時間","required":false,"schema":{"type":"integer"}},{"name":"end_time","in":"query","description":"結束時間","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"endpoints":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_usage"}},"start_time":{"type":"integer","format":"timestamp"},"end_time":{"type":"integer","format":"timestamp"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"時間範圍無效"}}}},"/v0/usage/rpc/by-method":{"get":{"summary":"Retrieves usage data grouped by method","tags":["Usage"],"description":"擷取按方法分組的使用情況資料","operationId":"usageByMethod","parameters":[{"name":"start_time","in":"query","description":"開始時間","required":false,"schema":{"type":"integer"}},{"name":"end_time","in":"query","description":"結束時間","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"methods":{"type":"array","items":{"$ref":"#/components/schemas/method_usage_by_method"}},"start_time":{"type":"integer","format":"timestamp"},"end_time":{"type":"integer","format":"timestamp"}}},"error":{"type":"string","nullable":true}}}}}},"400":{"description":"時間範圍無效"}}}},"/v0/usage/rpc/by-chain":{"get":{"summary":"Retrieves usage data by chain","tags":["Usage"],"description":"依鏈索取使用情況資料","operationId":"usageByChain","parameters":[{"name":"start_time","in":"query","description":"開始時間","required":false,"schema":{"type":"integer"}},{"name":"end_time","in":"query","description":"結束時間","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"chains":{"type":"array","items":{"$ref":"#/components/schemas/chain_usage"}},"start_time":{"type":"integer","format":"timestamp"},"end_time":{"type":"integer","format":"timestamp"}}},"error":{"type":"string","nullable":true}},"required":["data","error"]}}}},"400":{"description":"時間範圍無效"}}}}},"servers":[{"url":"https://api.quicknode.com"}],"tags":[{"name":"Usage"},{"name":"Endpoints"},{"name":"Chains"},{"name":"Endpoint Security"},{"name":"Billing"},{"name":"Endpoint Rate Limits"},{"name":"Endpoint Metrics"},{"name":"Activity Logs"}],"components":{"securitySchemes":{"bearer_auth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"api_key":{"type":"apiKey","name":"x-api-key","in":"header"}},"schemas":{"chain":{"type":"object","properties":{"slug":{"type":"string"},"networks":{"type":"array","items":{"$ref":"#/components/schemas/network"}},"is_select_chain":{"type":"boolean"}}},"activity_log_entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"occurred_at":{"type":"string","format":"date-time"},"action":{"type":"string","example":"created"},"description":{"type":"string","nullable":true},"target":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","nullable":true,"example":"endpoint"},"label":{"type":"string"},"name":{"type":"string","nullable":true}},"required":["id","kind","label","name"]},"actor":{"type":"object","properties":{"id":{"type":"string","nullable":true,"description":"User uuid or API key uuid; null for Quicknode and deleted users"},"type":{"type":"string","enum":["user","api_key","quicknode","deleted_user"]},"name":{"type":"string","nullable":true,"description":"Member name or Quicknode; null for API keys"},"email":{"type":"string","nullable":true}},"required":["id","type","name","email"]}},"required":["id","occurred_at","action","description","target","actor"]},"api_credit":{"type":"object","properties":{"method":{"type":"string"},"credits":{"type":"integer"}},"required":["method","credits"]},"network":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"chain_id":{"type":"integer","nullable":true}}},"chain_usage":{"type":"object","properties":{"name":{"type":"string"},"credits_used":{"type":"integer"},"rpc_credits":{"type":"integer"},"data_credits":{"type":"integer"},"bytes":{"type":"integer"}}},"endpoint_usage":{"type":"object","properties":{"name":{"type":"string"},"chain":{"type":"string"},"network":{"type":"string"},"status":{"type":"string"},"credits_used":{"type":"integer"},"rpc_credits":{"type":"integer"},"data_credits":{"type":"integer"},"bytes":{"type":"integer"},"label":{"type":"string","nullable":true},"methods_breakdown":{"type":"array","items":{"$ref":"#/components/schemas/method_usage"}},"requests":{"type":"integer"}}},"method_usage":{"type":"object","properties":{"method_name":{"type":"string"},"credits_used":{"type":"integer"},"bytes":{"type":"integer"},"archive":{"type":"boolean","nullable":true},"network":{"type":"string","nullable":true},"chain":{"type":"string","nullable":true}}},"method_usage_by_method":{"type":"object","properties":{"method_name":{"type":"string"},"credits_used":{"type":"integer"},"archive":{"type":"boolean"},"bytes":{"type":"integer"}}},"endpoint":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"endpoint subdomain"},"label":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","paused"]},"chain":{"type":"string","example":"eth","description":"chain slug"},"network":{"type":"string","example":"mainnet","description":"network slug"},"is_dedicated":{"type":"boolean"},"is_flat_rate":{"type":"boolean"},"http_url":{"type":"string"},"wss_url":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"tag_id":{"type":"integer","nullable":false},"label":{"type":"string","nullable":false}}}},"is_multichain":{"type":"boolean"}},"required":["id","name","status","chain","network","is_dedicated","is_flat_rate","http_url","is_multichain"]},"single_endpoint":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string","nullable":true},"status":{"type":"string"},"chain":{"type":"string","example":"eth","description":"chain slug"},"network":{"type":"string","example":"mainnet","description":"network slug"},"http_url":{"type":"string"},"wss_url":{"type":"string","nullable":true},"security":{"$ref":"#/components/schemas/endpoint_security"},"rate_limits":{"$ref":"#/components/schemas/endpoint_rate_limits"},"tags":{"type":"array","items":{"type":"object","properties":{"tag_id":{"type":"integer","nullable":false},"label":{"type":"string","nullable":false}}}},"is_multichain":{"type":"boolean"}},"required":["id","chain","network","http_url","security","is_multichain"]},"endpoint_urls":{"type":"object","properties":{"http_url":{"type":"string"},"wss_url":{"type":"string","nullable":true},"multichain_urls":{"type":"object","nullable":true,"description":"Map of network name → { http_url, wss_url } for multichain endpoints; null otherwise.","additionalProperties":{"type":"object","properties":{"http_url":{"type":"string"},"wss_url":{"type":"string","nullable":true}},"required":["http_url","wss_url"]}}},"required":["http_url","wss_url","multichain_urls"]},"endpoint_rate_limits":{"type":"object","properties":{"rate_limit_by_ip":{"type":"boolean","nullable":true},"account":{"type":"integer","nullable":true},"rps":{"type":"integer","nullable":true},"rpm":{"type":"integer","nullable":true},"rpd":{"type":"integer","nullable":true}}},"endpoint_security":{"type":"object","properties":{"options":{"type":"object","properties":{"tokens":{"type":"boolean","nullable":true},"jwts":{"type":"boolean","nullable":true},"domainMasks":{"type":"boolean","nullable":true},"ips":{"type":"boolean","nullable":true},"referrers":{"type":"boolean","nullable":true},"requestFilters":{"type":"boolean","nullable":true},"ipCustomHeader":{"type":"object","properties":{"value":{"type":"string","nullable":true}}}}},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_token"}},"jwts":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_jwt"}},"referrers":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_referrer"}},"domain_masks":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_domain_mask"}},"ips":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_ip"}},"blocked_ips":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_ip"}},"request_filters":{"type":"array","items":{"$ref":"#/components/schemas/endpoint_request_filter"}}}},"endpoint_jwt":{"type":"object","properties":{"id":{"type":"string"},"public_key":{"type":"string"},"kid":{"type":"string"},"name":{"type":"string"}}},"endpoint_token":{"type":"object","properties":{"id":{"type":"string"},"token":{"type":"string"}}},"endpoint_referrer":{"type":"object","properties":{"id":{"type":"string"},"referrer":{"type":"string"}}},"endpoint_domain_mask":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"}}},"endpoint_ip":{"type":"object","properties":{"id":{"type":"string"},"ip":{"type":"string"}}},"endpoint_request_filter":{"type":"object","properties":{"id":{"type":"string"},"method":{"type":"array","items":{"type":"string"}},"params":{"type":"object"}}},"invoice":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"billing_reason":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"amount":{"type":"integer"}}}},"amount_due":{"type":"integer"},"amount_paid":{"type":"integer"},"period_start":{"type":"integer"},"period_end":{"type":"integer"},"created":{"type":"integer"},"subtotal":{"type":"integer"}}},"payment":{"type":"object","properties":{"amount":{"type":"string"},"card_last_4":{"type":"string","nullable":true},"created_at":{"type":"string"},"currency":{"type":"string"},"status":{"type":"string"},"marketplace_amount":{"type":"integer","nullable":true}}},"endpoint_metric":{"type":"object","properties":{"data":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"tag":{"type":"string"}}}}},"security":[{"bearer_auth":[]},{"api_key":[]}],"host":"www.quicknode.com"}