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

# List agent evidence work pattern templates

> Requires scopes: traces:read



## OpenAPI

````yaml /api-reference/openapi.json get /api/agent-evidence/templates
openapi: 3.1.0
info:
  title: EvalGate API
  version: 3.7.6
  description: EvalGate API. See docs/api-contract.md for stability commitments.
servers:
  - url: https://evalgate.com
    description: Production
  - url: http://localhost:3000
    description: Local
security: []
paths:
  /api/agent-evidence/templates:
    get:
      tags:
        - agent evidence
      summary: List agent evidence work pattern templates
      description: 'Requires scopes: traces:read'
      operationId: get_agent_evidence_templates
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiAgentEvidenceTemplatesResponse200ApplicationJson
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth:
            - traces:read
components:
  schemas:
    GetApiAgentEvidenceTemplatesResponse200ApplicationJson:
      type: object
      properties:
        productLanguage:
          type: string
        spine:
          type: array
          items:
            type: string
        operatingLoop:
          type: array
          items:
            type: string
        controlSurfaces:
          type: array
          items:
            type: string
        workPatterns:
          type: array
          items:
            type: object
            properties:
              id:
                oneOf:
                  - type: string
                    enum:
                      - answer_support
                  - type: string
                    enum:
                      - retrieve_cite_ground
                  - type: string
                    enum:
                      - extract_classify_route
                  - type: string
                    enum:
                      - decide_recommend
                  - type: string
                    enum:
                      - execute_workflow
                  - type: string
                    enum:
                      - create_content
                  - type: string
                    enum:
                      - modify_code_systems
                  - type: string
                    enum:
                      - analyze_data
                  - type: string
                    enum:
                      - monitor_detect_alert
                  - type: string
                    enum:
                      - coordinate_agents
              name:
                type: string
              summary:
                type: string
              defaultEvalLayers:
                type: array
                items:
                  type: string
              metrics:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - correctness
                    - type: string
                      enum:
                        - cost
                    - type: string
                      enum:
                        - task_success
                    - type: string
                      enum:
                        - groundedness
                    - type: string
                      enum:
                        - citation_fidelity
                    - type: string
                      enum:
                        - policy_adherence
                    - type: string
                      enum:
                        - safety_pass_rate
                    - type: string
                      enum:
                        - tool_selection_accuracy
                    - type: string
                      enum:
                        - argument_accuracy
                    - type: string
                      enum:
                        - side_effect_violation_rate
                    - type: string
                      enum:
                        - human_review_score
                    - type: string
                      enum:
                        - human_rework_rate
                    - type: string
                      enum:
                        - escalation_correctness
                    - type: string
                      enum:
                        - completion_rate
                    - type: string
                      enum:
                        - latency
                    - type: string
                      enum:
                        - retries
                    - type: string
                      enum:
                        - rollback_rate
                    - type: string
                      enum:
                        - incident_rate
                    - type: string
                      enum:
                        - adoption
                    - type: string
                      enum:
                        - business_impact
              riskModules:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - policy_violation
                    - type: string
                      enum:
                        - prompt_injection
                    - type: string
                      enum:
                        - tool_misuse
                    - type: string
                      enum:
                        - money_movement
                    - type: string
                      enum:
                        - pii
                    - type: string
                      enum:
                        - phi
                    - type: string
                      enum:
                        - pci
                    - type: string
                      enum:
                        - secrets_exposure
                    - type: string
                      enum:
                        - financial_exposure
                    - type: string
                      enum:
                        - legal_exposure
                    - type: string
                      enum:
                        - customer_harm
                    - type: string
                      enum:
                        - clinical_safety
                    - type: string
                      enum:
                        - hallucination
                    - type: string
                      enum:
                        - unsupported_citation
                    - type: string
                      enum:
                        - unsafe_side_effect
                    - type: string
                      enum:
                        - code_security_regression
                    - type: string
                      enum:
                        - data_leakage
                    - type: string
                      enum:
                        - brand_reputation_risk
                    - type: string
                      enum:
                        - operational_downtime
              sideEffectClasses:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - draft
                    - type: string
                      enum:
                        - none
                    - type: string
                      enum:
                        - read
                    - type: string
                      enum:
                        - write
                    - type: string
                      enum:
                        - classify
                    - type: string
                      enum:
                        - recommend
                    - type: string
                      enum:
                        - update_record
                    - type: string
                      enum:
                        - delete
                    - type: string
                      enum:
                        - external_send
                    - type: string
                      enum:
                        - code_change
                    - type: string
                      enum:
                        - deployment_change
                    - type: string
                      enum:
                        - permission_change
                    - type: string
                      enum:
                        - money_movement
                    - type: string
                      enum:
                        - legal_commitment
                    - type: string
                      enum:
                        - customer_contact
                    - type: string
                      enum:
                        - safety_critical_action
                    - type: string
                      enum:
                        - clinical_or_safety_relevant_action
              policyGates:
                type: array
                items:
                  type: string
              evidenceRequirements:
                type: array
                items:
                  type: string
              recommendedMonitors:
                type: array
                items:
                  type: string
              qualityCaseSections:
                type: array
                items:
                  type: string
            additionalProperties: false
            required:
              - id
              - name
              - summary
              - defaultEvalLayers
              - metrics
              - riskModules
              - sideEffectClasses
              - policyGates
              - evidenceRequirements
              - recommendedMonitors
              - qualityCaseSections
        riskModules:
          type: array
          items:
            type: object
            properties:
              id:
                oneOf:
                  - type: string
                    enum:
                      - policy_violation
                  - type: string
                    enum:
                      - prompt_injection
                  - type: string
                    enum:
                      - tool_misuse
                  - type: string
                    enum:
                      - money_movement
                  - type: string
                    enum:
                      - pii
                  - type: string
                    enum:
                      - phi
                  - type: string
                    enum:
                      - pci
                  - type: string
                    enum:
                      - secrets_exposure
                  - type: string
                    enum:
                      - financial_exposure
                  - type: string
                    enum:
                      - legal_exposure
                  - type: string
                    enum:
                      - customer_harm
                  - type: string
                    enum:
                      - clinical_safety
                  - type: string
                    enum:
                      - hallucination
                  - type: string
                    enum:
                      - unsupported_citation
                  - type: string
                    enum:
                      - unsafe_side_effect
                  - type: string
                    enum:
                      - code_security_regression
                  - type: string
                    enum:
                      - data_leakage
                  - type: string
                    enum:
                      - brand_reputation_risk
                  - type: string
                    enum:
                      - operational_downtime
              name:
                type: string
              description:
                type: string
              defaultPolicyGates:
                type: array
                items:
                  type: string
              requiredEvidence:
                type: array
                items:
                  type: string
            additionalProperties: false
            required:
              - id
              - name
              - description
              - defaultPolicyGates
              - requiredEvidence
        connectorFamilies:
          type: array
          items:
            type: object
            properties:
              id:
                oneOf:
                  - type: string
                    enum:
                      - custom
                  - type: string
                    enum:
                      - data
                  - type: string
                    enum:
                      - support
                  - type: string
                    enum:
                      - code_repo
                  - type: string
                    enum:
                      - productivity
                  - type: string
                    enum:
                      - crm
                  - type: string
                    enum:
                      - finance
                  - type: string
                    enum:
                      - cloud_infra
                  - type: string
                    enum:
                      - security
              name:
                type: string
              examples:
                type: array
                items:
                  type: string
              defaultRiskModules:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - policy_violation
                    - type: string
                      enum:
                        - prompt_injection
                    - type: string
                      enum:
                        - tool_misuse
                    - type: string
                      enum:
                        - money_movement
                    - type: string
                      enum:
                        - pii
                    - type: string
                      enum:
                        - phi
                    - type: string
                      enum:
                        - pci
                    - type: string
                      enum:
                        - secrets_exposure
                    - type: string
                      enum:
                        - financial_exposure
                    - type: string
                      enum:
                        - legal_exposure
                    - type: string
                      enum:
                        - customer_harm
                    - type: string
                      enum:
                        - clinical_safety
                    - type: string
                      enum:
                        - hallucination
                    - type: string
                      enum:
                        - unsupported_citation
                    - type: string
                      enum:
                        - unsafe_side_effect
                    - type: string
                      enum:
                        - code_security_regression
                    - type: string
                      enum:
                        - data_leakage
                    - type: string
                      enum:
                        - brand_reputation_risk
                    - type: string
                      enum:
                        - operational_downtime
              defaultSideEffectClasses:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - draft
                    - type: string
                      enum:
                        - none
                    - type: string
                      enum:
                        - read
                    - type: string
                      enum:
                        - write
                    - type: string
                      enum:
                        - classify
                    - type: string
                      enum:
                        - recommend
                    - type: string
                      enum:
                        - update_record
                    - type: string
                      enum:
                        - delete
                    - type: string
                      enum:
                        - external_send
                    - type: string
                      enum:
                        - code_change
                    - type: string
                      enum:
                        - deployment_change
                    - type: string
                      enum:
                        - permission_change
                    - type: string
                      enum:
                        - money_movement
                    - type: string
                      enum:
                        - legal_commitment
                    - type: string
                      enum:
                        - customer_contact
                    - type: string
                      enum:
                        - safety_critical_action
                    - type: string
                      enum:
                        - clinical_or_safety_relevant_action
            additionalProperties: false
            required:
              - id
              - name
              - examples
              - defaultRiskModules
              - defaultSideEffectClasses
        sideEffectClasses:
          type: array
          minItems: 17
          maxItems: 17
          prefixItems:
            - type: string
              enum:
                - none
            - type: string
              enum:
                - read
            - type: string
              enum:
                - draft
            - type: string
              enum:
                - classify
            - type: string
              enum:
                - recommend
            - type: string
              enum:
                - write
            - type: string
              enum:
                - update_record
            - type: string
              enum:
                - delete
            - type: string
              enum:
                - external_send
            - type: string
              enum:
                - code_change
            - type: string
              enum:
                - deployment_change
            - type: string
              enum:
                - permission_change
            - type: string
              enum:
                - money_movement
            - type: string
              enum:
                - legal_commitment
            - type: string
              enum:
                - customer_contact
            - type: string
              enum:
                - safety_critical_action
            - type: string
              enum:
                - clinical_or_safety_relevant_action
        metricDictionary:
          type: array
          items:
            type: object
            properties:
              id:
                oneOf:
                  - type: string
                    enum:
                      - correctness
                  - type: string
                    enum:
                      - cost
                  - type: string
                    enum:
                      - task_success
                  - type: string
                    enum:
                      - groundedness
                  - type: string
                    enum:
                      - citation_fidelity
                  - type: string
                    enum:
                      - policy_adherence
                  - type: string
                    enum:
                      - safety_pass_rate
                  - type: string
                    enum:
                      - tool_selection_accuracy
                  - type: string
                    enum:
                      - argument_accuracy
                  - type: string
                    enum:
                      - side_effect_violation_rate
                  - type: string
                    enum:
                      - human_review_score
                  - type: string
                    enum:
                      - human_rework_rate
                  - type: string
                    enum:
                      - escalation_correctness
                  - type: string
                    enum:
                      - completion_rate
                  - type: string
                    enum:
                      - latency
                  - type: string
                    enum:
                      - retries
                  - type: string
                    enum:
                      - rollback_rate
                  - type: string
                    enum:
                      - incident_rate
                  - type: string
                    enum:
                      - adoption
                  - type: string
                    enum:
                      - business_impact
              name:
                type: string
              description:
                type: string
              evidenceKinds:
                type: array
                items:
                  type: string
            additionalProperties: false
            required:
              - id
              - name
              - description
              - evidenceKinds
        domainTemplates:
          type: array
          items:
            type: object
            properties:
              templateId:
                type: string
              name:
                type: string
              domain:
                type: string
              description:
                type: string
              workPatterns:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - answer_support
                    - type: string
                      enum:
                        - retrieve_cite_ground
                    - type: string
                      enum:
                        - extract_classify_route
                    - type: string
                      enum:
                        - decide_recommend
                    - type: string
                      enum:
                        - execute_workflow
                    - type: string
                      enum:
                        - create_content
                    - type: string
                      enum:
                        - modify_code_systems
                    - type: string
                      enum:
                        - analyze_data
                    - type: string
                      enum:
                        - monitor_detect_alert
                    - type: string
                      enum:
                        - coordinate_agents
              behaviorContracts:
                type: array
                items:
                  type: object
                  properties:
                    title:
                      type: string
                    contractText:
                      type: string
                  additionalProperties: false
                  required:
                    - title
                    - contractText
              evalPrograms:
                type: array
                items:
                  type: string
              riskModules:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - policy_violation
                    - type: string
                      enum:
                        - prompt_injection
                    - type: string
                      enum:
                        - tool_misuse
                    - type: string
                      enum:
                        - money_movement
                    - type: string
                      enum:
                        - pii
                    - type: string
                      enum:
                        - phi
                    - type: string
                      enum:
                        - pci
                    - type: string
                      enum:
                        - secrets_exposure
                    - type: string
                      enum:
                        - financial_exposure
                    - type: string
                      enum:
                        - legal_exposure
                    - type: string
                      enum:
                        - customer_harm
                    - type: string
                      enum:
                        - clinical_safety
                    - type: string
                      enum:
                        - hallucination
                    - type: string
                      enum:
                        - unsupported_citation
                    - type: string
                      enum:
                        - unsafe_side_effect
                    - type: string
                      enum:
                        - code_security_regression
                    - type: string
                      enum:
                        - data_leakage
                    - type: string
                      enum:
                        - brand_reputation_risk
                    - type: string
                      enum:
                        - operational_downtime
              connectorFamilies:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - custom
                    - type: string
                      enum:
                        - data
                    - type: string
                      enum:
                        - support
                    - type: string
                      enum:
                        - code_repo
                    - type: string
                      enum:
                        - productivity
                    - type: string
                      enum:
                        - crm
                    - type: string
                      enum:
                        - finance
                    - type: string
                      enum:
                        - cloud_infra
                    - type: string
                      enum:
                        - security
              connectors:
                type: array
                items:
                  type: string
              sideEffectClasses:
                type: array
                items:
                  oneOf:
                    - type: string
                      enum:
                        - draft
                    - type: string
                      enum:
                        - none
                    - type: string
                      enum:
                        - read
                    - type: string
                      enum:
                        - write
                    - type: string
                      enum:
                        - classify
                    - type: string
                      enum:
                        - recommend
                    - type: string
                      enum:
                        - update_record
                    - type: string
                      enum:
                        - delete
                    - type: string
                      enum:
                        - external_send
                    - type: string
                      enum:
                        - code_change
                    - type: string
                      enum:
                        - deployment_change
                    - type: string
                      enum:
                        - permission_change
                    - type: string
                      enum:
                        - money_movement
                    - type: string
                      enum:
                        - legal_commitment
                    - type: string
                      enum:
                        - customer_contact
                    - type: string
                      enum:
                        - safety_critical_action
                    - type: string
                      enum:
                        - clinical_or_safety_relevant_action
              metrics:
                type: array
                items:
                  type: string
              policyGates:
                type: array
                items:
                  type: string
              qualityCaseEvidence:
                type: array
                items:
                  type: string
              recommendedMonitors:
                type: array
                items:
                  type: string
            additionalProperties: false
            required:
              - templateId
              - name
              - domain
              - description
              - workPatterns
              - behaviorContracts
              - evalPrograms
              - riskModules
              - connectorFamilies
              - connectors
              - sideEffectClasses
              - metrics
              - policyGates
              - qualityCaseEvidence
              - recommendedMonitors
        gallery:
          type: array
          items:
            type: object
            properties:
              templateId:
                type: string
              title:
                type: string
              description:
                type: string
              primaryPattern:
                oneOf:
                  - type: string
                    enum:
                      - answer_support
                  - type: string
                    enum:
                      - retrieve_cite_ground
                  - type: string
                    enum:
                      - extract_classify_route
                  - type: string
                    enum:
                      - decide_recommend
                  - type: string
                    enum:
                      - execute_workflow
                  - type: string
                    enum:
                      - create_content
                  - type: string
                    enum:
                      - modify_code_systems
                  - type: string
                    enum:
                      - analyze_data
                  - type: string
                    enum:
                      - monitor_detect_alert
                  - type: string
                    enum:
                      - coordinate_agents
                  - type: string
                    enum:
                      - blank
              domain:
                type: string
              outcomes:
                type: array
                items:
                  type: string
            additionalProperties: false
            required:
              - templateId
              - title
              - description
              - primaryPattern
              - outcomes
      additionalProperties: false
      required:
        - productLanguage
        - spine
        - operatingLoop
        - controlSurfaces
        - workPatterns
        - riskModules
        - connectorFamilies
        - sideEffectClasses
        - metricDictionary
        - domainTemplates
        - gallery
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - VALIDATION_ERROR
                - RATE_LIMITED
                - CONFLICT
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
                - QUOTA_EXCEEDED
                - NO_ORG_MEMBERSHIP
                - CROSS_ORG_REFERENCE
                - INCOMPLETE
                - MALFORMED
            message:
              type: string
            details: {}
            requestId:
              type: string
              format: uuid
          required:
            - code
            - message
      required:
        - error
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Conflict:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or Session Token

````