get_rkey_server

get_rkey_server只读扩展
获取 rkey 服务器信息

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

Parameters

This action takes no parameters.

Returns (data)

{ expired_time, name, private_rkey?, group_rkey? }:rkey 过期时间与(存在时的)私聊/群聊 rkey。

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

Field Type Required Description
expired_time integer 过期时间戳(秒)
name string 服务器名(恒 SnowLuma)
private_rkey string 私聊 rkey(存在时返回)
group_rkey string 群聊 rkey(存在时返回)
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "expired_time": {
      "type": "integer",
      "description": "过期时间戳(秒)"
    },
    "name": {
      "type": "string",
      "description": "服务器名(恒 SnowLuma)"
    },
    "private_rkey": {
      "type": "string",
      "description": "私聊 rkey(存在时返回)"
    },
    "group_rkey": {
      "type": "string",
      "description": "群聊 rkey(存在时返回)"
    }
  },
  "required": [
    "expired_time",
    "name"
  ]
}

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_rkey_server \
  -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.