---
title: "GetTask"
method: POST
path: "/gitpod.v1.EnvironmentAutomationService/GetTask"
tags: ["gitpod.v1.EnvironmentAutomationService"]
---

# GetTask

`POST /gitpod.v1.EnvironmentAutomationService/GetTask`

Gets details about a specific automation task.

 Use this method to:
 - Check task configuration
 - View task dependencies
 - Monitor task status

 ### Examples

 - Get task details:

   Retrieves information about a specific task.

   ```yaml
   id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   ```

## Request body

- GitpodV1GetTaskRequest
  - `id` string, uuid

## Response `200`

Success

- GitpodV1GetTaskResponse
  - `task` GitpodV1Task, required
    - `dependsOn` string[] — dependencies specifies the IDs of the automations this task depends on.
    - `environmentId` string, uuid
    - `id` string, uuid, required
    - `metadata` GitpodV1TaskMetadata — unresolved $ref
    - `spec` GitpodV1TaskSpec — unresolved $ref

## Other responses

- `default` — Error

## Changes

- **2026-07-30** `44d50c2ac284` — 1 breaking, 1 warning, 2 info
  - added `subschema #1, subschema #2` to the `task/spec/runsOn` response property `oneOf` list for the response status `200`
  - removed the optional property `task/spec/runsOn/terminal` from the response with the `200` status
  - added the optional property `task/spec/prebuildRequiresSuccess` to the response with the `200` status
  - removed `subschema #1, subschema #2, subschema #3` from the `task/spec/runsOn` response property `oneOf` list for the response status `200`
- **2026-04-02** `dabc0ff98cd7` — 1 breaking, 3 info
  - added `subschema #1, subschema #2, subschema #3` to the `task/spec/runsOn` response property `oneOf` list for the response status `200`
  - added the optional property `task/spec/runsOn/terminal` to the response with the `200` status
  - removed the `PRINCIPAL_AGENT_EXECUTION` enum value from the `task/metadata/creator/principal` response property for the response status `200`
  - removed `subschema #1, subschema #2` from the `task/spec/runsOn` response property `oneOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.EnvironmentAutomationService/GetTask/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
