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

# Preview a gallery template

> A gallery or shared template's content for its preview. Public: no sign-in needed. A shared template that isn't in the gallery needs the `t` token from its share link.




## OpenAPI

````yaml /openapi/automations.yaml get /resource-templates/public/{templateId}
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /resource-templates/public/{templateId}:
    get:
      tags:
        - Templates
      summary: Preview a gallery template
      description: >
        A gallery or shared template's content for its preview. Public: no
        sign-in needed. A shared template that isn't in the gallery needs the
        `t` token from its share link.
      operationId: previewGalleryTemplate
      parameters:
        - $ref: '#/components/parameters/templateId'
        - name: t
          in: query
          description: The token from a template share link.
          schema:
            type: string
      responses:
        '200':
          description: The template.
          content:
            application/json:
              schema:
                type: object
                properties:
                  template:
                    $ref: '#/components/schemas/GalleryTemplate'
        '404':
          description: '"Template unavailable"'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  parameters:
    templateId:
      name: templateId
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    GalleryTemplate:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        kind:
          type: string
          description: '`workflow`, `agent`, `table` or `list`.'
        revision:
          type: integer
          description: Send this back when copying.
        payload:
          type: object
          additionalProperties: true
          description: The template's content.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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