---
title: "GET /devops/tasks/{id}"
method: GET
path: "/devops/tasks/{id}"
tags: ["InternalTaskContexts"]
---

# GET /devops/tasks/{id}

`GET /devops/tasks/{id}`

Return the context an Expanse worker needs to run an automation-route Task.

## Path parameters

- `id` string, required

## Response `200`

- EaasInternalTaskContext — Context an Expanse worker needs to execute an automation-route Task. Flattens the routing slice (``vendor_id``, ``automation_id``, ``environment``) off the related ``automation_route`` so the worker never has to know about the connector ``Environment`` model. Consumed by ``GET /internal/tasks/{task_id}``.
  - `task_id` string, required
  - `object_id` string, required
  - `event_type` string, required
  - `environment` string, required
  - `automation_id` string, required
  - `vendor_id` string, required
  - `retry_count` integer
  - `rescheduled_count` integer

## Other responses

- `400`

---

[API](https://skmtc.net/cloudblue/apis/cloudblue-connect-api.md) · [All operations](https://skmtc.net/cloudblue/apis/cloudblue-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudblue/cloudblue-connect-api/revisions/0421d2a97c52/schema)
