# Gets templates by ID **GET** `/v1/templates/{id}` **Operation ID**: `getTemplate` **Summary**: Gets templates by ID Gets all versions of a template by ID. Supports query params: latest=true for the latest version, version=x for a specific version. If both are specified, latest takes precedence. ## Tags - Templates ## Parameters - **id** (required) - path - Type: string - **latest** (optional) - query - Type: boolean - **version** (optional) - query - Type: integer ## Responses ### 200 Template retrieved successfully - **Content-Type**: `application/json` / `Template` ### 401 Unauthorized ### 404 Template not found