---
title: "Poll async task status"
method: GET
path: "/api/v3/tasks/analysis/apply-template/{task_id}"
tags: ["Analysis"]
---

# Poll async task status

`GET /api/v3/tasks/analysis/apply-template/{task_id}`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/tasks/analysis/apply-template/{task_id}`
- Auth: HTTP bearer

Poll the status of the "Apply an automation template" task.

Apply a published automation template to an Analysis. Populates the Analysis with the template's pipeline steps, substituting the provided data frame and config variable bindings. The Analysis then runs asynchronously. The template must be published before it can be applied. Returns an async task link that can be polled for completion.

## Path parameters

- `task_id` string, required

## Headers

- `EARLY-ACCESS` string

## Response `200`

OK

- AnalysisApplytemplateGetResponse200
  - `message` string, required
  - `result` Analysis: Represents a data processing pipeline. Each Analysis contains a graph of AutomationSteps that works with data. An automation template (see `AutomationTemplate`) may be applied onto an analysis to provide a pre-configured graph of steps.
    - `__typename` string
    - `archiveReason` string, nullable
    - `archived` boolean
    - `createdAt` string, datetime
    - `creator` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `description` string, nullable
    - `folder` FolderRef
      - `__typename` string
      - `id` string, api_id
    - `id` string
    - `modifiedAt` string, datetime
    - `name` string
    - `statusCode` 'AI_PROPOSED' | 'BLOCKED' | 'FAILED' | 'HALTED' | 'RUNNING' | 'SUCCEEDED' | 'SUCCEEDED_WITH_ERRORS' | 'WAITING'
    - `steps` string, uri
    - `webUrl` string
  - `status` 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED', required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/benchling/apis/benchling-api.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api/revisions/c9f087b98b8b?raw)
