---
title: "List templates"
method: GET
path: "/v2/templates"
tags: ["Templates"]
---

# List templates

`GET /v2/templates`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/templates`
- Auth: HTTP bearer

Returns a list of available templates.

  ### Usage notes
  - Official Sigma templates are created by SigmaSchedulerRobot.

## Query parameters

- `page` string
- `limit` number, double
- `source` 'internal' | 'external': Filters results to templates based on their source. Set to internal to only retrieve templates created within your organization. Set to external to only retrieve templates shared to your organization. Do not specify a source to list all templates regardless of their source.
- `search` string

## Response `200`

The response body.

- TemplatesListTemplatesResponse200
  - `entries` V2TemplatesGetResponsesContentApplicationJsonSchemaEntriesItems[], required: Array of results returned by the endpoint
    - `templateId` string, required
    - `templateUrlId` string, required
    - `name` string, required
    - `url` string, required
    - `path` string, required
    - `latestVersion` number, double, required
    - `createdBy` string, required: The identifier of the user who created this object.
    - `updatedBy` string, required: The identifier of the user or process that last updated this object.
    - `createdAt` string, date-time, required: When the object was created.
    - `updatedAt` string, date-time, required: When the object was last updated.
    - `isArchived` boolean
    - `tags` V2TemplatesGetResponsesContentApplicationJsonSchemaEntriesItemsTagsItems[]
      - `versionTagId` string, required
      - `name` string, required
  - `nextPage` string, nullable, required: Returns a string that can be used as the `page` parameter in the next request to fetch the next page of results. The last page of results returns `null`.
  - `total` number, double: Total number of results. Useful to determine if there is a need to paginate.
  - `hasMore` boolean: **[Deprecated]** Indicates whether more results are available.

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
