Bỏ qua tới nội dung

Tôi là aiwhoami

Who am I

Chỉ đọcHồ sơ: Lõi (luôn có)Quyền: Không cần quyền

Start here. Returns the workspace this key or AI connection works in, the acting person and role, plan state, granted permissions, allowed numbers, enabled tool profiles and the technical limits (wait time, page size, open operations).

Không thay đổi gì.

REST

GET
/api/public/v2/me

MCP

whoami

Cùng tên trên cổng đăng nhập /mcp và cổng khoá /api/public/mcp.

Tham số

Không có tham số — workspace lấy từ khoá hoặc kết nối.

Không gửi workspaceId: luôn lấy từ khoá hoặc kết nối AI.

curl -X GET "https://<ten-mien-cua-ban>/api/public/v2/me" \
  -H "Authorization: Bearer $WA_AUTO_KEY"

Phản hồi (200)

{
  "…": "dữ liệu của thao tác"
}

Lỗi có thể gặp

HTTPcodeÝ nghĩa
401unauthorizedThiếu khoá/đăng nhập, hoặc khoá không đúng.
429rate_limitedQuá 60 yêu cầu/phút cho một khoá hoặc kết nối — đợi theo Retry-After.
503pausedAPI/MCP đang tạm dừng (nút ngắt khẩn của workspace hoặc đội vận hành).

Lỗi theo RFC 9457 (application/problem+json). Xem mọi mã lỗi.

# MCP (JSON-RPC) — tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "whoami",
    "arguments": {}
  }
}