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

# Send email to contact

> Sends a one-off email to a contact using the workspace's Resend API key.



## OpenAPI

````yaml https://folksbase.onrender.com/api/openapi.json post /api/contacts/{id}/send-email
openapi: 3.1.0
info:
  title: folksbase API
  description: >-
    Contact management API for folksbase. Upload CSVs, manage contacts and tags,
    export data.
  version: 1.0.0
servers:
  - url: https://folksbase.onrender.com
    description: Production
  - url: http://localhost:3001
    description: Local development
security:
  - bearerAuth: []
paths:
  /api/contacts/{id}/send-email:
    post:
      tags:
        - Contacts
      summary: Send email to contact
      description: Sends a one-off email to a contact using the workspace's Resend API key.
      operationId: postApiContactsByIdSendEmail
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                subject:
                  type: string
                  minLength: 1
                  maxLength: 200
                body:
                  type: string
                  minLength: 1
                  maxLength: 10000
              required:
                - subject
                - body
      responses:
        '200':
          description: Email sent
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                        const: true
                      messageId:
                        type: string
                    required:
                      - success
                      - messageId
                  - type: object
                    properties:
                      success:
                        type: boolean
                        const: false
                      error:
                        type: string
                    required:
                      - success
                      - error
        '404':
          description: Contact not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - code
                  - message
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase JWT token from Authorization header

````