---
title: "Returns a specific automation for a projecttemplate."
method: GET
path: "/projecttemplates/{projectTemplateId}/automations/{automationId}"
tags: ["projectTemplateAutomations"]
---

# Returns a specific automation for a projecttemplate.

`GET /projecttemplates/{projectTemplateId}/automations/{automationId}`

Returns a specific automation of the projecttemplate with the specified id.
            Returns NotFound if the automation doesnt exist.
            To get the the automation data the user needs to have 'read' permissions of
            the feature 'project-manage-config' globally.

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:read` permissions.</Check>

## Path parameters

- `automationId` string, uuid, required
- `projectTemplateId` string, uuid, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- Automation
  - `id` string, uuid — The id of the automation.
  - `createdBy` string, uuid — The id of the user who created the automation.
  - `createdOn` string, date-time — The date the automation was created.
  - `updatedBy` string, uuid — The id of the user who updated the automation.
  - `updatedOn` string, date-time — The date the automation was updated.
  - `triggerId` string, uuid — The id of the trigger which is related to the automation.
  - `trigger` Trigger
    - `updatedOn` string, date-time — The date the trigger was updated.
    - `type` string, nullable — The type of the trigger.
    - `values` TriggerValue[], nullable — The values of the trigger.
      - `name` string, nullable — The name of the trigger value.
      - `value` string, nullable — The value of the trigger value.
  - `enabled` boolean — Whether the automation is enabled.
  - `state` string, nullable — The state of the automation. See AutomationsService.DAL.Models.AutomationState for the possible values.
  - `createdByProjectTemplate` boolean — Whether the automation was created from an automation template of a project template.
  - `projectId` string, uuid, nullable — The id of the project which is related to the automation.
  - `projectTemplateId` string, uuid, nullable — The id of the project template which is related to the automation.
  - `actions` Action[], nullable — The actions which is related to the automation.
    - `id` string, uuid — The id of the action.
    - `createdBy` string, uuid — The id of the user who created the action.
    - `createdOn` string, date-time — The date the action was created.
    - `updatedBy` string, uuid — The id of the user who updated the action.
    - `updatedOn` string, date-time — The date the action was updated.
    - `type` string, nullable — The type of the action.
    - `order` number, double, nullable — The order of the action.
    - `values` ActionValue[], nullable — The values of the action.
      - `name` string, nullable — The name of the action value.
      - `value` string, nullable — The value of the action value.
  - `workflowId` string, uuid, nullable — The workflow this automation belongs to, if any.
  - `createdByAutomationIdFromWorkflow` string, uuid, nullable — The id of the workflow automation that served as the template for this automation.
  - `failed` ErrorResponse — The API error response.
    - `code` string, required — The error code.
    - `description` string, required — The description of the error.
    - `link` string, required — The link to the API documentation page.
    - `details` string[], nullable — A list of details describing the error.
    - `validationErrors` ValidationErrorResponse[], nullable — If a validation error occurred, this contains the validation errors for each property.
      - `property` string, nullable — The name of the property that failed validation.
      - `message` string, nullable — The reason why this property failed validation.
    - `traceId` string, nullable — The request trace id for tracking the request.

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
