---
title: "Get specific lifecycle template"
method: GET
path: "/environment/{environmentId}/lifecycleTemplate/{lifecycleTemplateId}"
tags: ["Lifecycle Template Main Calls"]
---

# Get specific lifecycle template

`GET /environment/{environmentId}/lifecycleTemplate/{lifecycleTemplateId}`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/environment/{environmentId}/lifecycleTemplate/{lifecycleTemplateId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/environment/:environmentId/lifecycleTemplate/:lifecycleTemplateId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Lifecycle template

- LifecycleTemplateResponse
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, required
  - `sourceUrl` string, uri, required: location of the template
  - `cloud_provider` 'AWS' | 'SCW' | 'GCP' | 'ON_PREMISE' | 'AZURE', required
  - `events` object[], required: lis of pre-defined command for each event
    - `name` string, required
    - `entrypoint` string
    - `command` string[], required
  - `max_duration_in_sec` integer, required: Job max allowed duration in seconds. After this allowed time, the job is going to be killed.
  - `resources` object, required
    - `cpu_milli` integer, required
    - `ram_mib` integer, required
  - `variables` object[], required: Variables to inject at the creation of this lifecycle job
    - `name` string, required
    - `description` string, required: Short description to explain the purpose of the variable
    - `default` string, required: Default value for the variable
    - `is_secret` boolean, required: If the variable should be injected as a secret
    - `file` object: If present, the variable should be a file instead of a raw value
      - `path` string, required
      - `enable_interpolation` boolean: if we should interpolate variable inside the file
  - `dockerfile` string, required: Dockerfile of the template

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

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