get_clientkey

get_clientkey只读扩展
获取 clientkey

Call via POST http://127.0.0.1:3000/get_clientkey (JSON params as the body) or WebSocket.

Parameters

This action takes no parameters.

Returns (data)

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

Every response is wrapped in the standard envelope: { "status": "ok", "retcode": 0, "data": ... }. The table below describes data.

Field Type Required Description
clientKey string clientkey
expireTime string 过期时间
keyIndex string key 索引
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "clientKey": {
      "type": "string",
      "description": "clientkey"
    },
    "expireTime": {
      "type": "string",
      "description": "过期时间"
    },
    "keyIndex": {
      "type": "string",
      "description": "key 索引"
    }
  },
  "required": [
    "clientKey",
    "expireTime",
    "keyIndex"
  ]
}

Examples

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 '{}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.