Name the purpose
Create the token in NSD with a name that identifies its owner and job. The plaintext token is displayed once, so custody starts at creation.
Use scoped API Tokens for the NSD administration API, signed Webhooks for lifecycle events and the unified ns binary for repeatable connection operations.
API Tokens are credentials for the NSD administration API. They do not replace a user's Space, create a connection runtime or bypass the access model.
Create the token in NSD with a name that identifies its owner and job. The plaintext token is displayed once, so custody starts at creation.
Select the narrowest scope offered by the current NSD deployment and set an expiry when the integration lifecycle calls for one.
Use the API documentation exposed by your NSD deployment. That keeps request paths and fields aligned with the version you actually operate.
Inspect token metadata and revoke a token from NSD when its owner, system or purpose changes. Automation using that credential must then handle the failure.
ns is the supported command-line surface for starting the current connection context, reading status and stopping the local runtime. Use documented flags for the version you deploy.
ns upRegister or start against the selected NSD authority and current local Profile.
ns statusRead the runtime snapshot; use JSON output when another program needs to consume it.
ns downStop the current local runtime before changing owners or switching to another Core.
The App and CLI are separate consumers of the same local network resources; do not run competing active Cores.
NSD can POST selected lifecycle and audit actions to a configured HTTPS endpoint. The receiver verifies the HMAC signature, rejects stale messages, deduplicates deliveries and decides what to do next.
Subscribe to all supported actions or limit delivery with configured action prefixes.
Keep the write-only signing secret in the receiver and validate the timestamped raw payload.
Use recent delivery attempts in NSD to understand accepted and failed sends.
A receiver may trigger your own workflow, but a Webhook event does not grant access by itself.
Create the narrow credential in NSD, use the deployed API documentation and keep connection scripts on the supported ns lifecycle.
使用按范围签发的 API 令牌调用 NSD 管理 API,用签名 Webhook 接收生命周期事件,并用统一的 ns 二进制重复执行连接操作。
API 令牌是调用 NSD 管理 API 的凭据。它不会替代用户空间、创建连接运行时,也不会绕过访问模型。
在 NSD 中创建令牌,并用名称标明负责人和任务。明文只展示一次,凭据保管从创建时就开始。
选择当前 NSD 部署提供的最小范围,并在集成生命周期需要时设置有效期。
使用当前 NSD 部署公开的 API 文档,让请求路径和字段始终与实际运行版本一致。
当负责人、系统或用途变化时,在 NSD 中检查令牌元数据并吊销;使用该凭据的自动化应正确处理失败。
ns 是启动当前连接上下文、读取状态和停止本地运行时的受支持命令行入口。其余参数应以所部署版本的文档为准。
ns up针对所选 NSD 权威和当前本地 Profile 完成登记或启动。
ns status读取运行时快照;当其他程序需要消费时使用 JSON 输出。
ns down在变更负责人或切换到其他 Core 前停止当前本地运行时。
App 与 CLI 是本机网络资源的不同使用方,不应让两个 Core 同时竞争运行。
NSD 可以把指定的生命周期与审计动作 POST 到已配置的 HTTPS 地址。接收端负责验证 HMAC 签名、拒绝过期消息、按投递标识去重,并决定后续动作。
订阅全部受支持动作,或通过已配置的动作前缀限制投递。
在接收端保存只写签名密钥,并验证带时间戳的原始请求体。
通过 NSD 的最近投递记录理解已接受和失败的发送。
接收端可以触发您自己的流程,但 Webhook 事件本身不会授予访问权限。