title: the reply to the first CancelTask
source: manuals/a2a-101/capture/out/10-cancel.http
lines: 73-136
lang: text
note: Read the state, the status message, and what the task still carries in history and artifacts.
---
HTTP/1.1 200 OK
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "id": "f22ed7af-848d-4f4d-8cd1-3204d1e1bbaf",
    "contextId": "9b584e1f-b948-453f-9250-18314071afc7",
    "status": {
      "state": "TASK_STATE_CANCELED",
      "message": {
        "messageId": "9f730657-74a7-43df-b405-5a8270fe73a9",
        "contextId": "9b584e1f-b948-453f-9250-18314071afc7",
        "taskId": "f22ed7af-848d-4f4d-8cd1-3204d1e1bbaf",
        "role": "ROLE_AGENT",
        "parts": [
          {
            "text": "Canceled at the client's request."
          }
        ]
      },
      "timestamp": "2026-10-06T09:00:03.750Z"
    },
    "history": [
      {
        "messageId": "7b89296c-6dcb-4c50-8857-7eb1924770d3",
        "contextId": "9b584e1f-b948-453f-9250-18314071afc7",
        "taskId": "f22ed7af-848d-4f4d-8cd1-3204d1e1bbaf",
        "role": "ROLE_USER",
        "parts": [
          {
            "text": "Run the full suite for payments-api at commit 9f3c2e1"
          }
        ]
      },
      {
        "messageId": "4e4233ac-1dca-4ecc-8b5f-0a7afff7c0bf",
        "contextId": "9b584e1f-b948-453f-9250-18314071afc7",
        "taskId": "f22ed7af-848d-4f4d-8cd1-3204d1e1bbaf",
        "role": "ROLE_AGENT",
        "parts": [
          {
            "text": "Checking out 9f3c2e1 and starting the suite"
          }
        ]
      }
    ],
    "artifacts": [
      {
        "artifactId": "test-log",
        "name": "test-log.txt",
        "parts": [
          {
            "text": "tests/test_suite_01.py ........\n"
          },
          {
            "text": "tests/test_suite_02.py ........\n"
          }
        ]
      }
    ]
  }
}
