get_clientkey

get_clientkey只读扩展
获取 clientkey

通过 POST http://127.0.0.1:3000/get_clientkey(请求体为 JSON 参数)或 WebSocket 调用。

输入参数

该动作无需参数。

返回 (data)

{ clientKey, expireTime, keyIndex }:clientkey 及其过期时间与索引。

所有响应都包裹在标准信封中:{ "status": "ok", "retcode": 0, "data": ... }。下表描述 data 字段。

字段 类型 必填 说明
clientKey string clientkey
expireTime string 过期时间
keyIndex string key 索引
原始 JSON Schema
{
  "type": "object",
  "properties": {
    "clientKey": {
      "type": "string",
      "description": "clientkey"
    },
    "expireTime": {
      "type": "string",
      "description": "过期时间"
    },
    "keyIndex": {
      "type": "string",
      "description": "key 索引"
    }
  },
  "required": [
    "clientKey",
    "expireTime",
    "keyIndex"
  ]
}

调用示例

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_clientkey \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{}'
在用 AI 助手?

支持 MCP 的客户端可直接发现并调用本动作,无需手写 HTTP。见 MCP 接入