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

# List provider templates

> Returns the template functions available in the catalog for a provider. Requires a valid API key (no specific scope).

Returns the template functions available in the catalog for a provider.


## OpenAPI

````yaml GET /providers/{provider}/templates
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /providers/{provider}/templates:
    get:
      summary: List provider templates
      description: >-
        Returns the template functions available in the catalog for a provider.
        Requires a valid API key (no specific scope).
      parameters:
        - name: provider
          in: path
          required: true
          schema:
            type: string
          description: The provider name.
      responses:
        '200':
          description: Successfully returned the provider's template functions
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ProviderTemplateFunction'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ProviderTemplateFunction:
      description: >-
        A sync or action template function from the provider catalog (no
        deployment metadata).
      oneOf:
        - $ref: '#/components/schemas/NangoSyncFunction'
        - $ref: '#/components/schemas/NangoActionFunction'
    NangoSyncFunction:
      type: object
      required:
        - name
        - type
        - returns
        - json_schema
        - runs
        - auto_start
        - track_deletes
      properties:
        name:
          type: string
        description:
          type: string
        scopes:
          type: array
          items:
            type: string
        type:
          type: string
          enum:
            - sync
        input:
          type: string
        returns:
          type: array
          items:
            type: string
        json_schema:
          type:
            - object
            - 'null'
        runs:
          type:
            - string
            - 'null'
          description: Schedule expression, e.g. `every day`.
        auto_start:
          type: boolean
        track_deletes:
          type: boolean
    NangoActionFunction:
      type: object
      required:
        - name
        - type
        - returns
        - json_schema
      properties:
        name:
          type: string
        description:
          type: string
        scopes:
          type: array
          items:
            type: string
        type:
          type: string
          enum:
            - action
        input:
          type: string
        returns:
          type: array
          items:
            type: string
        json_schema:
          type:
            - object
            - 'null'
    StdError:
      type: object
      additionalProperties: false
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
          properties:
            code:
              type: string
            message:
              type: string
            errors:
              type: array
              items:
                type: object
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: The secret key from your Nango environment.

````