> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ionworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Optimization Templates

> List all optimization templates accessible from the given project.

Returns the project's own templates combined with system-level templates.

Parameters
----------
project_id : str
    The owner project whose templates should be retrieved.

Returns
-------
list[OptimizationTemplate]
    Owned templates followed by system templates.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /optimization_templates
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /optimization_templates:
    get:
      tags:
        - optimization_templates
      summary: List Optimization Templates
      description: >-
        List all optimization templates accessible from the given project.


        Returns the project's own templates combined with system-level
        templates.


        Parameters

        ----------

        project_id : str
            The owner project whose templates should be retrieved.

        Returns

        -------

        list[OptimizationTemplate]
            Owned templates followed by system templates.
      operationId: list_optimization_templates_optimization_templates_get
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
            title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OptimizationTemplate'
                title: >-
                  Response List Optimization Templates Optimization Templates
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OptimizationTemplate:
      properties:
        name:
          type: string
          title: Name
          description: The name of the optimization template.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: An optional description for the template.
        initial_form_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Initial Form Data
          description: Initial form data values.
        id:
          type: string
          title: Id
          description: The unique identifier for the template.
        organization_id:
          type: string
          title: Organization Id
          description: The ID of the organization this template belongs to.
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: The ID of the owner project (None for system templates).
        access_level:
          type: string
          title: Access Level
          description: 'Template scope: ''system'' for built-in, ''project'' for user-created.'
          default: project
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp of when the template was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp of when the template was last updated.
      type: object
      required:
        - name
        - id
        - organization_id
        - created_at
        - updated_at
      title: OptimizationTemplate
      description: Model representing an optimization template as returned by the API.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````