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/meMCP
whoamiCù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
| HTTP | code | Ý nghĩa |
|---|---|---|
| 401 | unauthorized | Thiếu khoá/đăng nhập, hoặc khoá không đúng. |
| 429 | rate_limited | Quá 60 yêu cầu/phút cho một khoá hoặc kết nối — đợi theo Retry-After. |
| 503 | paused | API/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": {}
}
}