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

# List automation templates

> List the published Sazabi automation template catalog. Metadata only; template content (script bodies and prompts) is not exposed.



## OpenAPI

````yaml /openapi.json get /automation-templates
openapi: 3.1.1
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
paths:
  /automation-templates:
    get:
      tags:
        - Automations
      summary: List automation templates
      description: >-
        List the published Sazabi automation template catalog. Metadata only;
        template content (script bodies and prompts) is not exposed.
      operationId: automationTemplates.list
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  templates:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Published template identifier, e.g.
                            "status-page-github".
                        templateGroup:
                          type: string
                          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
                          description: >-
                            Template group (catalog shelf) the entry sits on,
                            independent of the entry's kind.
                        kind:
                          enum:
                            - script
                          type: string
                          description: >-
                            How an installed copy would run: script entries are
                            bash checks on a cron schedule.
                        name:
                          type: string
                          description: Template display name.
                        description:
                          type: string
                          description: Human-facing summary of what the template does.
                        prerequisites:
                          type: array
                          items:
                            type: object
                            properties:
                              anyOf:
                                type: array
                                minItems: 1
                                items:
                                  type: object
                                  properties:
                                    kind:
                                      enum:
                                        - log_source
                                        - mcp_connector
                                        - sandbox_cli
                                        - integration
                                        - repository
                                      type: string
                                    key:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                  required:
                                    - kind
                                    - key
                            required:
                              - anyOf
                        inputSchema:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties:
                            type: object
                            properties:
                              type:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                type: string
                              required:
                                type: boolean
                              default:
                                anyOf:
                                  - type: string
                                  - type: number
                                  - type: boolean
                            required:
                              - type
                        defaultCron:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: Default cron schedule the template ships with.
                        version:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          description: >-
                            Catalog entry version, bumped when the content
                            changes.
                        publishedAt:
                          type: string
                          format: date-time
                          description: When the entry was published to the catalog.
                      required:
                        - id
                        - templateGroup
                        - kind
                        - name
                        - description
                        - prerequisites
                        - inputSchema
                        - defaultCron
                        - version
                        - publishedAt
                    description: >-
                      Published catalog entries, ordered by template group then
                      id. The catalog is global Sazabi-owned data and small by
                      design, so the list is unpaginated.
                required:
                  - templates

````

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