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

# list templates

> list your templates by type and, for report templates, by parent report. each template carries id, type, name, parent_report, sub_report, sort_order, configuration and, for report templates, the page url; the built-in What's in Play and screener templates appear as read_only entries with negative ids. works with writes off.



## OpenAPI

````yaml /openapi-public.json get /v1/settings/templates
openapi: 3.1.0
info:
  title: Edgeful API
  description: >-
    Public API reference for Edgeful market analysis. The bearer token is your
    Edgeful API key. Reports support the docs playground. Report responses
    include row-level output in `detailed` only when your plan includes
    row-level detail.
  version: 1.0.0
servers:
  - url: https://api.edgeful.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: reports
  - name: discovery
  - name: live data
  - name: settings
  - name: custom reports
paths:
  /v1/settings/templates:
    get:
      tags:
        - settings
      summary: list templates
      description: >-
        list your templates by type and, for report templates, by parent report.
        each template carries id, type, name, parent_report, sub_report,
        sort_order, configuration and, for report templates, the page url; the
        built-in What's in Play and screener templates appear as read_only
        entries with negative ids. works with writes off.
      operationId: list_templates
      parameters:
        - name: template_type
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - report
                  - wip
                  - screener
                type: string
              - type: 'null'
            description: only templates of this type.
            title: Template Type
          description: only templates of this type.
        - name: parent_report
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 80
                minLength: 1
              - type: 'null'
            description: 'report templates only: only templates of this report page.'
            title: Parent Report
          description: 'report templates only: only templates of this report page.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplatesListResponse'
        '400':
          description: >-
            The request names a value Edgeful cannot use; `detail` says which
            values are valid.
          content:
            application/json:
              examples:
                refused:
                  summary: refused
                  value:
                    detail: NQX is not a futures ticker Edgeful knows.
        '403':
          description: Valid API key, but the account has no API-enabled subscription.
          content:
            application/json:
              examples:
                missing_entitlement:
                  summary: missing entitlement
                  value:
                    detail:
                      detail: No active subscription with API access found.
                      code: missing_entitlement
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.edgeful.com/v1/settings/templates' \
              --header 'Authorization: Bearer <api-key>'
        - lang: python
          label: Python
          source: |-
            import requests

            url = "https://api.edgeful.com/v1/settings/templates"
            headers = {"Authorization": "Bearer <api-key>"}

            response = requests.get(url, headers=headers)
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: |-
            const url = "https://api.edgeful.com/v1/settings/templates";
            const options = {
              method: "GET",
              headers: { Authorization: "Bearer <api-key>" },
            };

            const response = await fetch(url, options);
            const data = await response.json();
            console.log(data);
        - lang: php
          label: PHP
          source: >-
            <?php

            $ch = curl_init("https://api.edgeful.com/v1/settings/templates");

            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

            curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer
            <api-key>"]);

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

            $response = curl_exec($ch);

            curl_close($ch);

            echo $response;
        - lang: go
          label: Go
          source: |-
            package main

            import (
                "fmt"
                "io"
                "net/http"
            )

            func main() {
                req, _ := http.NewRequest("GET", "https://api.edgeful.com/v1/settings/templates", nil)
                req.Header.Set("Authorization", "Bearer <api-key>")
                resp, _ := http.DefaultClient.Do(req)
                defer resp.Body.Close()
                body, _ := io.ReadAll(resp.Body)
                fmt.Println(string(body))
            }
        - lang: java
          label: Java
          source: >-
            import java.net.URI;

            import java.net.http.HttpClient;

            import java.net.http.HttpRequest;

            import java.net.http.HttpResponse;


            HttpClient client = HttpClient.newHttpClient();

            HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://api.edgeful.com/v1/settings/templates"))
                .header("Authorization", "Bearer <api-key>")
                .method("GET", HttpRequest.BodyPublishers.noBody())
                .build();
            HttpResponse<String> response = client.send(request,
            HttpResponse.BodyHandlers.ofString());

            System.out.println(response.body());
        - lang: ruby
          label: Ruby
          source: >-
            require "net/http"

            require "uri"


            uri = URI("https://api.edgeful.com/v1/settings/templates")

            request = Net::HTTP::Get.new(uri)

            request["Authorization"] = "Bearer <api-key>"


            response = Net::HTTP.start(uri.hostname, uri.port, use_ssl:
            uri.scheme == "https") do |http|
              http.request(request)
            end

            puts response.body
components:
  schemas:
    TemplatesListResponse:
      properties:
        count:
          type: integer
          title: Count
          description: number of templates listed.
        templates:
          items:
            $ref: '#/components/schemas/TemplateEntry'
          type: array
          title: Templates
          description: the templates, built-in ones first.
      additionalProperties: true
      type: object
      required:
        - count
        - templates
      title: TemplatesListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TemplateEntry:
      properties:
        id:
          type: integer
          title: Id
          description: template id; negative for a built-in template.
        type:
          type: string
          title: Type
          description: report, wip or screener.
        name:
          type: string
          title: Name
          description: template name.
        parent_report:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Report
          description: 'report templates: the report page''s slug.'
        sub_report:
          anyOf:
            - type: string
            - type: 'null'
          title: Sub Report
          description: 'report templates: the page''s sub-report slug.'
        sort_order:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sort Order
          description: position in the picker.
        configuration:
          anyOf:
            - additionalProperties:
                $ref: '#/components/schemas/JsonValue'
              type: object
            - type: 'null'
          title: Configuration
          description: the stored configuration, which can be sent back to save it again.
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: 'report templates: the page in Edgeful.'
        read_only:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Read Only
          description: true for a template Edgeful ships.
      additionalProperties: true
      type: object
      required:
        - id
        - type
        - name
      title: TemplateEntry
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    JsonValue: {}
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Send your Edgeful API key in the Authorization header as `Bearer
        <api-key>` (for example, `Bearer ef_live_<random>`).

````

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