{"environment":"prod-global","operations":[{"id":"account_post_b465c762b3fc","service":"account","method":"POST","path":"/account/me/reward-applications","scope":"global","summary":"POST /account/me/reward-applications","request":"Body {campaign_code,title,scenario,content,article_url?,previous_application_id?}. Supply an idempotency_key for one logical submission.","request_body":"json","authenticated":true,"api_key_permission":"manage"},{"id":"account_get_c8c0ec0c9a7f","service":"account","method":"GET","path":"/account/me/reward-applications/{application_id}","scope":"global","summary":"GET /account/me/reward-applications/{application_id}","request":"Path {application_id}; no body. Read an application owned by the current account.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"account_post_e222d46eee5b","service":"account","method":"POST","path":"/account/me/reward-applications/{application_id}/withdraw","scope":"global","summary":"POST /account/me/reward-applications/{application_id}/withdraw","request":"Path {application_id}; no body. Withdraw an owned pending reward application after the human confirms.","request_body":"none","authenticated":true,"api_key_permission":"manage"},{"id":"account_get_dbff9cccb0a3","service":"account","method":"GET","path":"/account/me/reward-records","scope":"global","summary":"GET /account/me/reward-records","request":"Query {cursor?,limit?}. Read the current account reward history.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"account_get_2b66e43458ad","service":"account","method":"GET","path":"/account/me/rewards","scope":"global","summary":"GET /account/me/rewards","request":"No body. Read active reward campaigns, referral information and eligibility from Account.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_545272293690","service":"billing","method":"GET","path":"/billing/me/credit-ledger","summary":"GET /billing/me/credit-ledger","request":"Query {kind?,cursor?,limit?}. Read posted credits ledger; follow the returned cursor.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_20493b6ecb69","service":"billing","method":"GET","path":"/billing/me/credits","summary":"GET /billing/me/credits","request":"No body or query. Read authoritative posted credits and balance.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_6ce37be3d985","service":"billing","method":"GET","path":"/billing/me/purchases","summary":"GET /billing/me/purchases","request":"Query {cursor?,limit?}. Read existing purchases; creating purchases and checkout is browser-only.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_effa482ea9b2","service":"billing","method":"GET","path":"/billing/me/purchases/{purchase_id}","summary":"GET /billing/me/purchases/{purchase_id}","request":"Path {purchase_id}. Read an existing purchase owned by the current account.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_e4ed01510b7f","service":"billing","method":"GET","path":"/billing/me/rates","summary":"GET /billing/me/rates","request":"No body or query. Read current rates for the selected site.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_c5e8cbd986b4","service":"billing","method":"GET","path":"/billing/me/usage","summary":"GET /billing/me/usage","request":"Query {network_id?,path_id?,cursor?,limit?}. Read charged usage records.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_9c0a05bfbc95","service":"billing","method":"GET","path":"/billing/me/usage/daily","summary":"GET /billing/me/usage/daily","request":"Query {from,to,tz?,network_id?}. from/to are Unix seconds; select a valid bounded reporting window.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"billing_get_dff507b7883b","service":"billing","method":"GET","path":"/billing/me/usage/links","summary":"GET /billing/me/usage/links","request":"Query {from,to,network_id?,cursor?,limit?}. from/to are Unix seconds.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_1e36e0fa7c16","service":"controller","method":"GET","path":"/wwnet/app/applications","summary":"Search the platform application catalog to choose destination applications for forwarding rules. Rows carry only names, vendor and the domain count; domain lists are not exposed.","request":"Query: q is optional and matches key, English and Chinese names and vendor as a case-insensitive substring (at most 128 characters); limit defaults to 50 with a maximum of 100; cursor is the next_cursor of the previous page (keyset pagination by key). Alternatively pass only keys (comma-separated catalog keys, at most 256, mutually exclusive with the other three parameters) to read applications by key; the result is not paginated and keys no longer in the catalog are omitted.","request_body":"none","response":"200 OK: list envelope; rows contain key,name_en,name_zh,vendor_en,vendor_zh,domain_count. An empty next_cursor with has_more=false marks the last page.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_586de0ef9923","service":"controller","method":"GET","path":"/wwnet/app/cidr-catalog","summary":"List the platform network catalog used to pick destination networks in forwarding rules.","request":"No parameters.","request_body":"none","response":"200 OK: list envelope; each row has key, kind (country: routed networks by country or region, key is a lowercase ISO 3166-1 alpha-2 code), name_en, name_zh, prefix_count and updated_at; sorted by key, not paginated.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_093ecd917327","service":"controller","method":"GET","path":"/wwnet/app/networks","summary":"List networks owned by the current account.","request":"No request body.","request_body":"none","response":"200 OK: {\"data\":[{\"id\":\"\u003c12-character network_id\u003e\",\"name\":\"...\",\"cidr\":\"10.0.0.0/24\",\"role\":\"owner\",\"client_update_policy\":{\"mode\":\"auto\",\"window\":\"all_day\"}}],\"next_cursor\":\"\",\"has_more\":false}. Each network has one account owner; role is always owner.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_0e8322b6df12","service":"controller","method":"POST","path":"/wwnet/app/networks","summary":"Create a basic network owned by the caller.","request":"JSON body: name (required string, display name); cidr (required valid overlay CIDR). Invalid input returns 400 input.invalid_body.","request_body":"json","response":"200 OK: {\"data\":{\"id\":\"\u003c12-character network_id\u003e\",\"network_id\":\"\u003csame id\u003e\",\"name\":\"...\"}}. Also records the network.created audit event. New networks in dev-cn/dev-global default to immediate/all_day; other environments retain auto/all_day.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_01b8c777d285","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}","summary":"Delete a network and remove its devices. Audit history and existing financial records remain available.","request":"No request body.","request_body":"none","response":"200 OK: {\"data\":{\"id\":\"\u003c12-character network_id\u003e\",\"deleted\":true}}.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_b6eed5e4b2c1","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}","summary":"Read a network owned by the current account.","request":"No request body.","request_body":"none","response":"200 OK: {\"data\":{\"id\":\"\u003c12-character network_id\u003e\",\"name\":\"...\",\"cidr\":\"...\",\"status\":\"active\",\"role\":\"owner\",\"created_at\":0,\"updated_at\":0,\"cloud_relay_tuning\":{},\"client_update_policy\":{\"mode\":\"auto\",\"window\":\"all_day\"}}}. Each network has one account owner.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_a0d1b3ef3c24","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}","summary":"Update network name, Cloud Relay POP tuning or client update policy.","request":"JSON body with at least one field: name (optional string, display name); cloud_relay_tuning (optional object or null, POP probing and switching parameters; null restores defaults); client_update_policy (optional object: mode=immediate|auto|off, window=all_day|night|weekend_night, interpreted in UTC+0); reason (optional note, at most 500 bytes after trimming). Including cidr here returns 400 input.invalid_body; use the dedicated CIDR preview/apply workflow to change the subnet.","request_body":"json","response":"200 OK: the updated network in {\"data\":{...}}.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_d53ae2bbc94a","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/alerts","summary":"List network alert occurrences, distinguishing manual closure from actual recovery.","request":"Query: state=active|ended|all (default active), component=network|device|link|forward|runtime, q, from/to (Unix seconds; alerts overlapping the time window; omitted bounds are unrestricted). No pagination: returns the latest 500; has_more indicates additional omitted records.","request_body":"none","response":"200 OK: {data:{items:[{id:\"A-1\",kind,component,target_id,target_name,evidence,state,started_at,last_seen_at,ended_at,duration_seconds,closed_at,closed_display,closed_reason}],has_more}}. State follows the timestamps. Recovery time is when the condition was observed to end. Overview provides the active alert total.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_b6d85ff0ad29","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/alerts/{alert_id}","summary":"Read a network alert by ID, including recovered or manually closed alerts.","request":"Path alert_id is A-\u003csequence number\u003e; list filters and time windows do not apply.","request_body":"none","response":"200 OK: {data:{id,state,started_at,last_seen_at,ended_at,closed_at,closed_display,closed_reason,...}}, using the alert-list item fields.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_81d5aea3972a","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/alerts/{alert_id}/close","summary":"Manually close an alert. Closure stops pending-action notifications without setting ended_at or inventing recovery. Repeated requests are idempotent.","request":"JSON body: {}. An optional reason note may be supplied (at most 1000 bytes after trimming).","request_body":"json","response":"200 OK: {data:{id,state,started_at,ended_at,closed_at,closed_display,closed_reason,...}}, the updated alert.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_7ab60f77a33f","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/applications","summary":"List network custom applications with the forwarding rules that reference them.","request":"No parameters.","request_body":"none","response":"200 OK: {data:[{id,name,domains:[{type:exact|suffix|regex,value}],cidrs:[cidr],ip_regex:[regex],used_by_rule_ids,updated_at}],next_cursor:\"\",has_more:false}, ordered by name.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_49d88623758b","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/applications","summary":"Create a network custom application; records network_application.created.","request":"JSON body: {name,domains:[{type:exact|suffix|regex,value}],cidrs:[cidr],ip_regex?:[regex]}; at least one domain, CIDR or destination address regex. A domain regex is RE2 syntax, matched against the lowercased name, stored verbatim, and delivered inline with the policy rather than in the .dpi rule set. ip_regex is an RE2 regex over the destination address text (IPv4 dotted decimal, IPv6 compressed lowercase), combined with the CIDRs by OR, stored verbatim, at most 256, delivered inline with the policy. At most 4096 domains and 4096 CIDRs.","request_body":"json","response":"200 OK: {\"data\":{id,name,domains:[{type:exact|suffix|regex,value}],cidrs:[cidr],ip_regex:[regex],used_by_rule_ids,updated_at}}. A duplicate name returns 409 conflict.state with error.details.code=name_taken; invalid input returns 400.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_7c25829c0dda","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/applications/{application_id}","summary":"Delete a network custom application that no forwarding rule references; records network_application.deleted.","request":"No parameters.","request_body":"none","response":"204 No Content. An application still referenced by rules returns 409 conflict.state with error.details.code=in_use and error.details.used_by_rule_ids.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_7ddec7406e43","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/applications/{application_id}","summary":"Read one network custom application.","request":"No parameters.","request_body":"none","response":"200 OK: {\"data\":{id,name,domains:[{type:exact|suffix|regex,value}],cidrs:[cidr],ip_regex:[regex],used_by_rule_ids,updated_at}}.","authenticated":true,"api_key_permission":"read"},{"id":"controller_put_0e0a144e6c5f","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/applications/{application_id}","summary":"Replace a network custom application and recheck the configuration budget of devices that use it; records network_application.updated.","request":"JSON body: the same as creation, optionally with expected_updated_at for optimistic concurrency.","request_body":"json","response":"200 OK: the replacement application. A version conflict returns 409 conflict.version; a duplicate name returns 409 conflict.state; invalid input returns 400; exceeding the budget of a referencing device returns 429.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_b6815e12ca3a","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/audit","summary":"Read the latest 500 network audit events in descending order, without pagination; owner only.","request":"Query: range=live (180 seconds)|1h|12h|24h|7d; missing or invalid range defaults to 24h. Optional exact-match filters: event_kind, account_id (UUID), target_kind, target_id; q searches event_kind, target_kind, payload and actor display. limit and before are not accepted; has_more indicates omitted records and next_cursor is always empty. Only the network owner may query or filter; cross-network requests return 403 perm.forbidden.","request_body":"none","response":"200 OK: {\"data\":[{\"id\":\"\u003cuuid\u003e\",\"account_id\":\"\u003cuuid\u003e\",\"actor_display\":\"o***@example.com\",\"event_kind\":\"device.approved\",\"target_kind\":\"device\",\"target_id\":\"\u003cdevice_id\u003e\",\"target_name\":\"edge-router\",\"payload\":{...},\"created_at\":0}],\"next_cursor\":\"\",\"has_more\":false}.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_2e86a554eae5","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/audit/export","summary":"Stream network audit events as NDJSON or CSV, up to 10000 records; owner only.","request":"Query: format=json (default, NDJSON)|csv; range=live (180 seconds)|1h|12h|24h|7d (missing or invalid defaults to 24h); optional exact-match filters event_kind,account_id (UUID),target_kind,target_id; q searches event kind,target,payload and actor display; limit defaults to 5000, maximum 10000. Owner only. Maximum 6 exports per minute per client IP; excess returns 429 rate_limit.exceeded with Retry-After.","request_body":"none","response":"200 OK: format=json uses application/x-ndjson, one audit event per line with the audit-list event shape. format=csv uses text/csv and Content-Disposition: attachment; columns: id,network_id,account_id,actor_display,event_kind,target_kind,target_id,target_name,payload,created_at. Output is ordered by (created_at,id) ascending. MCP call_operation returns the original NDJSON in text.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_a7b58cb83d15","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/billing-rates","summary":"Read the three Cloud Relay rate tiers effective for this network, without the rate-card name.","request":"Path network_id.","request_body":"none","response":"200 OK: {data:{rates,bytes_per_gb}}.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_c32f33fec663","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/cidr-groups","summary":"List the network's custom network groups, with the forwarding rules that reference them.","request":"No parameters.","request_body":"none","response":"200 OK: {data:[{id,name,cidrs:[cidr],ip_regex:[regex],used_by_rule_ids,updated_at}],next_cursor:\"\",has_more:false}, sorted by name.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_917cfdf5c5df","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/cidr-groups","summary":"Create a custom network group (audited as network_cidr_group.created).","request":"JSON body: {name, cidrs?:[cidr], ip_regex?:[regex]}; name is 1..64 characters, at least one CIDR or destination address regex; at most 4096 CIDRs in canonical form. ip_regex is an RE2 regex over the destination address text (IPv4 dotted decimal, IPv6 compressed lowercase), at most 256: on the include side it is combined with the CIDRs by OR, on the exclude side a destination matching any of them does not match the rule; stored verbatim and delivered inline with the policy.","request_body":"json","response":"200 OK: {\"data\": {id,name,cidrs:[cidr],ip_regex:[regex],used_by_rule_ids,updated_at}}. A duplicate name returns 409 conflict.state (details.code=name_taken); validation failures return 400.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_bc2c986cc277","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/cidr-groups/{group_id}","summary":"Delete a custom network group that no forwarding rule references (audited as network_cidr_group.deleted).","request":"No parameters.","request_body":"none","response":"204 No Content. If rules still reference it: 409 conflict.state (details.code=in_use, details.used_by_rule_ids).","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_6103dbf580f0","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/cidr-groups/{group_id}","summary":"Read one custom network group.","request":"No parameters.","request_body":"none","response":"200 OK: {\"data\": {id,name,cidrs:[cidr],ip_regex:[regex],used_by_rule_ids,updated_at}}.","authenticated":true,"api_key_permission":"read"},{"id":"controller_put_5c29db7fb8f3","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/cidr-groups/{group_id}","summary":"Replace a custom network group and recheck the delivery budget of devices that reference it (audited as network_cidr_group.updated).","request":"JSON body: same as create, optionally with expected_updated_at (optimistic concurrency precondition).","request_body":"json","response":"200 OK: the replaced group. A version conflict returns 409 conflict.version; a duplicate name returns 409 conflict.state; validation failures return 400 and a budget overrun on referencing devices returns 429.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_bc7ab5a0a32b","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/cidr/apply","summary":"Apply a confirmed overlay CIDR change and update affected device addresses.","request":"JSON body: cidr (required valid IPv4 CIDR); confirm (required true, otherwise 400); plan_digest (required unchanged value from the preview confirmed by the human). A stale or already-used preview returns 409 conflict.state with no changes. Preview again and obtain confirmation before retrying.","request_body":"json","response":"200 OK: {\"data\":{\"current_cidr\":\"10.1.0.0/24\",\"old_cidr\":\"10.0.0.0/24\",\"affected_count\":3,\"keep_count\":1,\"reassign_count\":2,\"devices\":[...]}}. Changes apply together or leave the configuration unchanged. An identical CIDR requiring no reassignment is a 200 no-op. Insufficient address capacity returns 400.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_defddf4d8231","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/cidr/preview","summary":"Preview planned device address changes for a new overlay CIDR without changing configuration.","request":"JSON body: cidr (required valid IPv4 CIDR). Insufficient address capacity returns 400.","request_body":"json","response":"200 OK: {\"data\":{\"affected_count\":3,\"keep_count\":1,\"reassign_count\":2,\"devices\":[{\"device_id\":\"\u003cuuid\u003e\",\"hostname\":\"t1\",\"current_ip\":\"10.0.0.10\",\"action\":\"reassign\",\"new_ip\":\"10.1.0.10\"}],\"plan_digest\":\"\u003copaque preview confirmation\u003e\"}}. action is keep or reassign. Pass the unchanged plan_digest to apply after human confirmation.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_555494791ce0","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/devices","summary":"List current network devices in descending creation order. Deleted devices are excluded; offline, pending and blocked devices remain in inventory.","request":"No request body.","request_body":"none","response":"200 OK: device-list envelope containing id,hostname,alias,platform,agent_version,overlay_ip,public_ip,ipv6_public_ip,status,online,is_peer_relay,forward_ready,plugin_ready,direct_transports,last_seen_at. forward_ready indicates the client supports current forwarding rules. plugin_ready indicates the client supports plugin configs; other devices offer no plugin and reject saving configs. is_peer_relay indicates whether the device currently participates as a peer relay.","authenticated":true,"api_key_permission":"read"},{"id":"controller_delete_f61fcb08b862","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/devices/{device_id}","summary":"Immediately delete the device and revoke authorization without waiting for client cleanup. Clients clean up independently after receiving the removal notification. The removing response field is retained for compatibility.","request":"No request body.","request_body":"none","response":"200 OK: {\"data\":{\"id\":\"\u003cuuid\u003e\",\"removing\":true}}.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_a282ff2184e6","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}","summary":"Update device hostname, alias, overlay_ip or direct_transports in any combination.","request":"JSON body, at least one field: hostname (optional string, trimmed maximum 255 bytes; excess returns 400; empty clears); alias (optional display alias, maximum 64 characters; empty clears); overlay_ip (optional manually assigned IP, within the current overlay CIDR and unique across the network); direct_transports (optional nonempty subset of quic/tls; default [\"quic\",\"tls\"]).","request_body":"json","response":"200 OK: full device in {\"data\":{...}}, using the list-item shape with updated hostname,alias,overlay_ip,direct_transports.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_e762b3b0e770","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/approve","summary":"Approve a pending device and set its status to active.","request":"No parameters.","request_body":"none","response":"200 OK: full device in {\"data\":{...}}, using the list-item shape with status=active.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_c4ef8a9d93e2","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/block","summary":"Reversibly block a device (status=blocked), disconnecting its network access until it is unblocked.","request":"Optional JSON body: {\"reason\":\"...\"}; reason is included in the audit event.","request_body":"json","response":"200 OK: full device in {\"data\":{...}} with status=blocked.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_157a5f8f28cf","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/details","summary":"Read the latest CPE management detail snapshot for a device.","request":"No request body.","request_body":"none","response":"200 OK: {\"data\":{\"device\":{...Device},\"snapshot\":{collected_at,reported_at,summary,forward_health}}}. forward_health.checked_at is server observation time; client_checked_at is only for diagnosing the device clock. snapshot is empty if the device has not reported.","authenticated":true,"api_key_permission":"read"},{"id":"controller_delete_3f575149e454","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/dynamic-domain","summary":"Unbind a domain and report its cleanup status.","request":"Availability check body: {zone,prefix}; PUT body: {zone,prefix,resolution_mode,expected_version}; DELETE body: {expected_version}. Bound names are fixed; unbind before renaming.","request_body":"json","response":"200: {data:{device_id,zone,prefix,fqdn,resolution_mode,version,sync_state,records,synced_at,last_error}}. Lists use the list envelope. Availability checks return {data:{available}}. last_error contains a service failure category, not provider response bodies.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_a9982df16b0d","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/dynamic-domain","summary":"Read a device domain; an unbound device returns unbound.","request":"Availability check body: {zone,prefix}; PUT body: {zone,prefix,resolution_mode,expected_version}; DELETE body: {expected_version}. Bound names are fixed; unbind before renaming.","request_body":"none","response":"200: {data:{device_id,zone,prefix,fqdn,resolution_mode,version,sync_state,records,synced_at,last_error}}. Lists use the list envelope. Availability checks return {data:{available}}. last_error contains a service failure category, not provider response bodies.","authenticated":true,"api_key_permission":"read"},{"id":"controller_put_b32791c65d00","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/dynamic-domain","summary":"Bind a domain or save its resolution mode; DNS failures retain synchronization state.","request":"Availability check body: {zone,prefix}; PUT body: {zone,prefix,resolution_mode,expected_version}; DELETE body: {expected_version}. Bound names are fixed; unbind before renaming.","request_body":"json","response":"200: {data:{device_id,zone,prefix,fqdn,resolution_mode,version,sync_state,records,synced_at,last_error}}. Lists use the list envelope. Availability checks return {data:{available}}. last_error contains a service failure category, not provider response bodies.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_7aae6bef25fc","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/forward-settings","summary":"Read device forwarding settings (L3 exclusions); a device with no saved settings returns the defaults.","request":"No parameters.","request_body":"none","response":"200 OK: {\"data\":{device_id,settings:{l3_exclude:[{name?,src_cidr?,dst_cidr?}]},content_hash,updated_at}}.","authenticated":true,"api_key_permission":"read"},{"id":"controller_put_a0fef0fc1257","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/forward-settings","summary":"Replace the complete device forwarding settings; records device_forward_settings.updated.","request":"JSON body: {l3_exclude:[{name?,src_cidr?,dst_cidr?}]}, optionally with expected_content_hash for optimistic concurrency.","request_body":"json","response":"200 OK: the replacement document; unchanged settings return the current document. A version conflict returns 409 conflict.version; invalid input returns 400 and budget errors 429, with error.details.issues in the same shape as forwarding rules.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_639ef89d3507","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/forward-settings/preview","summary":"Preview device forwarding settings without writes: validation issues and the projection summary of this device.","request":"JSON body: the same as replacement.","request_body":"json","response":"200 OK: the same shape as the forwarding rules preview; devices contains only this device.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_e9471ea30cf8","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/peer-relay/disable","summary":"Disallow this device to act as a peer relay. The default is enabled on Linux, Windows and macOS, disabled on Android, iOS and HarmonyOS.","request":"JSON body: {\"reason\":\"operation reason, 0..500 bytes\"}.","request_body":"json","response":"200 OK: full device in {\"data\":{...}}, using the list-item shape. peer_relay_enabled is the user preference; is_peer_relay is true only when enabled and eligible.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_3788bdf118f2","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/peer-relay/enable","summary":"Allow this device to act as a peer relay. The default is enabled on Linux, Windows and macOS, disabled on Android, iOS and HarmonyOS.","request":"JSON body: {\"reason\":\"operation reason, 0..500 bytes\"}.","request_body":"json","response":"200 OK: full device in {\"data\":{...}}, using the list-item shape. peer_relay_enabled is the user preference; is_peer_relay is true only when enabled and eligible.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_00c31b0d4fc6","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/plugin-executions","summary":"List a device's plugin executions, including records kept from deleted configs, filterable by config, script, script type, stage and status, with paging.","request":"Optional query config_id, script_id, script_type, stage, status, limit and cursor; limit defaults to 50, at most 200; cursor is the previous page's next_cursor.","request_body":"none","response":"200 OK: {data:[...],next_cursor:\"\u003copaque\u003e\",has_more:\u003cbool\u003e}, newest first. Rows have id, device_id, config_id, config_name, config_deleted, script_id, script_name, script_type, script_revision, row_id, stage, trigger_reason, timeout_seconds, status, exit_code, error_kind (variables_script means the variables script failed), error_message, spool_overflow, started_at, finished_at and created_at. Repeating executions only add a record when their result changes.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_ba47404c3268","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/static-routes","summary":"Create an IPv4 static site route for an active Linux/OpenWrt device identified by the path.","request":"JSON body: canonical IPv4 prefix; optional next_hop. Every route is advertised to the Network; with a gateway the owner also installs prefix via gateway, without one it uses its existing host routes. A route without a gateway needs a supporting owner client, otherwise conflict.state (details.code=OWNER_UPGRADE_REQUIRED).","request_body":"json","response":"200 OK: the new route. Advertisement remains ineffective until owner readiness succeeds.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_put_c11fd08bb7b2","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/static-routes","summary":"Atomically replace all static site routes for a device.","request":"JSON body: expected_routes is the configuration list on which the draft is based (id,prefix,next_hop); routes is the complete desired list, omitting id for new entries; an empty next_hop means no gateway. Both arrays are required and may be empty. Runtime fields do not participate in concurrency checks.","request_body":"json","response":"200 OK: the device route array. All changes apply together; conflicts or failures leave routes unchanged.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_4ad9b8ac5f75","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/static-routes/{route_id}","summary":"Soft-delete a device static site route and immediately withdraw its effective advertisement.","request":"No parameters.","request_body":"none","response":"200 OK: deletion confirmation.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_df5578784dc3","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/static-routes/{route_id}","summary":"Update a device static site route and invalidate old readiness; the owning device is immutable.","request":"JSON: prefix and/or next_hop; an empty next_hop removes the gateway. Optional expected_route (prefix, next_hop) protects the read baseline; conflicts return 409 conflict.version.","request_body":"json","response":"200 OK: the updated route.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_15df027d7214","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/devices/{device_id}/unblock","summary":"Unblock a device (blocked to active), reversing block. Blocked devices do not consume device_limit; unblocking checks capacity and returns quota.exceeded if active capacity is full. Peer relay is not restored automatically and must be enabled separately. Records device.unblocked.","request":"No parameters.","request_body":"none","response":"200 OK: full device in {\"data\":{...}} with status=active.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_3b6018b33019","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/diagnostics/coverage","summary":"Summarize diagnostic report coverage. Missing reports do not imply health.","request":"The same time and filter parameters as diagnostics/query, without cursor.","request_body":"json","response":"rows,row_limit,truncated; actual report counts, peer-direction coverage, versions and missing-report counts.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_4d9167c2ce86","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/diagnostics/query","summary":"Query agent connectivity diagnostics with mandatory network/session/time scoping and stable cursor pagination.","request":"JSON body: session_id, from/to (Unix milliseconds, maximum 24 hours), optional device_id,peer_device_id,cursor.","request_body":"json","response":"At most 50 reports per page with has_more/next_cursor; payload uses the dedicated Snapshot JSON shape.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_d64c9d1f8e5d","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/diagnostics/sessions","summary":"List agent diagnostic sessions and the network mode, up to 100 sessions from the last 7 days.","request":"No request body.","request_body":"none","response":"Network mode, up to 100 sessions from the last 7 days, and current device inventory. Diagnostic protocol version null means unknown; 0 means an old client. inventory_truncated explicitly identifies incomplete inventory.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_80d6989dad34","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/dynamic-domains","summary":"List device domains.","request":"Availability check body: {zone,prefix}; PUT body: {zone,prefix,resolution_mode,expected_version}; DELETE body: {expected_version}. Bound names are fixed; unbind before renaming.","request_body":"none","response":"200: {data:{device_id,zone,prefix,fqdn,resolution_mode,version,sync_state,records,synced_at,last_error}}. Lists use the list envelope. Availability checks return {data:{available}}. last_error contains a service failure category, not provider response bodies.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_7faaf404635c","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/dynamic-domains/check","summary":"Check domain availability without reserving the name.","request":"Availability check body: {zone,prefix}; PUT body: {zone,prefix,resolution_mode,expected_version}; DELETE body: {expected_version}. Bound names are fixed; unbind before renaming.","request_body":"json","response":"200: {data:{device_id,zone,prefix,fqdn,resolution_mode,version,sync_state,records,synced_at,last_error}}. Lists use the list envelope. Availability checks return {data:{available}}. last_error contains a service failure category, not provider response bodies.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_85eca025e45e","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/events","summary":"Receive network change notifications over SSE; read the latest business snapshots through the corresponding HTTP operations.","request":"No body. Requires a read-capable API key and network ownership.","request_body":"none","response":"200 text/event-stream: starts with baseline, then network change hints and heartbeats. The stream ends with bye at credential expiry or after 25 to 30 minutes; keys with no expiry still obey the connection limit. API keys are rechecked before subsequent output: bye.reason is credential_revoked for invalid credentials, or authorization_unavailable when the verifier is temporarily unavailable.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_256de0c1eca5","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/forward-rules","summary":"Read the network forwarding rules document; a network with no saved rules returns an empty list.","request":"No parameters.","request_body":"none","response":"200 OK: {\"data\":{rules:[Rule],content_hash,updated_at}}. Rule: {id,name?,device_ids:[uuid],match:{src_cidr?,src_ip_regex?,cidr_keys?,cidr_group_ids?,exclude_cidr_keys?,exclude_cidr_group_ids?,app_keys?,application_ids?},action:{type:exit,exit_device_id,upstream_socks?},exit_resolver?}. Rules carry no inline domains or networks; destination conditions only reference reusable resources: cidr_keys (network catalog entries), cidr_group_ids (custom network groups), app_keys (catalog applications) and application_ids (custom applications, with domains and networks) are combined with OR; when all are empty the rule matches any destination. exclude_cidr_keys (network catalog entries) and exclude_cidr_group_ids (custom network groups) are exclusions: traffic whose destination address falls in them does not match the rule. the source condition is the union of src_cidr (source networks) and src_ip_regex (RE2 regexes over the source address text, kept verbatim, at most 256), both omitted meaning every source; it matches by source only on Linux devices; on other platforms the rule applies to every source. The only action is forwarding through an exit device (type is always exit; other values are rejected). The exit may be one of the selected devices: without upstream SOCKS this equals direct, with upstream SOCKS that device itself egresses through the upstream. exit_resolver applies only to rules with application conditions; it is the UDP DNS server (IP or IP:port) the exit device uses to resolve those applications' domains, and when omitted the exit device uses its system DNS. On read, upstream_socks returns only {addr,username,password_set}; its password is write-only.","authenticated":true,"api_key_permission":"read"},{"id":"controller_put_51c53ac3631f","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/forward-rules","summary":"Replace the complete ordered network forwarding rules and recompute exit flags; records forward_rules.updated.","request":"JSON body: {rules:[Rule],expected_content_hash?} (optimistic concurrency: the last-read content_hash; empty if never saved; Website always supplies it). Rule: {id,name?,device_ids:[uuid],match:{src_cidr?,src_ip_regex?,cidr_keys?,cidr_group_ids?,exclude_cidr_keys?,exclude_cidr_group_ids?,app_keys?,application_ids?},action:{type:exit,exit_device_id,upstream_socks?},exit_resolver?}. Rules carry no inline domains or networks; destination conditions only reference reusable resources: cidr_keys (network catalog entries), cidr_group_ids (custom network groups), app_keys (catalog applications) and application_ids (custom applications, with domains and networks) are combined with OR; when all are empty the rule matches any destination. exclude_cidr_keys (network catalog entries) and exclude_cidr_group_ids (custom network groups) are exclusions: traffic whose destination address falls in them does not match the rule. the source condition is the union of src_cidr (source networks) and src_ip_regex (RE2 regexes over the source address text, kept verbatim, at most 256), both omitted meaning every source; it matches by source only on Linux devices; on other platforms the rule applies to every source. The only action is forwarding through an exit device (type is always exit; other values are rejected). The exit may be one of the selected devices: without upstream SOCKS this equals direct, with upstream SOCKS that device itself egresses through the upstream. exit_resolver applies only to rules with application conditions; it is the UDP DNS server (IP or IP:port) the exit device uses to resolve those applications' domains, and when omitted the exit device uses its system DNS. For upstream_socks.password, omission retains the value for the same rule ID; changes to addr, username or exit require reentry or return password_required. An explicit empty password clears it; empty addr removes the upstream and credentials. Returning password_set is accepted but ignored.","request_body":"json","response":"200 OK: the replacement document in the same shape as GET. Unchanged rules and passwords return the current document without a write or audit record. A stale expected_content_hash returns 409 conflict.version with error.details.current_version. Invalid input returns 400 input.invalid_body; limits or the per-device configuration budget return 429 quota.exceeded. error.details.issues is [{path,code,message,device_id?}]; budget errors also include error.details.affected_device_ids.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_7c45c0b75d16","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/forward-rules/preview","summary":"Preview network forwarding rules without writes: validation and budget issues plus a per-device projection summary.","request":"JSON body: the same as replacement; expected_content_hash is ignored.","request_body":"json","response":"200 OK: {\"data\":{issues:[Issue],platform_unsupported:[Issue],devices:[{device_id,dns_hijack_enabled,l3_include,rule_set?,unreachable_rules,site_route_overlaps,warnings}],dangling_exits:[{rule_id,exit_device_id}]}}. l3_include is the capture range derived from the rules; rule_set reports the size of the device rule set against its platform budget. Nonempty issues prevent replacement; other findings are warnings.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_3fd7627ce216","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/links","summary":"List network device links in descending (created_at,id) order, including endpoint hostnames, path policy and Credit admission state.","request":"No parameters.","request_body":"none","response":"200 OK: {\"data\":[{\"id\":\"\u003cuuid\u003e\",\"device_a_id\":\"\u003cuuid\u003e\",\"device_b_id\":\"\u003cuuid\u003e\",\"device_a_hostname\":\"...\",\"device_b_hostname\":\"...\",\"path_policy\":{...},\"cloud_relay_schedule\":null}],\"next_cursor\":\"\",\"has_more\":false}. Hostnames identify the endpoint devices. Links are managed automatically and this endpoint is read-only.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_427a01582b1d","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/links/{link_id}/path-policy","summary":"Read link transports, switching sensitivity, switch event sampling and cloud relay schedule.","request":"No parameters.","request_body":"none","response":"200 OK: {\"data\":{\"policy\":{\"enabled_transports\":[\"direct\",\"peer_relay\",\"cloud_relay\"],\"strategy\":\"balanced\"},\"schedule\":null}}. schedule=null allows Cloud Relay all day. A missing link, a link outside this network or a non-UUID link_id returns 404.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_3e12bdac931f","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/links/{link_id}/path-policy","summary":"Atomically set link transports, switching sensitivity, switch event sampling and cloud relay schedule.","request":"JSON: policy and schedule; optional expected contains the previously read policy and schedule. Stale baselines return 409 conflict.version and make no changes. Optional policy.switch_event_sampling_enabled is a boolean; omission preserves the current setting. Switches involving cloud relay are always sampled.","request_body":"json","response":"200 OK: the complete updated policy. Invalid or duplicate transports, invalid strategy, timezone or time windows return 400. A missing link, a link outside this network or a non-UUID link_id returns 404.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_016ec6fe9bed","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/observe/quality/links","summary":"Quality-diagnostics link summaries: return each link's worse-direction average RTT and business packet loss in one request.","request":"Query from/to are Unix milliseconds; maximum window 7 days. Omission defaults to the latest 24 hours.","request_body":"none","response":"200 OK: {data:{rows:[{link_id,rtt_ms,business_loss_pct}],truncated:false,time_range:{from,to,step}}}. rtt_ms is weighted by reliable samples; business_loss_pct counts only batches with complete feedback and at least 100 frames per direction per 5 minutes, weighted by packets. Both use the worse direction and are null without samples. Links without either sample have no row. truncated=true when any aggregate reaches capacity.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_fcf8e224e76e","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/observe/quality/links/{link_id}","summary":"Read link quality trends with sampling state for both directions; RTT and loss use their own reliable sample counts.","request":"Path link_id must identify a Link UUID in the current network. Query from/to are Unix milliseconds; step is seconds; maximum window 7 days.","request_body":"none","response":"200 OK: {data:{trend:[{bucket_micros,src_device_id,dst_device_id,avg_rtt,avg_loss,business_loss_pct,business_sent,business_received,samples,rtt_samples,loss_samples,last_observed_at_micros,last_rtt_at_micros}],directions:[{src_device_id,dst_device_id,samples,rtt_samples,loss_samples,last_observed_at_micros}],time_range:{from,to,step}}}. Both directions are described even when historical samples are absent. 100% loss can be shown when RTT is unavailable. Probe loss and business frame loss are separate. Business loss is packet-weighted across complete batches, needs at least 100 sent frames per direction per bucket, and is null for idle traffic, older peers, insufficient samples or incomplete feedback. It does not affect path selection.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_a7ac218ff5b6","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/observe/quality/links/{link_id}/transitions","summary":"Read link path switches, excluding established/lost events: aggregate markers for the whole window and the latest 100 switches.","request":"Path link_id must identify a Link UUID in the current network. Query from/to are Unix milliseconds; step is aggregation seconds; maximum window 7 days.","request_body":"none","response":"200 OK: {data:{events:[...],markers:[...],time_range:{from,to,step},truncated:false,oldest_event_at_micros}}. Both events and markers exclude established/lost; raw telemetry is retained. Events are ordered by event time and transition_id descending; markers cover the entire time_range.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_95754efd49f6","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/observe/quality/overview","summary":"Read the quality-diagnostics link index with directional quality and path-transition counts.","request":"Query from/to are Unix milliseconds; maximum window 7 days. Omission defaults to the latest 24 hours.","request_body":"none","response":"200 OK: {data:{rows:[{link_id,src_device_id,dst_device_id,avg_rtt,avg_loss,max_loss,samples,last_observed_at_micros,transition_count}],truncated:false}}. Each row preserves its direction. When capacity is reached, returns the available prefix and explicitly sets truncated=true.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_6959df767fad","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/observe/traffic","summary":"Query traffic for a required device pair: directional one-minute bandwidth trends, top 10 flows and up to 100 five-tuple details. No DPI or application identification.","request":"JSON body: source (required device UUID for the first endpoint); destination (required device UUID for the second endpoint, different from source); from/to (optional int64 Unix milliseconds, both supplied together, maximum span 7 days); include_detail (optional bool, default true; false skips the five-tuple detail query and returns an empty detail array).","request_body":"json","response":"200 OK: {\"data\":{\"bytes_top\":[{src_device_id,src_ip,dst_ip,dst_port,protocol,dst_device_id,path_type,transport,bytes,packets,flow_count}],\"trend\":[{bucket_micros,src_device_id,dst_device_id,bps,observed}],\"detail\":[{src_device_id,src_ip,src_port,dst_ip,dst_port,protocol,dst_device_id,path_type,transport,bytes,packets,flow_count}],last_observed_at,time_range}}. bytes_top first combines paths by source device,source IP,destination IP,destination port,protocol, then selects the top 10; path_type/transport spanning multiple paths are mixed. trend.bps converts native one-minute traffic increments separately for each direction. trend.observed indicates whether this direction and minute contain a flow-log record; when false, bps=0 is only a compatibility placeholder and the UI leaves a gap. No records can mean idle or not reporting, not link failure. detail combines both directions, sorts by traffic descending, returns at most 100 rows and does not paginate. Disabled or unreachable Observe returns 503 service.unavailable.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_2b333417d925","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/observe/traffic/links","summary":"Insights traffic link summaries: return every link's bidirectional total traffic and one-minute peak rate for the window in one request.","request":"Query from/to are Unix milliseconds; maximum window 7 days. Omission defaults to the latest 24 hours.","request_body":"none","response":"200 OK: {data:{rows:[{link_id,bytes,peak_bps}],truncated:false,time_range:{from,to,step}}}. bytes combines both directions; peak_bps is the largest per-minute sum of both directions. Links without flow logs in the window have no row: they may be idle or not reporting, which does not indicate link failure. When device pairs exceed capacity, the highest-traffic prefix is kept and truncated=true.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_9f411012ddc4","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/overview","summary":"Read a network overview at one observation time: control-plane summary, current link topology, 24-hour traffic and active alert count. Read alert details through the separate alert API.","request":"No body or query. Live data uses the latest sample within the last 6 minutes; historical range is not supported.","request_body":"none","response":"200 OK: {data:{source_states,network_status,summaries:{links,devices,channels,traffic_24h},topology:{devices,links,total_devices,total_links,returned_links,truncated,mode},alerts:{active_total}}}. Configuration read failures return 5xx. Monitoring failures retain 200, mark the corresponding source unavailable and still return configuration topology. Different paths in the two directions yield link path_type=mixed.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_a871234502da","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/plugin-configs","summary":"List plugin config summaries in the network without script text.","request":"Optional query device_id lists only the configs on that device.","request_body":"none","response":"200 OK: {data: ConfigSummary[]} in creation order. ConfigSummary is Config without script_bodies and never contains script text.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_797b60423455","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs","summary":"Create a plugin config: disabled and never enabled, possibly without a device or scripts.","request":"JSON, every field optional; an empty body equals {}: name (defaults to the next four-digit sequence of the network: \"Config NNNN\" with locale=en, its Chinese equivalent otherwise), locale (zh or en, only for the default name), device_id, scripts[] and schedule[] (same shape as the whole-config save; new scripts carry no id). A new config is neither delivered nor run; enable it with the update operation. At most 32 configs per device and 32 configs without a device per network; body up to 4 MiB. A config that has never been enabled may be incomplete: name and script names and content may be empty; the other rules still apply (script types, at most one of each singleton type, which scripts a stage accepts, interpreter combinations, counts and sizes). A config that has been enabled is validated completely. scripts[] items: id (to keep an existing script; its type cannot change), key (reference name within the request; required for new scripts, defaults to id for existing ones), type, name, interpreter (new scripts default to powershell on Windows and sh elsewhere; omitted on an existing script means unchanged), content (required for new scripts; omitted on an existing script means unchanged). schedule[] items: id (to keep an existing row), stage, script (the script key), interval_seconds, timeout_seconds, failure_threshold (loop rows of a monitor script only, default 3); the config_applied / config_removed rows come with the install and remove scripts and only set timeouts when listed. Interpreters are set per script: Windows devices only run powershell, other devices sh or bash. The variables script is loaded by every other script, so with an sh variables script the others may use sh or bash, with a bash variables script the others must be bash, and powershell only pairs with powershell. An impossible combination is an input error: 400 input.invalid_body with details.path naming the script (such as scripts[2].interpreter). A valid combination whose interpreter does not run on the device's system conflicts with the device: 409 interpreter_mismatch, also with path. The combination is checked before the system; without a device only the combination is checked, and the system is checked once a device is set. Validation errors return 400 with details.path naming the field (such as scripts[1].content). 409 conflict.state details.reason: capability_missing (the device's Client has not declared plugin.v1; upgrade it), interpreter_mismatch (with path: a script's interpreter does not run on the device), device_not_in_network, device_required (choose a device before enabling or running a script), device_locked (a config that has been enabled cannot move to another device), script_not_runnable (variables and uninstall scripts cannot be run on request), template_platform, template_version (with latest_version), conflict.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_7ba75fef6b39","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}","summary":"Delete a plugin config. A device that started its installation attempts its saved uninstall script once when it receives the removal.","request":"No request body.","request_body":"none","response":"200 OK: {data:{id,deleted:true}}. The config disappears immediately. A device that started its installation, including a trial while disabled, attempts the saved uninstall script. If installation never started, the device only clears its local config data.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_974d847ddb7d","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}","summary":"Read one plugin config in full, including script text. The variables script may contain passwords and pre-shared keys.","request":"No request body.","request_body":"none","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"read"},{"id":"controller_post_f5eed1ff1682","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}","summary":"Change the name, device or enabled state of a plugin config.","request":"JSON body: optional name, device_id, enabled and expected_content_hash (when given, a mismatch returns 409 conflict.version); omitted fields stay. device_id can be set or changed (empty string clears it) only while the config has never been enabled; the device must have declared plugin.v1, and every script interpreter must suit it. Changing or clearing that device withdraws the config from the old device, which attempts its saved uninstall script if installation started there. Request a fresh trial on the new device. Renaming alone does not trigger installation. Enabling with enabled=true requires a device and validates the complete config (400 with details.path for incomplete content). Scheduling starts and the install script runs if its revision has not been attempted. An unchanged trial installation keeps its result, including failure. enabled=false disables it: schedule rows stop firing, the remove script does not run and installed software stays on the device. 409 conflict.state details.reason: capability_missing (the device's Client has not declared plugin.v1; upgrade it), interpreter_mismatch (with path: a script's interpreter does not run on the device), device_not_in_network, device_required (choose a device before enabling or running a script), device_locked (a config that has been enabled cannot move to another device), script_not_runnable (variables and uninstall scripts cannot be run on request), template_platform, template_version (with latest_version), conflict.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_put_93eb7c9ad438","service":"controller","method":"PUT","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}","summary":"Save a whole plugin config: its name, device, scripts and schedule are replaced by the request in one transaction; enabling is not changed here.","request":"JSON body: name, device_id (empty string for no device; a config that has been enabled only accepts its own device, else 409 device_locked), scripts[], schedule[] and expected_content_hash (the content_hash read with the config; a mismatch returns 409 conflict.version, reload and retry). Afterwards the config is exactly the request: existing scripts and rows not listed are deleted. Changing the variables and install scripts together creates one new install revision. An enabled config installs a revision it has not attempted. A disabled config waits until enabled or until an explicit install run. Changing or clearing the device of a never-enabled config withdraws it from the old device, which attempts its saved uninstall script if installation started there. Request a new trial on the new device. Body up to 4 MiB. A config that has never been enabled may be incomplete: name and script names and content may be empty; the other rules still apply (script types, at most one of each singleton type, which scripts a stage accepts, interpreter combinations, counts and sizes). A config that has been enabled is validated completely. scripts[] items: id (to keep an existing script; its type cannot change), key (reference name within the request; required for new scripts, defaults to id for existing ones), type, name, interpreter (new scripts default to powershell on Windows and sh elsewhere; omitted on an existing script means unchanged), content (required for new scripts; omitted on an existing script means unchanged). schedule[] items: id (to keep an existing row), stage, script (the script key), interval_seconds, timeout_seconds, failure_threshold (loop rows of a monitor script only, default 3); the config_applied / config_removed rows come with the install and remove scripts and only set timeouts when listed. Interpreters are set per script: Windows devices only run powershell, other devices sh or bash. The variables script is loaded by every other script, so with an sh variables script the others may use sh or bash, with a bash variables script the others must be bash, and powershell only pairs with powershell. An impossible combination is an input error: 400 input.invalid_body with details.path naming the script (such as scripts[2].interpreter). A valid combination whose interpreter does not run on the device's system conflicts with the device: 409 interpreter_mismatch, also with path. The combination is checked before the system; without a device only the combination is checked, and the system is checked once a device is set. Validation errors return 400 with details.path naming the field (such as scripts[1].content). 409 conflict.state details.reason: capability_missing (the device's Client has not declared plugin.v1; upgrade it), interpreter_mismatch (with path: a script's interpreter does not run on the device), device_not_in_network, device_required (choose a device before enabling or running a script), device_locked (a config that has been enabled cannot move to another device), script_not_runnable (variables and uninstall scripts cannot be run on request), template_platform, template_version (with latest_version), conflict.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_8854330cefd0","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/schedule","summary":"Add a schedule row: run a script at a stage.","request":"JSON body: stage (service_started|network_connected|network_disconnected|service_stopping take other scripts; service_running|network_online take monitor or other scripts and repeat), script_id, interval_seconds (period stages only, 60-86400, default 60), timeout_seconds (1-86400, default by script type: monitor 30, other 60) and failure_threshold (how many consecutive monitor failures make the config abnormal and raise an alert, 1-100, default 3; only loop rows of a monitor script take it, elsewhere it returns 400 with details.path failure_threshold; when one monitor script has several loop rows its consecutive failures are counted per script and each failure is compared with the threshold of the row that just ran). The config_applied / config_removed rows come with the install and remove scripts and cannot be added by hand. At most 32 rows per config.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_432a9bda9bd0","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/schedule/{row_id}","summary":"Delete a schedule row; fixed rows go with their script and cannot be deleted alone.","request":"No request body.","request_body":"none","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_791724539d7b","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/schedule/{row_id}","summary":"Change a schedule row's stage, script, interval or timeout; fixed rows only change their timeout.","request":"JSON body: stage, script_id (omitted means unchanged), interval_seconds, timeout_seconds and failure_threshold (omitted means the default).","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_6730a9ac19b3","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/scripts","summary":"Add a script to a config; install and remove scripts also get their fixed schedule rows.","request":"JSON body: type (variables|install|remove|monitor|other; the first three at most once per config), name, interpreter (defaults by the device's system) and content (1 byte to 256 KiB of UTF-8 for a config that has been enabled; may be empty before). At most 16 scripts per config and 512 KiB delivered per device. If the config is currently enabled and has an install script, the device installs a changed revision it has not attempted. Interpreters are set per script: Windows devices only run powershell, other devices sh or bash. The variables script is loaded by every other script, so with an sh variables script the others may use sh or bash, with a bash variables script the others must be bash, and powershell only pairs with powershell. An impossible combination is an input error: 400 input.invalid_body with details.path naming the script (such as scripts[2].interpreter). A valid combination whose interpreter does not run on the device's system conflicts with the device: 409 interpreter_mismatch, also with path. The combination is checked before the system; without a device only the combination is checked, and the system is checked once a device is set.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_delete_2c145fc02a8a","service":"controller","method":"DELETE","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/scripts/{script_id}","summary":"Delete a script and every schedule row that runs it.","request":"No request body.","request_body":"none","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_af4881b10621","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/scripts/{script_id}","summary":"Change a script's name, interpreter or text; its type cannot change.","request":"JSON body: optional name, interpreter and content; revision increases when the text or interpreter changes. Interpreters are set per script: Windows devices only run powershell, other devices sh or bash. The variables script is loaded by every other script, so with an sh variables script the others may use sh or bash, with a bash variables script the others must be bash, and powershell only pairs with powershell. An impossible combination is an input error: 400 input.invalid_body with details.path naming the script (such as scripts[2].interpreter). A valid combination whose interpreter does not run on the device's system conflicts with the device: 409 interpreter_mismatch, also with path. The combination is checked before the system; without a device only the combination is checked, and the system is checked once a device is set.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_77161d75e619","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/scripts/{script_id}/run","summary":"Run one script now, enabled or not: the install script installs on the device; a monitor or other script runs once on the device.","request":"No request body. The config needs a device that declared plugin.v1 (otherwise 409 device_required or capability_missing); it may be enabled or not. The first request for a config that was never enabled starts delivering it to the device, disabled (delivered becomes true), so scripts can be tried before enabling, and later saves are delivered as usual; the script to run must be complete (non-empty name and content, otherwise 400). Install, monitor and other scripts can be run; variables scripts never run alone and uninstall scripts only run when the config is deleted or the device leaves (409 script_not_runnable); 404 when the script is not in the config. Running the install script changes the install revision and the device runs the install and records its result: for an enabled config no other script runs until that install succeeds; for a disabled config only this install runs, and enabling later does not reinstall while the install revision is unchanged. A monitor or other script runs once with its own interpreter (after loading the variables script) and the timeout of its first schedule row: an enabled config runs it after the install succeeded, a disabled config runs it right away without waiting for the install and starts no repeat; the repeat cadence does not change and a monitor result from this run does not count toward consecutive failures. The request travels with the config, so an offline device runs it when it returns; the execution record has trigger_reason run_now. Script text, revisions and the config's content_hash do not change. 409 conflict.state details.reason: capability_missing (the device's Client has not declared plugin.v1; upgrade it), interpreter_mismatch (with path: a script's interpreter does not run on the device), device_not_in_network, device_required (choose a device before enabling or running a script), device_locked (a config that has been enabled cannot move to another device), script_not_runnable (variables and uninstall scripts cannot be run on request), template_platform, template_version (with latest_version), conflict.","request_body":"none","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_post_d681409eaf19","service":"controller","method":"POST","path":"/wwnet/app/networks/{network_id}/plugin-configs/{config_id}/template","summary":"Import a template: copy the template's scripts and schedule into the config once, replacing all of its scripts and schedule rows.","request":"JSON body: template_id (required), optional template_version (defaults to the current catalog version; when given it must be an enabled uploaded version), expected_content_hash (required, the content_hash read with the config; a mismatch returns 409 conflict.version) and optional locale (zh or en, the language of script names). All existing scripts and schedule rows are replaced; name and device stay. Importing is a one-time copy: the config does not record its source template and is unrelated to it afterwards, a newer template version does not affect it, and using a newer version means importing again; the imported version is only kept in the audit log. The template's systems are checked only at import: with a device, the template must suit it (409 template_platform) and its script interpreters must run on the device (409 interpreter_mismatch). Without a device, later assignment checks script interpreters. If the config is currently enabled and import creates an unattempted install revision with an install script, the device runs that install. 404 when the template is unknown or no longer in the catalog. 409 conflict.state details.reason: capability_missing (the device's Client has not declared plugin.v1; upgrade it), interpreter_mismatch (with path: a script's interpreter does not run on the device), device_not_in_network, device_required (choose a device before enabling or running a script), device_locked (a config that has been enabled cannot move to another device), script_not_runnable (variables and uninstall scripts cannot be run on request), template_platform, template_version (with latest_version), conflict.","request_body":"json","response":"200 OK: {data: Config}. Config has id, device_id (empty while the config has no device), name, enabled, activated (whether it has ever been enabled: such a config is on its device, keeps that device and is validated completely; a config never enabled exists only on the Controller unless a script was run), delivered (whether it is on its device: always once enabled; a config never enabled is delivered, disabled, from its first run request until its device changes), install_revision (empty while it is not on a device), content_hash, scripts[] (id, type, name, interpreter, revision, sha256, bytes, updated_at; no text), script_bodies[] (the same plus content), schedule[] (id, stage, script_id, interval_seconds, timeout_seconds, failure_threshold (set only on loop rows of a monitor script, null elsewhere), fixed) and state (status=disabled|pending|installing|ok|install_failed|monitor_failing, reported, install_status, attempted_install_revision, succeeded_install_revision, install_finished_at, last_checked_at, monitors[]). A disabled config, including one never enabled, has state.status disabled.","authenticated":true,"api_key_permission":"manage"},{"id":"controller_get_1933f67287f2","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/plugin-executions/{execution_id}/output","summary":"Read or download captured stdout/stderr of a plugin execution.","request":"Query stream=stdout|stderr; optional download=true returns an attachment.","request_body":"none","response":"200 OK: raw output bytes, normally text/plain; charset=utf-8. download=true uses application/octet-stream and Content-Disposition. Response headers describe the captured range and truncation; X-Plugin-Omitted-Middle: true means only the beginning and the end were kept. MCP call_operation returns text for the default response or data_base64 for a binary download. Inspect headers, including X-Plugin-Truncated and X-Plugin-Eof, to check completeness.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_f7b7ce85fbea","service":"controller","method":"GET","path":"/wwnet/app/networks/{network_id}/static-routes","summary":"List Linux/OpenWrt owner static site routes for the network.","request":"No parameters.","request_body":"none","response":"200 OK: route list including configuration values, effective_advertise/readiness reasons and owner routing_health (status,hash,reason,stale).","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_21faf87d8cb7","service":"controller","method":"GET","path":"/wwnet/app/plugin-templates","summary":"List the plugin software template catalog: disclosures, every script and the schedule of each template.","request":"Optional query platform (OS and architecture such as linux_amd64) returns only templates for that platform.","request_body":"none","response":"200 OK: {data: Package[]}, the latest enabled version of each template in ascending id order; an empty array when nothing has been uploaded. Package has schema_version (currently 2), id, version (positive integer), category (extension_access|run_app), name, summary, provider, upstream_url, license, modified_by, modifications, install_source{kind=distro|upstream,detail}, requirements, platforms[] (OS and architecture such as linux_amd64), scripts[] (key, type=variables|install|remove|monitor|other, name, interpreter, content; the variables script is an ordinary one of them), schedule[] (stage, script (the script key), interval_seconds (period stages only), timeout_seconds, optional failure_threshold (loop rows of a monitor script only; 3 when omitted)) and next_steps; name, summary, modifications, install_source.detail, requirements, next_steps and script names are {zh,en}. Templates carry no form: importing a template writes its scripts and schedule into a config (script names follow the UI language from name.zh or name.en; rows reference scripts by key), after which the user edits the scripts directly.","authenticated":true,"api_key_permission":"read"},{"id":"controller_get_cb0e9a8fc85a","service":"controller","method":"GET","path":"/wwnet/install/install.ps1","summary":"Return the Windows installation script.","request":"No parameters.","request_body":"none","response":"200 OK: script text; Cache-Control: no-store.","authenticated":false},{"id":"controller_get_2981d72093ac","service":"controller","method":"GET","path":"/wwnet/install/install.sh","summary":"Return the Linux installation script.","request":"No parameters.","request_body":"none","response":"200 OK: script text; Cache-Control: no-store.","authenticated":false},{"id":"controller_get_d9426d2322f8","service":"controller","method":"GET","path":"/wwnet/install/join/{artifact}","summary":"Generate a network-join one-liner for network_id.","request":"Path: /wwnet/install/join/{12-character-network_id}.{sh,ps1}. MCP path argument: artifact={network_id}.sh or {network_id}.ps1.","request_body":"none","response":"200 OK: script text. Invalid network_id format returns 404.","authenticated":false},{"id":"livechat_get_8502af3d6829","service":"livechat","method":"GET","path":"/livechat/me","summary":"GET /livechat/me","request":"No body or query. Read the current account's support conversation and last_seq.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"livechat_post_b2e2028e0ff2","service":"livechat","method":"POST","path":"/livechat/me/attachments","summary":"POST /livechat/me/attachments","request":"Direct HTTP: multipart/form-data with a required binary file field named file. MCP call_operation: use file {name,data_base64}, no JSON body; maximum MCP attachment size is 8 MiB.","request_body":"multipart","authenticated":true,"api_key_permission":"manage"},{"id":"livechat_get_c1ecbe29343c","service":"livechat","method":"GET","path":"/livechat/me/attachments/{attachment_id}","summary":"GET /livechat/me/attachments/{attachment_id}","request":"Path {attachment_id}. Download an attachment owned by the current conversation as data_base64.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"livechat_get_853cf3e9ff66","service":"livechat","method":"GET","path":"/livechat/me/events","summary":"GET /livechat/me/events","request":"Query {after_seq?}; optional last_event_id. Reads one SSE block, possibly a heartbeat; resume from the last actual event sequence.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"livechat_get_7c514b558130","service":"livechat","method":"GET","path":"/livechat/me/messages","summary":"GET /livechat/me/messages","request":"GET query {after_seq?,before_seq?,limit?}, choose only one cursor. POST body {client_msg_id,text?,attachment_id?}; preserve client_msg_id on retries.","request_body":"none","authenticated":true,"api_key_permission":"read"},{"id":"livechat_post_dd3779516071","service":"livechat","method":"POST","path":"/livechat/me/messages","summary":"POST /livechat/me/messages","request":"GET query {after_seq?,before_seq?,limit?}, choose only one cursor. POST body {client_msg_id,text?,attachment_id?}; preserve client_msg_id on retries.","request_body":"json","authenticated":true,"api_key_permission":"manage"}],"server":{"name":"widewired","version":"0.2.0"}}
