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

# List Templates

> List the journey templates available to a dealership.

Templates are the remote-report configs set up in the Dashboard
("Réglages à distance"): the entity's templates, or the organization's when
the entity has none. Pass a template `id` as `template` to
`POST /public/reports/create-lead`.

- **dealership** (required): dealership id; must belong to the API key's
  organization.



## OpenAPI

````yaml get /public/templates/
openapi: 3.1.0
info:
  title: Carviz API
  version: 1.0.0
servers:
  - url: https://api.carviz.com/prod
security: []
paths:
  /public/templates/:
    get:
      tags:
        - public
      summary: List Templates
      description: >-
        List the journey templates available to a dealership.


        Templates are the remote-report configs set up in the Dashboard

        ("Réglages à distance"): the entity's templates, or the organization's
        when

        the entity has none. Pass a template `id` as `template` to

        `POST /public/reports/create-lead`.


        - **dealership** (required): dealership id; must belong to the API key's
          organization.
      operationId: list_templates_public_templates__get
      parameters:
        - name: dealership
          in: query
          required: true
          schema:
            type: string
            title: Dealership
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTemplatesList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublicTemplatesList:
      properties:
        total:
          type: integer
          title: Total
        items:
          items:
            $ref: '#/components/schemas/PublicTemplateRead'
          type: array
          title: Items
      type: object
      required:
        - total
        - items
      title: PublicTemplatesList
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublicTemplateRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
          default: Template
        steps:
          items: {}
          type: array
          title: Steps
      type: object
      required:
        - id
      title: PublicTemplateRead
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.