Clerk · Capability

Clerk Backend Api — Email & SMS Templates

Clerk Email & SMS Templates capability. 6 operations. Lead operation: List All Templates.

Run with Naftiko ClerkEmail & SMS Templates

Capability Spec

clerk-backend-api-email-sms-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Clerk Backend Api — Email & SMS Templates
  description: 'Clerk Email & SMS Templates capability. 6 operations. Lead operation: List All Templates.'
  tags:
  - Clerk
  - Email & SMS Templates
  created: '2026-05-22'
  modified: '2026-05-22'
binds:
- namespace: env
  keys:
    CLERK_SECRET_KEY: CLERK_SECRET_KEY
capability:
  consumes:
  - type: http
    namespace: clerk-backend-api-email-sms-templates
    baseUri: https://api.clerk.com/v1
    description: Clerk clerk-backend-api Email & SMS Templates business capability.
    resources:
    - name: templates-template-type
      path: /templates/{template_type}
      operations:
      - name: GetTemplateList
        method: GET
        description: List All Templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: template_type
          in: path
          type: string
          description: The type of templates to list (email or SMS)
          required: true
    - name: templates-template-type-slug
      path: /templates/{template_type}/{slug}
      operations:
      - name: GetTemplate
        method: GET
        description: Retrieve a Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: template_type
          in: path
          type: string
          description: The type of templates to retrieve (email or SMS)
          required: true
        - name: slug
          in: path
          type: string
          description: The slug (i.e. machine-friendly name) of the template to retrieve
          required: true
      - name: UpsertTemplate
        method: PUT
        description: Update a Template for a Given Type and Slug
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: template_type
          in: path
          type: string
          description: The type of template to update
          required: true
        - name: slug
          in: path
          type: string
          description: The slug of the template to update
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: templates-template-type-slug-revert
      path: /templates/{template_type}/{slug}/revert
      operations:
      - name: RevertTemplate
        method: POST
        description: Revert a Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: template_type
          in: path
          type: string
          description: The type of template to revert
          required: true
        - name: slug
          in: path
          type: string
          description: The slug of the template to revert
          required: true
    - name: templates-template-type-slug-preview
      path: /templates/{template_type}/{slug}/preview
      operations:
      - name: PreviewTemplate
        method: POST
        description: Preview Changes to a Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: template_type
          in: path
          type: string
          description: The type of template to preview
          required: true
        - name: slug
          in: path
          type: string
          description: The slug of the template to preview
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: templates-template-type-slug-toggle-delivery
      path: /templates/{template_type}/{slug}/toggle_delivery
      operations:
      - name: ToggleTemplateDelivery
        method: POST
        description: Toggle the Delivery by Clerk for a Template of a Given Type and Slug
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: template_type
          in: path
          type: string
          description: The type of template to toggle delivery for
          required: true
        - name: slug
          in: path
          type: string
          description: The slug of the template for which to toggle delivery
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true