get_csrf_token

get_csrf_token只读扩展
获取 CSRF 令牌

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

Parameters

This action takes no parameters.

Returns (data)

{ token }:CSRF 令牌(bkn,数值)。

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

Field Type Required Description
token integer CSRF 令牌(bkn)
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "token": {
      "type": "integer",
      "description": "CSRF 令牌(bkn)"
    }
  },
  "required": [
    "token"
  ]
}

Examples

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