After a task is successfully executed or has exhausted its retry attempts, the task is deleted. Atasks.getrequest for a deleted task returns aNOT_FOUNDerror.
HTTP request
GET https://cloudtasks.googleapis.com/v2/{name=projects/*/locations/*/queues/*/tasks/*}
The responseView specifies which subset of theTaskwill be returned.
By default responseView isBASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.
Authorization forFULLrequirescloudtasks.tasks.fullViewGoogle IAMpermission on theTaskresource.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofTask.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[],[],null,["# Method: projects.locations.queues.tasks.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets a task.\n\nAfter a task is successfully executed or has exhausted its retry attempts, the task is deleted. A `tasks.get` request for a deleted task returns a `NOT_FOUND` error.\n\n### HTTP request\n\n`GET https://cloudtasks.googleapis.com/v2/{name=projects/*/locations/*/queues/*/tasks/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Task](/tasks/docs/reference/rest/v2/projects.locations.queues.tasks#Task).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloud-tasks`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]