Bỏ qua tới nội dung

Xem lệnhoperation_get

Get an operation

Chỉ đọcHồ sơ: Lõi (luôn có)Quyền: Lệnh · đọc

Status of a command you started: state (queued/waiting/running/succeeded/partial/failed/cancelled/unverified), why it waits and until when (retryAt is a re-check time, not a promise), and per-job results. Optional `wait` blocks up to 25 s for a change.

Không thay đổi gì.

REST

GET
/api/public/v2/operations/{operationId}

MCP

operation_get

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

Tham số

TênỞ đâuKiểuBắt buộcMô tả
operationIdđường dẫnuuidBắt buộc—
waitqueryintegerKhôngMặc định 0. Từ 0 tới 25.

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/operations/3f2c1e9b-6a4d-4c0f-b2e8-3d7a9f1c2e44" \
  -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.
403permission_deniedKhoá/kết nối không có quyền này, hoặc vai trò của người tạo không đủ.
404not_foundKhông có đối tượng này, hoặc bạn không được xem nó.
422validation_failedDữ liệu gửi lên sai kiểu hoặc thiếu trường — xem `violations`.
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": "operation_get",
    "arguments": {
      "operationId": "3f2c1e9b-6a4d-4c0f-b2e8-3d7a9f1c2e44"
    }
  }
}