---
title: "Returns the workflow definition for a template."
method: GET
path: "/v2.1/accounts/{accountId}/templates/{templateId}/workflow"
tags: ["EnvelopeWorkflowDefinition"]
---

# Returns the workflow definition for a template.

`GET /v2.1/accounts/{accountId}/templates/{templateId}/workflow`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/templates/{templateId}/workflow`
- Auth: none declared

Returns the workflow definition for the template specified by `templateId`. If the template does not have a workflow object, this method returns a 404.

## Path parameters

- `accountId` string, required
- `templateId` string, required

## Response `200`

Successful response.

## Other responses

- `400`: Error encountered.

## Changes

- **2022-09-15** (v2) `df4506977b42`: 1 info
  - api operation id `EnvelopeWorkflowDefinition_GetTemplateWorkflowDefinition` removed and replaced with `TemplateWorkflowDefinition_GetTemplateWorkflowDefinition`
- **2020-11-05** (v2) `deba7c083bb4`: 1 info
  - endpoint added
- **2020-10-06** (v2) `a555432b7bf9`: 1 breaking
  - api path removed without deprecation
- **2020-10-06** (v2) `78c0d7f607b3`: 1 info
  - endpoint added
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/templates/:templateId/workflow/get.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
