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

# Send a templated email to a contact

> Renders the email template with the contact's data merged with `vars` and dispatches via the configured provider (Resend/SES). The contact must already exist in the organization.



## OpenAPI

````yaml /openapi.json post /v1/email/send
openapi: 3.0.0
info:
  title: Notealy Public API
  description: >-
    REST API for managing contacts, companies, transactional email and email
    campaigns. Authenticate with a Bearer API token issued from your dashboard
    (Settings → API Tokens).
  version: '1.0'
  contact: {}
servers:
  - url: https://thanos.notealy.com
    description: Production
security: []
tags:
  - name: Me
    description: >-
      Verify the authenticated identity. Call this first to confirm a token is
      alive and discover its scopes.
  - name: People
    description: >-
      Create, read, update and delete people (contacts). Includes tag
      attachment.
  - name: Companies
    description: Create, read, update and delete company records.
  - name: Tags
    description: >-
      List and create tags. Use the ids returned here as `tagIds` in `POST
      /v1/people` to drive automations.
  - name: Email
    description: >-
      Send transactional emails through saved templates, either to a known
      contact or to an arbitrary address.
  - name: Email templates
    description: Discover the email template ids you reference from `Email` endpoints.
  - name: Email campaigns
    description: >-
      List and trigger email campaigns. Requires the email-campaigns plan
      feature.
  - name: Messages
    description: >-
      Send outbound messages across WhatsApp, Instagram and Facebook to a CRM
      contact.
paths:
  /v1/email/send:
    post:
      tags:
        - Email
      summary: Send a templated email to a contact
      description: >-
        Renders the email template with the contact's data merged with `vars`
        and dispatches via the configured provider (Resend/SES). The contact
        must already exist in the organization.
      operationId: email.send
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicEmailSendToContactDto'
      responses:
        '200':
          description: Send result, including provider message id when available
        '400':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
        '401':
          description: Missing, invalid, revoked or expired bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
        '403':
          description: Token lacks the required scope for this endpoint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
        '429':
          description: Rate limit exceeded (100 requests per minute per token)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
      security:
        - bearer: []
components:
  schemas:
    PublicEmailSendToContactDto:
      type: object
      properties:
        templateId:
          type: string
        contactId:
          type: string
        vars:
          type: object
          description: Merge variables for {{placeholders}} in template
      required:
        - templateId
        - contactId
    HttpErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Validation failed
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````