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

# Send templated email

> Sends an email using a Resend template with dynamic variables and queues it for delivery. Templates are managed in the Resend dashboard. Requires `emails.email.sender` permission.



## OpenAPI

````yaml api-reference/emails.yaml post /template/send
openapi: 3.0.3
info:
  title: emails
  description: >-
    The Emails Service is responsible for sending emails on behalf of other
    services. It also manages and stores all email templates to ensure
    consistent and centralized communication formatting.
  version: 1.0.0
servers:
  - url: https://emails.platform.arb.inc
security: []
tags:
  - name: /
  - name: email
  - name: html
  - name: template
  - name: webhooks
paths:
  /template/send:
    post:
      tags:
        - template
      summary: Send templated email
      description: >-
        Sends an email using a Resend template with dynamic variables and queues
        it for delivery. Templates are managed in the Resend dashboard. Requires
        `emails.email.sender` permission.
      operationId: sendTemplateEmail
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - expires
                - to
                - template
                - variables
                - idempotency_key
              properties:
                expires:
                  type: string
                  format: date-time
                  description: Expiration time for the email send request
                  example: '2025-08-15T10:30:00Z'
                to:
                  type: array
                  minItems: 1
                  description: List of recipient email addresses
                  items:
                    type: object
                    required:
                      - address
                    properties:
                      name:
                        type: string
                        description: Optional display name for recipient
                        example: John Doe
                      address:
                        type: string
                        format: email
                        description: Recipient email address
                        example: user@example.com
                template:
                  type: string
                  description: Template identifier from Resend
                  example: notice-of-service
                variables:
                  type: object
                  description: Key-value pairs of variables to populate in the template
                  additionalProperties:
                    type: string
                  example:
                    case_id: 2025-08-00292
                    party_name: John Doe
                    filing_date: '2025-08-15'
                idempotency_key:
                  type: string
                  maxLength: 100
                  description: Unique key to prevent duplicate email sends
                  example: notice-2025-08-00292
      responses:
        '200':
          description: Email successfully queued for delivery
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: email queued for delivery
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````