---
title: "Return all source templates of a customer (deprecated)."
method: GET
path: "/v1/sourceTemplate"
tags: ["sourceTemplateManagementExternal"]
deprecated: true
---

# Return all source templates of a customer (deprecated).

`GET /v1/sourceTemplate`

> **Deprecated.**

Get a list of source template.

**DEPRECATED**: This endpoint will be removed soon. Please use GET /v1/sourceTemplates instead.

## Query parameters

- `showDisabled` boolean
- `name` string, nullable

## Response `200`

A list of source templates.

- SourceTemplateListResponse
  - `data` SourceTemplateDefinition[], required — List of source templates.
    - `schemaRef` SchemaRef — schema reference for source template.
      - `type` string, required — type of source template.
    - `id` string — id of source template.
    - `inputJson` object — inputJson of source template
    - `config` string — configuration of source template
    - `selector` Selector — Agent selector conditions
      - `tags` array[] — tags filter for agents
        - OtTag[]
          - `key` string, required — key of the given tag.
          - `values` string[], required — values of the given tag.
      - `names` string[] — names to select custom agents
    - `totalCollectorLinked` integer — count of total collector linked with this source template.
    - `createdAt` string, date-time — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    - `modifiedAt` string, date-time — Modification timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    - `createdBy` string — Id of the user who created source template
    - `modifiedBy` string — Id of the user who last modified the source template
    - `status` 'enable' | 'disable' — Status of Source template
    - `isEnabled` boolean — A boolean parameter to get if the source template is enabled.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/versions/18a824df1e78/schema)
